42 #ifndef ACG_SCENEGRAPH_FLOATINGSUBTREENODE_HH_ 43 #define ACG_SCENEGRAPH_FLOATINGSUBTREENODE_HH_ 48 #if (defined(_MSC_VER) && (_MSC_VER >= 1900)) || __cplusplus > 199711L || defined(__GXX_EXPERIMENTAL_CXX0X__) 50 #include <ACG/Math/GLMatrixT.hh> 51 #include <ACG/Scenegraph/BaseNode.hh> 52 #include <ACG/Scenegraph/DrawModes.hh> 68 class ACGDLLEXPORT FloatingSubtreeNode :
public BaseNode {
70 ACG_CLASSNAME(FloatingSubtreeNode);
72 FloatingSubtreeNode(
GLMatrixd modelview_override,
74 const std::string &_name =
"<ModelViewOverrideNode>");
76 virtual ~FloatingSubtreeNode();
78 void setModelViewOverride(
GLMatrixd modelview_override);
80 const GLMatrixd &modelViewOverride()
const {
81 return modelview_override_;
84 void enableModelViewOverride(
bool value) {
85 enable_modelview_override_ = value;
88 bool isModelViewOverrideEnabled() {
89 return enable_modelview_override_;
92 void enableOverlay(
bool value) {
93 enable_overlay_ = value;
96 bool isOverlayEnabled() {
97 return enable_overlay_;
100 void enter(GLState &_state,
101 const DrawModes::DrawMode &_drawMode)
override;
103 void enter(IRenderer* _renderer, GLState& _state,
104 const DrawModes::DrawMode& _drawMode)
override;
106 void leave(GLState &_state,
107 const DrawModes::DrawMode &_drawMode)
override;
109 void leave(IRenderer* _renderer, GLState& _state,
110 const DrawModes::DrawMode& _drawMode)
override;
112 void enterPick(GLState &_state,
PickTarget _target,
113 const DrawModes::DrawMode &_drawMode)
override;
115 void leavePick(GLState &_state,
PickTarget _target,
116 const DrawModes::DrawMode &_drawMode)
override;
120 GLMatrixd modelview_override_, modelview_override_inv_;
121 bool enable_modelview_override_, enable_overlay_;
PickTarget
What target to use for picking.
GLMatrixT< double > GLMatrixd
typedef
Namespace providing different geometric functions concerning angles.