SceneNode with geometry
More...
#include <geometrynode.h>

Public Member Functions | |
| GeometryNode (const wxString &_uid, const wxString &_name) | |
Class constructor, GEOMETRY type by default. | |
| GeometryNode (const GeometryNode &g) | |
| Copy constructor. | |
| virtual | ~GeometryNode () |
| Class destructor. | |
| GEOMETRY_ID | GetGeometryID () const |
| Get node's geometry ID. | |
| MATERIAL_ID | GetMaterialID () const |
| Get node's material ID. | |
| virtual wxString | ToString () const |
Get string with node's properties - SceneNode overload. | |
| virtual SceneNode * | Clone () const |
Get copy of instance - SceneNode overload. | |
Protected Attributes | |
| GEOMETRY_ID | geometryID |
Geometry (Scene ownership). | |
| MATERIAL_ID | materialID |
Material (Scene ownership). | |
Friends | |
| class | Scene |
| class | BVH |
SceneNode with geometry
Definition at line 24 of file geometrynode.h.
| VRUT::GeometryNode::GeometryNode | ( | const wxString & | _uid, | |
| const wxString & | _name | |||
| ) | [inline] |
Class constructor, GEOMETRY type by default.
Definition at line 34 of file geometrynode.h.
00035 : SceneNode(_uid, _name, SceneNode::GEOMETRY), 00036 geometryID(GEOMETRY_ID_NONE), 00037 materialID(MATERIAL_ID_NONE) 00038 { 00039 }
| VRUT::GeometryNode::GeometryNode | ( | const GeometryNode & | g | ) | [inline] |
Copy constructor.
Definition at line 42 of file geometrynode.h.
00043 : SceneNode(g), 00044 geometryID(g.geometryID), 00045 materialID(g.materialID) 00046 { 00047 }
| virtual VRUT::GeometryNode::~GeometryNode | ( | ) | [inline, virtual] |
| GEOMETRY_ID VRUT::GeometryNode::GetGeometryID | ( | ) | const [inline] |
Get node's geometry ID.
Definition at line 55 of file geometrynode.h.
00056 { 00057 return geometryID; 00058 }
| MATERIAL_ID VRUT::GeometryNode::GetMaterialID | ( | ) | const [inline] |
Get node's material ID.
Definition at line 61 of file geometrynode.h.
00062 { 00063 return materialID; 00064 }
| virtual wxString VRUT::GeometryNode::ToString | ( | ) | const [inline, virtual] |
Get string with node's properties - SceneNode overload.
Reimplemented from VRUT::SceneNode.
Definition at line 67 of file geometrynode.h.
00068 { 00069 return wxString::Format(wxT("%s\nGeometry ID: %i\nMaterial ID: %i\n"), SceneNode::ToString().c_str(), geometryID, materialID); 00070 }
| virtual SceneNode* VRUT::GeometryNode::Clone | ( | ) | const [inline, virtual] |
Get copy of instance - SceneNode overload.
Reimplemented from VRUT::SceneNode.
Definition at line 73 of file geometrynode.h.
00074 { 00075 return new GeometryNode(*this); 00076 }
friend class Scene [friend] |
friend class BVH [friend] |
Definition at line 79 of file geometrynode.h.
GEOMETRY_ID VRUT::GeometryNode::geometryID [protected] |
MATERIAL_ID VRUT::GeometryNode::materialID [protected] |
1.5.5