1 #ifndef __SceneGraphBinder_h 2 #define __SceneGraphBinder_h 7 #ifndef __SceneGraphNode_h 53 void scale(
const std::string& aNodeLabel,
54 const VEC3& aScalingFactorSet);
56 virtual void scale(
const char* aNodeLabel,
57 const VEC3& aScalingFactorSet);
59 void rotate(
const std::string& aNodeLabel,
60 float aRotationAngleInDegrees,
61 const VEC3& aRotationAxis);
64 virtual void rotate(
const char* aNodeLabel,
65 float aRotationAngleInDegrees,
66 const VEC3& aRotationAxis);
70 void translate(
const std::string& aNodeLabel,
71 const VEC3& aTranslationVector);
73 virtual void translate(
const char* aNodeLabel,
74 const VEC3& aTranslationVector);
115 #endif // __SceneGraphBinder_h void addPolygonMesh(const std::string &aLabel, const PolygonMesh &aPolygonMesh, const VEC3 &aPosition, const std::string &aParent="root")
virtual void setRootNodeTransformationMatrix(const MATRIX4 &aTransformationMatrix)
virtual void loadSceneGraph(const char *aFileName, RATIONAL_NUMBER aUnitOfLength)
std::pair< VEC3, VEC3 > getBoundingBox()
MATRIX4 getWorldTransformationMatrix(const std::string &aNodeLabel) const
void display(GLint aShaderID)
void translate(const std::string &aNodeLabel, const VEC3 &aTranslationVector)
virtual MATRIX4 getNodeLocalTransformationMatrix(const char *aNodeLabel) const
SceneGraphNode * getNode(const std::string &aLabel)
PolygonMesh is a class to handle polygon (triangles) meshes.
float RATIONAL_NUMBER
Type of data used to store real numbers.
virtual void setNodeLocalTransformationMatrix(const char *aNodeLabel, const MATRIX4 &aTransformationMatrix)
virtual ~SceneGraphBinder()
SceneGraphNode m_root_node
virtual MATRIX4 getNodeWorldTransformationMatrix(const char *aNodeLabel) const
void scale(const std::string &aNodeLabel, const VEC3 &aScalingFactorSet)
MATRIX4 getLocalTransformationMatrix(const std::string &aNodeLabel) const
void rotate(const std::string &aNodeLabel, float aRotationAngleInDegrees, const VEC3 &aRotationAxis)
virtual MATRIX4 getRootNodeTransformationMatrix() const
SceneGraphBinder & operator=(const SceneGraphBinder &aSceneGraph)
RATIONAL_NUMBER m_unit_of_length