OpenStructure
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions
GfxNode Class Reference

#include <gfx_node.hh>

Inherits enable_shared_from_this< GfxNode >.

Inherited by GfxObjBase, Primitive, and SymmetryNode.

Public Member Functions

 GfxNode (const String &name)
 
virtual ~GfxNode ()
 
virtual GfxNodeP Copy () const
 
virtual void DeepSwap (GfxNode &n)
 
virtual void RenderGL (RenderPass pass)
 
virtual void RenderPov (PovState &pov)
 
virtual void Export (Exporter *ex)
 
virtual void Apply (GfxNodeVisitor &v, GfxNodeVisitor::Stack st)
 
virtual int GetType () const
 
String GetName () const
 
void RemoveAll ()
 
void Rename (const String &name)
 
void Add (GfxObjP obj)
 
bool IsNameAvailable (const String &name) const
 
void Remove (GfxObjP obj)
 
void Add (GfxNodeP node)
 
void Remove (GfxNodeP node)
 
void Remove (const String &name)
 
size_t GetChildCount () const
 
void Hide ()
 
void Show ()
 
bool IsVisible () const
 
virtual void ContextSwitch ()
 
bool IsAttachedToScene () const
 
gfx::GfxNodeP GetParent () const
 
const GfxNodeVectorGetChildren () const
 
GfxNodeVectorGetChildren ()
 

Detailed Description

Definition at line 43 of file gfx_node.hh.

Constructor & Destructor Documentation

GfxNode ( const String name)
virtual ~GfxNode ( )
virtual

Member Function Documentation

void Add ( GfxObjP  obj)
void Add ( GfxNodeP  node)
virtual void Apply ( GfxNodeVisitor v,
GfxNodeVisitor::Stack  st 
)
virtual

Reimplemented in GfxObj.

virtual void ContextSwitch ( )
virtual

Reimplemented in GfxObj, and GfxObjBase.

virtual GfxNodeP Copy ( ) const
virtual

Reimplemented in GfxObj.

virtual void DeepSwap ( GfxNode n)
virtual
virtual void Export ( Exporter ex)
virtual

Reimplemented in Entity, and GfxObj.

size_t GetChildCount ( ) const
const GfxNodeVector& GetChildren ( ) const
inline

Definition at line 117 of file gfx_node.hh.

GfxNodeVector& GetChildren ( )
inline

Definition at line 118 of file gfx_node.hh.

String GetName ( ) const
gfx::GfxNodeP GetParent ( ) const
virtual int GetType ( ) const
virtual

Reimplemented in GfxObj.

void Hide ( )
bool IsAttachedToScene ( ) const

whether the node (or one of it's parents) has been added to the scene

bool IsNameAvailable ( const String name) const

returns true if no scene node of the given name is a child of this node.

bool IsVisible ( ) const
void Remove ( GfxObjP  obj)
void Remove ( GfxNodeP  node)
void Remove ( const String name)
void RemoveAll ( )
void Rename ( const String name)
virtual void RenderGL ( RenderPass  pass)
virtual

Reimplemented in Quad, Cuboid, GfxObj, and SymmetryNode.

virtual void RenderPov ( PovState pov)
virtual

Reimplemented in GfxObj.

void Show ( )

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