orxonox::Planet Class Reference

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

Inheritance diagram for orxonox::Planet:

orxonox::MovableEntity orxonox::MobileEntity orxonox::ClientConnectionListener orxonox::WorldEntity orxonox::Tickable orxonox::OrxonoxClass orxonox::BaseObject orxonox::Synchronisable orxonox::OrxonoxClass 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.
const std::stringgetAtmosphere ()
float getAtmosphereSize ()
bool getCastShadows () const
float getImageSize ()
const std::stringgetMesh () const
const std::stringgetMeshSource () const
void init ()
 Planet (BaseObject *creator)
 Constructor.
void setAtmosphere (const std::string &atmosphere)
void setAtmosphereSize (float size)
void setCastShadows (bool bCastShadows)
void setImageSize (float size)
void setMeshSource (const std::string &meshname)
virtual void tick (float dt)
 Gets called every frame.
virtual void XMLPort (Element &xmlelement, XMLPort::Mode mode)
 XML loading and saving.
virtual ~Planet ()
 Destructor.

Protected Member Functions

void registerVariables ()

Private Member Functions

void changedMesh ()
void changedShadows ()

Private Attributes

std::string atmosphere_
float atmosphereSize
bool bCastShadows_
BillboardSet billboard_
std::vector< float > distList
float imageSize
Mesh mesh_
std::string meshSrc_


Constructor & Destructor Documentation

orxonox::Planet::Planet ( BaseObject creator  ) 

Constructor.

References RegisterObject, and registerVariables().

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


Member Function Documentation

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

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

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

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

Reimplemented from orxonox::BaseObject.

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

const std::string& orxonox::Planet::getAtmosphere (  )  [inline]

Referenced by XMLPort().

float orxonox::Planet::getAtmosphereSize (  )  [inline]

Referenced by XMLPort().

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

Referenced by XMLPort().

float orxonox::Planet::getImageSize (  )  [inline]

Referenced by XMLPort().

const std::string& orxonox::Planet::getMesh (  )  const [inline]

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

Referenced by XMLPort().

void orxonox::Planet::init (  ) 

void orxonox::Planet::registerVariables (  )  [protected]

void orxonox::Planet::setAtmosphere ( const std::string atmosphere  )  [inline]

Referenced by XMLPort().

void orxonox::Planet::setAtmosphereSize ( float  size  )  [inline]

Referenced by XMLPort().

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

Referenced by init(), and XMLPort().

void orxonox::Planet::setImageSize ( float  size  )  [inline]

Referenced by XMLPort().

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

Referenced by XMLPort().

void orxonox::Planet::tick ( float  dt  )  [virtual]

void orxonox::Planet::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::MovableEntity.

References getAtmosphere(), getAtmosphereSize(), getCastShadows(), getImageSize(), getMeshSource(), setAtmosphere(), setAtmosphereSize(), setCastShadows(), setImageSize(), setMeshSource(), orxonox::GameMode::showsGraphics(), SUPER, and XMLPortParam.


Member Data Documentation

Referenced by init(), and registerVariables().

Referenced by registerVariables(), and tick().

Referenced by changedVisibility(), init(), and tick().

std::vector<float> orxonox::Planet::distList [private]

Referenced by init().

float orxonox::Planet::imageSize [private]

Referenced by registerVariables(), and tick().

Referenced by changedMesh(), and registerVariables().


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

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