-
Notifications
You must be signed in to change notification settings - Fork 1
/
textureFileItem.h
executable file
·43 lines (37 loc) · 1.41 KB
/
textureFileItem.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
#ifndef TEXTUREFILEITEM_H_
#define TEXTUREFILEITEM_H_
#include "TreeItem.h"
#include "textureColumn.h"
#include <Inventor/nodes/SoComplexity.h>
#include <Inventor/nodes/SoSwitch.h>
#include <Inventor/nodes/SoTextureCoordinateBinding.h>
#include <Inventor/nodes/SoTexture2.h>
#include <mniVertstatsFile.h>
class textureFileItem : public TreeItem {
//Q_OBJECT
public:
textureFileItem(SoSeparator *root, const QVector<QVariant> &data,
ResourceForm *rf, TreeItem *parent = 0);
void loadFile(QFile &file);
virtual ~textureFileItem();
void getAllColumns();
//signals:
// void setPickedPoint(int index);
public slots:
// a simple pass-through slot - when the geometryScene as decided that the
// most recent pick action was on the local bit of geometry, it sends a signal
// with the index which is picked up here. This re-emits a signal which is in
// turn picked up by the textureColumns, who update their info.
void pickedPointReceived(int index) ;
//void pickedPointReceived(int index) { emit setPickedPoint(index); };
private:
ResourceForm *rf;
void createColumn();
// holds the geometry separator to which the Switch node will be attached.
SoSeparator *root;
// all the texture columns will be attached to this switch.
SoSwitch *textureSwitch;
// the actual vertstats file
mniVertstatsFile *vertstatsFile;
};
#endif /*TEXTUREFILEITEM_H_*/