mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-20 03:16:10 +00:00
53 lines
1.0 KiB
C++
53 lines
1.0 KiB
C++
#ifndef TEXTUREEDITOR_H
|
|
#define TEXTUREEDITOR_H
|
|
|
|
#include <stdio.h>
|
|
#include <QWidget>
|
|
#include <meshlab/glarea.h>
|
|
#include "ui_textureeditor.h"
|
|
#include "renderarea.h"
|
|
|
|
#define MARGIN 5
|
|
#define MAXW 1400
|
|
#define MAXH 1000
|
|
|
|
using namespace std;
|
|
|
|
class TextureEditor : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
TextureEditor(QWidget *parent = 0);
|
|
~TextureEditor();
|
|
|
|
void AddRenderArea(QString texture, MeshModel *m, unsigned ind);
|
|
void AddEmptyRenderArea();
|
|
void Reset();
|
|
void SetProgress(int val);
|
|
void SetStatusText(QString text);
|
|
void SetProgressMax(int val);
|
|
|
|
RenderArea *first; // Ref to the first RA
|
|
MeshModel *model; // Ref to the model (for upate)
|
|
GLArea *area; // Ref to the GLArea (for refresh)
|
|
|
|
private:
|
|
Ui::TextureEditorClass ui;
|
|
void ResetLayout();
|
|
|
|
private slots:
|
|
void on_connectedButton_clicked();
|
|
void on_moveButton_clicked();
|
|
void on_selectButton_clicked();
|
|
void on_vertexButton_clicked();
|
|
void on_clampButton_clicked();
|
|
void on_modulusButton_clicked();
|
|
|
|
public slots:
|
|
void UpdateModel();
|
|
|
|
};
|
|
|
|
#endif // TEXTUREEDITOR_H
|