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

GfxNode ( const String name)

◆ ~GfxNode()

virtual ~GfxNode ( )
virtual

Member Function Documentation

◆ Add() [1/2]

void Add ( GfxNodeP  node)

◆ Add() [2/2]

void Add ( GfxObjP  obj)

◆ Apply()

virtual void Apply ( GfxNodeVisitor v,
GfxNodeVisitor::Stack  st 
)
virtual

Reimplemented in GfxObj.

◆ ContextSwitch()

virtual void ContextSwitch ( )
virtual

Reimplemented in GfxObjBase, and GfxObj.

◆ Copy()

virtual GfxNodeP Copy ( ) const
virtual

Reimplemented in GfxObj.

◆ DeepSwap()

virtual void DeepSwap ( GfxNode n)
virtual

◆ Export()

virtual void Export ( Exporter ex)
virtual

Reimplemented in GfxObj, and Entity.

◆ GetChildCount()

size_t GetChildCount ( ) const

◆ GetChildren() [1/2]

GfxNodeVector& GetChildren ( )
inline

Definition at line 118 of file gfx_node.hh.

◆ GetChildren() [2/2]

const GfxNodeVector& GetChildren ( ) const
inline

Definition at line 117 of file gfx_node.hh.

◆ GetName()

String GetName ( ) const

◆ GetParent()

gfx::GfxNodeP GetParent ( ) const

◆ GetType()

virtual int GetType ( ) const
virtual

Reimplemented in GfxObj.

◆ Hide()

void Hide ( )

◆ IsAttachedToScene()

bool IsAttachedToScene ( ) const

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

◆ IsNameAvailable()

bool IsNameAvailable ( const String name) const

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

◆ IsVisible()

bool IsVisible ( ) const

◆ Remove() [1/3]

void Remove ( const String name)

◆ Remove() [2/3]

void Remove ( GfxNodeP  node)

◆ Remove() [3/3]

void Remove ( GfxObjP  obj)

◆ RemoveAll()

void RemoveAll ( )

◆ Rename()

void Rename ( const String name)

◆ RenderGL()

virtual void RenderGL ( RenderPass  pass)
virtual

Reimplemented in SymmetryNode, Quad, Cuboid, and GfxObj.

◆ RenderPov()

virtual void RenderPov ( PovState pov)
virtual

Reimplemented in GfxObj.

◆ Show()

void Show ( )

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