orxonox::Model Class Reference

#include <src/orxonox/objects/worldentities/Model.h>

Inheritance diagram for orxonox::Model:

orxonox::StaticEntity orxonox::WorldEntity orxonox::BaseObject orxonox::Synchronisable orxonox::OrxonoxClass orxonox::OrxonoxClass

List of all members.

Public Member Functions

virtual void changedVisibility ()
 This function gets called if the visibility of the object changes.
bool getCastShadows () const
const MeshgetMesh () const
const std::stringgetMeshSource () const
 Model (BaseObject *creator)
void registerVariables ()
void setCastShadows (bool bCastShadows)
void setMeshSource (const std::string &meshname)
virtual void XMLPort (Element &xmlelement, XMLPort::Mode mode)
 XML loading and saving.
virtual ~Model ()

Private Member Functions

void changedMesh ()
void changedShadows ()

Private Attributes

bool bCastShadows_
Mesh mesh_
std::string meshSrc_


Constructor & Destructor Documentation

orxonox::Model::Model ( BaseObject creator  ) 

orxonox::Model::~Model (  )  [virtual]


Member Function Documentation

void orxonox::Model::changedMesh (  )  [private]

void orxonox::Model::changedShadows (  )  [private]

void orxonox::Model::changedVisibility (  )  [virtual]

This function gets called if the visibility of the object changes.

Reimplemented from orxonox::BaseObject.

References orxonox::BaseObject::isVisible(), mesh_, orxonox::Mesh::setVisible(), and SUPER.

bool orxonox::Model::getCastShadows (  )  const [inline]

Referenced by XMLPort().

const Mesh& orxonox::Model::getMesh (  )  const [inline]

const std::string& orxonox::Model::getMeshSource (  )  const [inline]

Referenced by XMLPort().

void orxonox::Model::registerVariables (  ) 

void orxonox::Model::setCastShadows ( bool  bCastShadows  )  [inline]

void orxonox::Model::setMeshSource ( const std::string meshname  )  [inline]

void orxonox::Model::XMLPort ( Element &  xmlelement,
XMLPort::Mode  mode 
) [virtual]

XML loading and saving.

Parameters:
xmlelement The XML-element
loading Loading (true) or saving (false)
Returns:
The XML-element

Reimplemented from orxonox::WorldEntity.

References getCastShadows(), getMeshSource(), setCastShadows(), setMeshSource(), SUPER, and XMLPortParam.


Member Data Documentation

Referenced by changedMesh(), and registerVariables().


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

Generated on Tue Jul 28 16:22:43 2009 for Orxonox by  doxygen 1.5.6