Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

kerosin::Box Class Reference

Box is a SingleMatNode that automatically loads and renders a box mesh that is scaled to the given extents. More...

#include <box.h>

Inheritance diagram for kerosin::Box:

Inheritance graph
[legend]
Collaboration diagram for kerosin::Box:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Box ()
virtual ~Box ()
void SetExtents (const salt::Vector3f &extents)
 sets the extents box
const salt::Vector3fGetExtents ()
 returns the extents of box

Protected Member Functions

virtual void OnLink ()
 This method is called, when the hierarchy object has been linked to a parent.

Detailed Description

Box is a SingleMatNode that automatically loads and renders a box mesh that is scaled to the given extents.

Definition at line 34 of file box.h.


Constructor & Destructor Documentation

Box::Box  ) 
 

Definition at line 31 of file box.cpp.

Box::~Box  )  [virtual]
 

Definition at line 35 of file box.cpp.


Member Function Documentation

const Vector3f & Box::GetExtents  ) 
 

returns the extents of box

Definition at line 49 of file box.cpp.

References kerosin::StaticMesh::mScale.

void Box::OnLink  )  [protected, virtual]
 

This method is called, when the hierarchy object has been linked to a parent.

At that point, traversal can commence. It can be overridden to support custom 'link' behavior.

Reimplemented from zeitgeist::Leaf.

Definition at line 39 of file box.cpp.

References kerosin::StaticMesh::Load().

Here is the call graph for this function:

void Box::SetExtents const salt::Vector3f extents  ) 
 

sets the extents box

Definition at line 44 of file box.cpp.

References kerosin::StaticMesh::mScale.


The documentation for this class was generated from the following files:
Generated on Thu Apr 6 15:43:31 2006 for rcssserver3d by  doxygen 1.4.4