OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
SceneNodeVTK.h
Go to the documentation of this file.
1#pragma once
2
3namespace osg
4{
5 class Node;
6 class Switch;
7}
8
9#include "Geometry.h"
10#include "Viewer.h"
11#include "SceneNodeBase.h"
12
13#include <string>
14#include <ctime>
15#include <list>
16
17#include <osg/Array>
18#include <osg/Material>
19
20class Model;
21class Viewer;
22
24{
25public:
27 virtual ~SceneNodeVTK();
28
29 virtual void setTransparent(bool t) override;
30 virtual void setWireframe(bool w) override;
31 virtual void setVisible(bool v) override;
32 virtual void setHighlighted(bool h) override;
33
34 Model *getModel(void) { return model; };
35 void setModel(Model *m) { model = m; };
36
37 virtual bool isItem1D(void) { return false; };
38 virtual bool isItem3D(void) { return true; };
39
40 void updateVTKNode(const std::string &projName, unsigned long long visualizationDataID, unsigned long long visualizationDataVersion);
41
42private:
43 void deleteShapeNode(void);
44 osg::Node *createOSGNodeFromVTK();
45 void reportTime(const std::string &message, std::time_t &timer);
46 std::string loadDataItem(unsigned long long entityID, unsigned long long entityVersion);
47
48 Model *model;
49 bool initialized;
50 std::string projectName;
51 unsigned long long dataID;
52 unsigned long long dataVersion;
53};
54
Mesh m
Definition SelfIntersectionCheck.cpp:26
@ h
Definition SourceTarget.h:4
The Model class is the main interface to the model. There may be multiple instances of this class....
Definition Model.h:94
Definition SceneNodeBase.h:14
Definition SceneNodeVTK.h:24
virtual void setWireframe(bool w) override
Definition SceneNodeVTK.cpp:107
Model * getModel(void)
Definition SceneNodeVTK.h:34
virtual ~SceneNodeVTK()
Definition SceneNodeVTK.cpp:42
virtual void setVisible(bool v) override
Definition SceneNodeVTK.cpp:157
virtual bool isItem1D(void)
Definition SceneNodeVTK.h:37
void setModel(Model *m)
Definition SceneNodeVTK.h:35
SceneNodeVTK()
Definition SceneNodeVTK.cpp:32
void updateVTKNode(const std::string &projName, unsigned long long visualizationDataID, unsigned long long visualizationDataVersion)
Definition SceneNodeVTK.cpp:210
virtual void setHighlighted(bool h) override
Definition SceneNodeVTK.cpp:201
virtual bool isItem3D(void)
Definition SceneNodeVTK.h:38
virtual void setTransparent(bool t) override
Definition SceneNodeVTK.cpp:70
Simple 3D viewer.
Definition Viewer.h:41
Definition RubberbandOsgWrapper.h:22