-
Notifications
You must be signed in to change notification settings - Fork 1
/
surfaceset.h
70 lines (57 loc) · 1.82 KB
/
surfaceset.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
70
#ifndef SURFACESET_H
#define SURFACESET_H
#include "surface.h"
#include "afnisurface.h"
#include "sconnections.h"
#include "connectivity.h"
#include "QMatrix4x4"
#include "QVector2D"
class SurfaceSet
{
public:
SurfaceSet(QString filename, QString consname=NULL, QString labelname=NULL);
QList<AFNISurface*> afnis;
QList<Surface*> surfs;
QList<SConnections*> scons;
int cs; //current surface
int colorsFrom; //current color
int geo; //current glyph geometry
int minSpace; //space in which length threshold is calculated
float norm; //normalization of glyphs
double size; //glSize for primitive drawing
void switchSurface();
void switchSurface(int i);
void addSurface(QString filename, QString labelname, QVector3D shift=QVector3D(0,0,0));
void createConnections(AFNISurface* a, IndexedConnections* icons, QList<QVector3D>* allNodes = NULL, int offset = 0);
void calcBoundingBox();
Connectivity* conn;
void paintGL(int ns, bool allNodes=false, bool connect=false, bool glyphsVisible=true);
void paintNodes(int ns);
void paintBufferedNodes(int ns);
void paintConnectivity(double threshold=0);
double glyphAlpha, glyphRadius, threshold, minlength;
void setGlyphAlpha(double a);
void setGlyphRadius(double r);
QMatrix4x4* viewMatrix();
void calcInvRot();
QVector3D invRotX;
QVector3D invRotY;
QVector3D invRotZ;
bool clear_depth;
bool vectors;
bool billboarding;
QSet<int> *roi;
void saveROI(QString filename);
void loadROI(QString filename);
void paintROI();
int offset;
QVector3D piv;
QVector3D max, min;
GLuint displayList;
bool updateDisplayList;
void select(QVector3D v);
QVector3D* selected;
int selectedIndex;
void loadOverlay(QString filename);
};
#endif // SURFACESET_H