1 #ifndef __OpenSceneGraphBinder_h 2 #define __OpenSceneGraphBinder_h 4 #ifdef HAS_OPENSCENEGRAPH 7 #include <osg/MatrixTransform> 10 #ifndef __GeodeFinder_h 14 #ifndef __SceneGraphBinder_h 33 #ifdef HAS_OPENSCENEGRAPH 45 #ifdef HAS_OPENSCENEGRAPH 46 void setSceneGraph(osg::Group* apSceneGraph);
52 virtual void scale(
const char* aNodeLabel,
56 virtual void rotate(
const char* aNodeLabel,
57 float aRotationAngleInDegrees,
60 virtual void translate(
const char* aNodeLabel,
61 const VEC3& aTranslationVector);
75 #ifdef HAS_OPENSCENEGRAPH 76 osg::Node* findNode(
const char* aNodeLabel);
77 const osg::Node* findNode(
const char* aNodeLabel)
const;
83 #ifdef HAS_OPENSCENEGRAPH 84 osg::Group* m_p_scene_graph;
85 GeodeFinder m_geode_finder;
93 #endif // __OpenSceneGraphBinder_h
virtual void setNodeTransformationMatrix(const char *aNodeLabel, const MATRIX4 &aTransformationMatrix)
virtual gVirtualXRay::MATRIX4 getTransformationMatrix(const char *aNodeLabel) const
virtual void loadSceneGraph(const char *aFileName, RATIONAL_NUMBER aUnitOfLength)
virtual void moveToCenter()
virtual MATRIX4 getRootNodeTransformationMatrix() const
virtual void rotate(const char *aNodeLabel, float aRotationAngleInDegrees, const gVirtualXRay::VEC3 &aRotationAxis)
float RATIONAL_NUMBER
Type of data used to store real numbers.
virtual MATRIX4 getNodeTransformationMatrix(const char *aNodeLabel) const
virtual void setRootNodeTransformationMatrix(const MATRIX4 &aTransformationMatrix)
virtual ~OpenSceneGraphBinder()
virtual void translate(const char *aNodeLabel, const VEC3 &aTranslationVector)
virtual void moveToCentre()
OpenSceneGraphBinder & operator=(const OpenSceneGraphBinder &aSceneGraph)
virtual void scale(const char *aNodeLabel, const gVirtualXRay::VEC3 &aScalingFactorSet)
virtual void updateMatrices()