VRUT::GeometryNode Class Reference

SceneNode with geometry More...

#include <geometrynode.h>

Inheritance diagram for VRUT::GeometryNode:

VRUT::SceneNode VRUT::ReadWriteMutex

List of all members.

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 SceneNodeClone () 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


Detailed Description

SceneNode with geometry

Definition at line 24 of file geometrynode.h.


Constructor & Destructor Documentation

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]

Class destructor.

Definition at line 50 of file geometrynode.h.

00051               {
00052               }


Member Function Documentation

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               }


Friends And Related Function Documentation

friend class Scene [friend]

Reimplemented from VRUT::SceneNode.

Definition at line 78 of file geometrynode.h.

friend class BVH [friend]

Definition at line 79 of file geometrynode.h.


Member Data Documentation

Geometry (Scene ownership).

Definition at line 28 of file geometrynode.h.

Material (Scene ownership).

Definition at line 30 of file geometrynode.h.


The documentation for this class was generated from the following file:

Generated on Tue Mar 10 14:41:42 2009 for VRUT by  doxygen 1.5.5