-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtagFileItem.h
executable file
·43 lines (37 loc) · 1.24 KB
/
tagFileItem.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 TAGFILEITEM_H
#define TAGFILEITEM_H
#include "TreeItem.h"
#include "tagPointItem.h"
#include <volume_io.h>
#include <Inventor/nodes/SoScale.h>
#include <Inventor/nodes/SoMaterial.h>
#include <Inventor/nodes/SoPickStyle.h>
#include <Inventor/nodes/SoScale.h>
class tagFileItem : public TreeItem {
public:
tagFileItem(SoSeparator *root, const QVector<QVariant> &data,
ResourceForm *rf, TreeItem *parent = 0);
bool loadFile(QFile &file, double tagsize= 0.1, float r= 0.0, float g= 255.0, float b= 255.0);
bool showTag(float *tagpoint, double tagsize= 0.2, float r= 0.0, float g= 0.0, float b= 255.0);
virtual ~tagFileItem();
private:
// function to create a sphere for every tag item
//void createSpheresFromTags();
// first set of tags
double **tags1;
// second set of tags (if present in tag file)
double **tags2;
// labels of tags
VIO_STR *labels;
// root separator from calling function
SoSeparator *root;
// scale applied to all tags
SoScale *scale;
// holds all tags
SoSeparator *tagSeparator;
// material properties of all tags
SoMaterial *material;
// pick style - whether following nodes are pickage.
SoPickStyle *pickStyle;
};
#endif /* TAGFILEITEM_H*/