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

kerosin::Sphere Class Reference

SingleMatNode that automatically loads and renders a sphere mesh. More...

#include <sphere.h>

Inheritance diagram for kerosin::Sphere:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Sphere ()
virtual ~Sphere ()
float GetRadius () const
void SetRadius (float radius)

Protected Member Functions

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

Detailed Description

SingleMatNode that automatically loads and renders a sphere mesh.

It exports functions to scale the unit sphere to different sizes.

Definition at line 35 of file sphere.h.


Constructor & Destructor Documentation

Sphere::Sphere  ) 
 

Definition at line 31 of file sphere.cpp.

Sphere::~Sphere  )  [virtual]
 

Definition at line 35 of file sphere.cpp.


Member Function Documentation

float Sphere::GetRadius  )  const
 

Definition at line 43 of file sphere.cpp.

References kerosin::StaticMesh::mScale.

void Sphere::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 sphere.cpp.

References kerosin::StaticMesh::Load().

Here is the call graph for this function:

void Sphere::SetRadius float  radius  ) 
 

Definition at line 48 of file sphere.cpp.

References kerosin::StaticMesh::mScale.


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