102 virtual void drawGL(
bool select=
false ) = 0;
147 typedef std::list<GLNode *> GLNodeList;
152 typedef GLNodeList::iterator GLNodeListItr;
157 typedef GLNodeList::const_iterator GLNodeListCItr;
191 void addChild(
GLNode * child );
197 virtual void newContext();
206 virtual void drawGL(
bool select=
false );
238 virtual void getWorldMatrix(
Matrix4x4 & mat );
250 virtual void getWorldInverseMatrix(
Matrix4x4 & mat );
258 virtual void getParentMatrix(
Matrix4x4 & mat );
266 virtual void getParentInverseMatrix(
Matrix4x4 & mat );
283 typedef std::list<GLDagNode *> GLDagNodeList;
288 typedef GLDagNodeList::iterator GLDagNodeListItr;
293 typedef GLDagNodeList::const_iterator GLDagNodeListCItr;
297 #endif // __GLNODE_H__
GLDagNode * _parent
The GLDagNode that serves as this node's parent.
Definition: GLNode.h:134
The core namespace. All elements of Menge are contained in this namespace.
Definition: AgentGenerator.cpp:43
GLDagNode * getParent()
Returns a pointer to the node's parent (possibly NULL).
Definition: GLNode.h:118
bool _visible
The visibility state of this node. If visible (true) the node and its children will be drawn into the...
Definition: GLNode.h:141
An abstact class – a generic, scene graph node.
Definition: GLNode.h:66
Basic 4x4 matrix of floats.
Definition: Matrix.h:70
size_t _childCount
The number of child nodes this node contains.
Definition: GLNode.h:277
The node that provides the basis for a "hierarchy" in the scene graph.
Definition: GLNode.h:169
Sets up the proper compiler directives for platform and dll export/import.
virtual void getMatrix(Matrix4x4 &mat)
Reports the local object transform matrix.
Definition: GLNode.h:216
void setParent(GLDagNode *p)
Assigns this node to a parent GLDagNode.
Definition: GLNode.h:129
virtual void getInverseMatrix(Matrix4x4 &mat)
Reports the local object inverse transform matrix.
Definition: GLNode.h:226
The SceneGraph (SceneGraph) name space, containing all elements to use in a SceneGraph.
void identity()
Sets the matrix to the identity matrix.
Definition: Matrix.cpp:61
Various important pre-compiler directives for the scene graph.
void setVisible(bool state)
Sets the visible state of the node.
Definition: GLNode.h:90
virtual void newContext()
Allows the node to recreate any unique OpenGL objects based on the acquisition of a new OpenGL contex...
Definition: GLNode.h:111
GLNode ** _children
An array of child GLNodes.
Definition: GLNode.h:272