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

kerosin::SingleMatNode Class Reference

BaseNode that renders itself using a single material. More...

#include <singlematnode.h>

Inheritance diagram for kerosin::SingleMatNode:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SingleMatNode ()
virtual ~SingleMatNode ()
bool SetMaterial (const std::string &name)
 queries the MaterialServer for the material
boost::shared_ptr< MaterialGetMaterial ()
 returns the material assigned to this node

Detailed Description

BaseNode that renders itself using a single material.

It provides methods to manage this material.

Definition at line 34 of file singlematnode.h.


Constructor & Destructor Documentation

SingleMatNode::SingleMatNode  ) 
 

Definition at line 30 of file singlematnode.cpp.

SingleMatNode::~SingleMatNode  )  [virtual]
 

Definition at line 34 of file singlematnode.cpp.


Member Function Documentation

shared_ptr< Material > SingleMatNode::GetMaterial  ) 
 

returns the material assigned to this node

Definition at line 64 of file singlematnode.cpp.

References kerosin::StaticMesh::mMaterials.

bool SingleMatNode::SetMaterial const std::string &  name  ) 
 

queries the MaterialServer for the material

Parameters:
name and caches a reference to it. It returns true on success.

Definition at line 38 of file singlematnode.cpp.

References zeitgeist::Object::GetCore(), zeitgeist::Object::GetLog(), and kerosin::StaticMesh::mMaterials.

Here is the call graph for this function:


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