-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtextureColumn.h
executable file
·69 lines (58 loc) · 1.88 KB
/
textureColumn.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#ifndef TEXTURECOLUMN_H_
#define TEXTURECOLUMN_H_
#include "TreeItem.h"
#include "ResourceForm.h"
#include "mniVertstatsFile.h"
#include <Inventor/nodes/SoTextureCoordinate2.h>
#include <Inventor/nodes/SoSwitch.h>
#include <Inventor/nodes/SoComplexity.h>
#include <Inventor/nodes/SoTextureCoordinateBinding.h>
#include <Inventor/nodes/SoTexture2.h>
#include <Inventor/nodes/SoGroup.h>
#include <QtGui>
#include "ui_textureColumnForm.h"
class textureColumn : public TreeItem {
Q_OBJECT
public:
textureColumn(SoSwitch *root, const QVector <QVariant> &data,
ResourceForm *rf, TreeItem *parent = 0);
virtual ~textureColumn();
void loadTextureColumn(mniVertstatsFile *file, QString columnName);
void scaleTexture(float low, float high);
void wasSelected();
QWidget *createForm();
void destroyForm();
public slots:
void upperValueChanged();
void lowerValueChanged();
// when new texture selected in combo-box.
void newTextureSelected(int index);
void setPickInfo(int index);
private:
// holds the actual texture to be displayed - modified with each rescale
SoTextureCoordinate2 *texture;
// holds the original data - will not be modified.
vertexColumn *data;
// low and high are used for scaling the column
float *low;
float *high;
float *minValue;
float *maxValue;
// holds a pointe to the parents texture switch
SoGroup *textureGroup;
// holds the texture complexity node
SoComplexity *textureComplexity;
// all the texture columns will be attached to this switch.
SoSwitch *textureSwitch;
// the texture coordinate Binding
SoTextureCoordinateBinding *textureBinding;
// the actual vertstats file
mniVertstatsFile *vertstatsFile;
// the texture image itself
SoTexture2 *textureImage;
// a vector holding texture filenames
QVector<QString> *textureFiles;
void fillTextureVector();
Ui::textureProps ui;
};
#endif /*TEXTURECOLUMN_H_*/