Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
gte::Node Class Reference

#include <GteNode.h>

Inheritance diagram for gte::Node:
Inheritance graph
[legend]

Public Member Functions

int AttachChild (std::shared_ptr< Spatial > const &child)
 
void DetachAllChildren ()
 
int DetachChild (std::shared_ptr< Spatial > const &child)
 
std::shared_ptr< SpatialDetachChildAt (int i)
 
std::shared_ptr< SpatialGetChild (int i)
 
int GetNumChildren () const
 
 Node ()
 
std::shared_ptr< SpatialSetChild (int i, std::shared_ptr< Spatial > const &child)
 
virtual ~Node ()
 
- Public Member Functions inherited from gte::Spatial
SpatialGetParent ()
 
void OnGetVisibleSet (Culler &culler, std::shared_ptr< Camera > const &camera, bool noCull)
 
void SetParent (Spatial *parent)
 
void Update (double applicationTime=0.0, bool initiator=true)
 
virtual ~Spatial ()
 
- Public Member Functions inherited from gte::ControlledObject
void AttachController (std::shared_ptr< Controller > const &controller)
 
void DetachAllControllers ()
 
void DetachController (std::shared_ptr< Controller > const &controller)
 
List const & GetControllers () const
 
bool UpdateControllers (double applicationTime)
 
virtual ~ControlledObject ()
 

Protected Member Functions

virtual void GetVisibleSet (Culler &culler, std::shared_ptr< Camera > const &camera, bool noCull)
 
virtual void UpdateWorldBound ()
 
virtual void UpdateWorldData (double applicationTime)
 
- Protected Member Functions inherited from gte::Spatial
void PropagateBoundToRoot ()
 
 Spatial ()
 
- Protected Member Functions inherited from gte::ControlledObject
 ControlledObject ()
 

Protected Attributes

std::vector< std::shared_ptr< Spatial > > mChild
 

Additional Inherited Members

- Public Types inherited from gte::ControlledObject
typedef std::list< std::shared_ptr< Controller > > List
 
- Public Attributes inherited from gte::Spatial
CullingMode culling
 
Transform localTransform
 
std::string name
 
BoundingSphere worldBound
 
bool worldBoundIsCurrent
 
Transform worldTransform
 
bool worldTransformIsCurrent
 

Detailed Description

Definition at line 18 of file GteNode.h.

Constructor & Destructor Documentation

Node::~Node ( )
virtual

Definition at line 13 of file GteNode.cpp.

Node::Node ( )

Definition at line 25 of file GteNode.cpp.

Member Function Documentation

int Node::AttachChild ( std::shared_ptr< Spatial > const &  child)

Definition at line 34 of file GteNode.cpp.

void Node::DetachAllChildren ( )

Definition at line 102 of file GteNode.cpp.

int Node::DetachChild ( std::shared_ptr< Spatial > const &  child)

Definition at line 68 of file GteNode.cpp.

std::shared_ptr< Spatial > Node::DetachChildAt ( int  i)

Definition at line 87 of file GteNode.cpp.

std::shared_ptr< Spatial > Node::GetChild ( int  i)

Definition at line 147 of file GteNode.cpp.

int Node::GetNumChildren ( ) const

Definition at line 29 of file GteNode.cpp.

void Node::GetVisibleSet ( Culler culler,
std::shared_ptr< Camera > const &  camera,
bool  noCull 
)
protectedvirtual

Implements gte::Spatial.

Reimplemented in gte::BspNode.

Definition at line 192 of file GteNode.cpp.

std::shared_ptr< Spatial > Node::SetChild ( int  i,
std::shared_ptr< Spatial > const &  child 
)

Definition at line 110 of file GteNode.cpp.

void Node::UpdateWorldBound ( )
protectedvirtual

Implements gte::Spatial.

Definition at line 169 of file GteNode.cpp.

void Node::UpdateWorldData ( double  applicationTime)
protectedvirtual

Reimplemented from gte::Spatial.

Reimplemented in gte::BspNode, gte::ViewVolumeNode, and gte::BillboardNode.

Definition at line 156 of file GteNode.cpp.

Member Data Documentation

std::vector<std::shared_ptr<Spatial> > gte::Node::mChild
protected

Definition at line 100 of file GteNode.h.


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


geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:06