SceneNode
with light definition
More...
#include <lightnode.h>
Public Member Functions | |
LightNode (const wxString &_uid, const wxString &_name) | |
Class constructor. | |
LightNode (const LightNode &l) | |
Copy constructor. | |
virtual | ~LightNode () |
Class destructor. | |
const Light * | GetLight () const |
Get top level window. | |
virtual wxString | ToString () const |
Get string with node's properties - SceneNode overload. | |
virtual SceneNode * | Clone () const |
Get copy of instance - SceneNode overload. | |
Protected Attributes | |
Light * | light |
Light definition. | |
Friends | |
class | Scene |
SceneNode
with light definition
Definition at line 22 of file lightnode.h.
VRUT::LightNode::LightNode | ( | const wxString & | _uid, | |
const wxString & | _name | |||
) | [inline] |
Class constructor.
Definition at line 30 of file lightnode.h.
00031 : SceneNode(_uid, _name, SceneNode::LIGHT), light((Light *)NULL) 00032 { 00033 }
VRUT::LightNode::LightNode | ( | const LightNode & | l | ) | [inline] |
virtual VRUT::LightNode::~LightNode | ( | ) | [inline, virtual] |
Class destructor.
Definition at line 42 of file lightnode.h.
00043 { 00044 SAFE_DELETE(light); 00045 }
const Light* VRUT::LightNode::GetLight | ( | ) | const [inline] |
Get top level window.
Definition at line 48 of file lightnode.h.
00049 { 00050 return light; 00051 }
virtual wxString VRUT::LightNode::ToString | ( | ) | const [inline, virtual] |
Get string with node's properties - SceneNode
overload.
Reimplemented from VRUT::SceneNode.
Definition at line 54 of file lightnode.h.
00055 { 00056 return wxString::Format(wxT("%s\n%s\n"), SceneNode::ToString().c_str(), light->ToString().c_str()); 00057 }
virtual SceneNode* VRUT::LightNode::Clone | ( | ) | const [inline, virtual] |
Get copy of instance - SceneNode
overload.
Reimplemented from VRUT::SceneNode.
Definition at line 60 of file lightnode.h.
00061 { 00062 return new LightNode(*this); 00063 }
friend class Scene [friend] |
Light* VRUT::LightNode::light [protected] |