Pioneer
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SceneGraph::Group Class Reference

#include <Group.h>

Inheritance diagram for SceneGraph::Group:
Inheritance graph
[legend]
Collaboration diagram for SceneGraph::Group:
Collaboration graph
[legend]

Public Member Functions

 Group (Graphics::Renderer *r)
 
 Group (const Group &, NodeCopyCache *cache=0)
 
virtual NodeClone (NodeCopyCache *cache=0) override
 
virtual const char * GetTypeName () const override
 
virtual void Save (NodeDatabase &) override
 
virtual void AddChild (Node *child)
 
virtual bool RemoveChild (Node *node)
 
virtual bool RemoveChildAt (unsigned int position)
 
unsigned int GetNumChildren () const
 
NodeGetChildAt (unsigned int)
 
virtual void Accept (NodeVisitor &v) override
 
virtual void Traverse (NodeVisitor &v) override
 
virtual void Render (const matrix4x4f &trans, const RenderData *rd) override
 
virtual void Render (const std::vector< matrix4x4f > &trans, const RenderData *rd) override
 
virtual NodeFindNode (const std::string &) override
 
- Public Member Functions inherited from SceneGraph::Node
 Node (Graphics::Renderer *r)
 
 Node (Graphics::Renderer *r, unsigned int nodemask)
 
 Node (const Node &, NodeCopyCache *)
 
virtual NodeClone (NodeCopyCache *)=0
 
virtual const char * GetTypeName () const
 
virtual void Save (NodeDatabase &)
 
virtual void Accept (NodeVisitor &v)
 
virtual void Traverse (NodeVisitor &v)
 
virtual void Render (const matrix4x4f &trans, const RenderData *rd)
 
virtual void Render (const std::vector< matrix4x4f > &trans, const RenderData *rd)
 
void DrawAxes ()
 
void SetName (const std::string &name)
 
const std::string & GetName () const
 
virtual NodeFindNode (const std::string &)
 
unsigned int GetNodeMask () const
 
void SetNodeMask (unsigned int m)
 
unsigned int GetNodeFlags () const
 
void SetNodeFlags (unsigned int m)
 
Graphics::RendererGetRenderer () const
 
- Public Member Functions inherited from RefCounted
 RefCounted ()
 
virtual ~RefCounted ()
 
void IncRefCount () const
 
void DecRefCount () const
 
int GetRefCount () const
 
- Public Member Functions inherited from LuaWrappable
virtual ~LuaWrappable ()
 

Static Public Member Functions

static GroupLoad (NodeDatabase &)
 

Protected Member Functions

virtual ~Group ()
 
virtual void RenderChildren (const matrix4x4f &trans, const RenderData *rd)
 
virtual void RenderChildren (const std::vector< matrix4x4f > &trans, const RenderData *rd)
 
- Protected Member Functions inherited from SceneGraph::Node
virtual ~Node ()
 

Protected Attributes

std::vector< Node * > m_children
 
- Protected Attributes inherited from SceneGraph::Node
std::string m_name
 
unsigned int m_nodeMask
 
unsigned int m_nodeFlags
 
Graphics::Rendererm_renderer
 

Constructor & Destructor Documentation

◆ Group() [1/2]

SceneGraph::Group::Group ( Graphics::Renderer r)

◆ Group() [2/2]

SceneGraph::Group::Group ( const Group group,
NodeCopyCache cache = 0 
)
Here is the call graph for this function:

◆ ~Group()

SceneGraph::Group::~Group ( )
protectedvirtual

Member Function Documentation

◆ Accept()

void SceneGraph::Group::Accept ( NodeVisitor v)
overridevirtual

Reimplemented from SceneGraph::Node.

Reimplemented in SceneGraph::LOD, and SceneGraph::MatrixTransform.

◆ AddChild()

void SceneGraph::Group::AddChild ( Node child)
virtual
Here is the call graph for this function:

◆ Clone()

Node * SceneGraph::Group::Clone ( NodeCopyCache cache = 0)
overridevirtual

Implements SceneGraph::Node.

Reimplemented in SceneGraph::LOD, and SceneGraph::MatrixTransform.

Here is the call graph for this function:

◆ FindNode()

Node * SceneGraph::Group::FindNode ( const std::string &  name)
overridevirtual

Reimplemented from SceneGraph::Node.

Here is the call graph for this function:

◆ GetChildAt()

Node * SceneGraph::Group::GetChildAt ( unsigned int  idx)

◆ GetNumChildren()

unsigned int SceneGraph::Group::GetNumChildren ( ) const
inline

◆ GetTypeName()

virtual const char * SceneGraph::Group::GetTypeName ( ) const
inlineoverridevirtual

Reimplemented from SceneGraph::Node.

Reimplemented in SceneGraph::LOD, and SceneGraph::MatrixTransform.

◆ Load()

Group * SceneGraph::Group::Load ( NodeDatabase db)
static
Here is the call graph for this function:

◆ RemoveChild()

bool SceneGraph::Group::RemoveChild ( Node node)
virtual
Here is the call graph for this function:

◆ RemoveChildAt()

bool SceneGraph::Group::RemoveChildAt ( unsigned int  position)
virtual
Here is the call graph for this function:

◆ Render() [1/2]

void SceneGraph::Group::Render ( const matrix4x4f trans,
const RenderData rd 
)
overridevirtual

Reimplemented from SceneGraph::Node.

Reimplemented in SceneGraph::LOD, and SceneGraph::MatrixTransform.

Here is the call graph for this function:

◆ Render() [2/2]

void SceneGraph::Group::Render ( const std::vector< matrix4x4f > &  trans,
const RenderData rd 
)
overridevirtual

Reimplemented from SceneGraph::Node.

Reimplemented in SceneGraph::LOD, and SceneGraph::MatrixTransform.

Here is the call graph for this function:

◆ RenderChildren() [1/2]

void SceneGraph::Group::RenderChildren ( const matrix4x4f trans,
const RenderData rd 
)
protectedvirtual

◆ RenderChildren() [2/2]

void SceneGraph::Group::RenderChildren ( const std::vector< matrix4x4f > &  trans,
const RenderData rd 
)
protectedvirtual

◆ Save()

void SceneGraph::Group::Save ( NodeDatabase db)
overridevirtual

Reimplemented from SceneGraph::Node.

Reimplemented in SceneGraph::LOD, and SceneGraph::MatrixTransform.

Here is the call graph for this function:

◆ Traverse()

void SceneGraph::Group::Traverse ( NodeVisitor v)
overridevirtual

Reimplemented from SceneGraph::Node.

Member Data Documentation

◆ m_children

std::vector<Node *> SceneGraph::Group::m_children
protected

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