-
Notifications
You must be signed in to change notification settings - Fork 1
/
BrainQuarter.h
executable file
·67 lines (51 loc) · 1.61 KB
/
BrainQuarter.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
#ifndef BRAINQUARTER_H_
#define BRAINQUARTER_H_
/* BrainQuarter
* A simple subclass of the QuarterWidget at this moment in time.
* Will eventually contain the functions to load different scene graphs.
*/
#include <Inventor/nodes/SoBaseColor.h>
#include <Inventor/nodes/SoCone.h>
#include <Inventor/nodes/SoSeparator.h>
#include <Inventor/nodes/SoEventCallback.h>
#include <Inventor/nodes/SoPerspectiveCamera.h>
#include <Inventor/SoPickedPoint.h>
#include <Inventor/events/SoMouseButtonEvent.h>
#include <Quarter/QuarterWidget.h>
#include <iostream>
#include <sstream>
#include <string>
#include <QtDebug>
#include <QtGui>
#include <mniVertstatsFile.h>
using namespace SIM::Coin3D::Quarter;
class BrainQuarter : public QuarterWidget {
Q_OBJECT
public:
// constructor
BrainQuarter(QWidget * parent = 0);
// destructor
virtual ~BrainQuarter();
// creates a yellow cone - i.e. just for testing purposes.
void createSampleSceneGraph();
SoSeparator* getRootSeparator();
float * pickedtag;
// don't let the window get too small
virtual QSize minimumSizeHint(void) const;
void getPickedPoint(SoPickedPoint *point,SoPickedPoint *point2);
void setTagOpt(int tagopt) {faceTagOpt = tagopt;};
void setVerboseStat(bool stat);
int faceTagOpt;
signals:
void pointPicked(int index, int id,int real_id, float x, float y, float z,SoType objtype);
void pointNotPicked();
private:
// bits for the sample scene graph
SoSeparator *root;
SoBaseColor *col;
SoPerspectiveCamera *pcam;
SoEventCallback *ecb;
bool ifVerbose;
//` int faceTagOpt;
};
#endif /*BRAINQUARTER_H_*/