OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
MWRender::Moon Class Reference
Inheritance diagram for MWRender::Moon:
Collaboration diagram for MWRender::Moon:

Classes

struct  Updater
 

Public Types

enum  Type { Type_Masser = 0, Type_Secunda }
 

Public Member Functions

 Moon (osg::Group *parentNode, Resource::ImageManager &imageManager, float scaleFactor, Type type)
 
 ~Moon ()
 
virtual void adjustTransparency (const float ratio)
 
void setState (const MoonState &state)
 
void setAtmosphereColor (const osg::Vec4f &color)
 
void setColor (const osg::Vec4f &color)
 
unsigned int getPhaseInt () const
 
- Public Member Functions inherited from MWRender::CelestialBody
 CelestialBody (osg::Group *parentNode, float scaleFactor, int numUvSets)
 
virtual ~CelestialBody ()
 
void setVisible (bool visible)
 

Private Member Functions

void setPhase (const MoonState::Phase &phase)
 

Private Attributes

Type mType
 
MoonState::Phase mPhase
 
osg::ref_ptr< UpdatermUpdater
 

Additional Inherited Members

- Protected Attributes inherited from MWRender::CelestialBody
osg::ref_ptr
< osg::PositionAttitudeTransform > 
mTransform
 
osg::ref_ptr< osg::Geometry > mGeom
 
- Static Protected Attributes inherited from MWRender::CelestialBody
static const float mDistance = 1000.0f
 

Member Enumeration Documentation

Enumerator
Type_Masser 
Type_Secunda 

Constructor & Destructor Documentation

MWRender::Moon::Moon ( osg::Group *  parentNode,
Resource::ImageManager imageManager,
float  scaleFactor,
Type  type 
)
inline

Here is the call graph for this function:

MWRender::Moon::~Moon ( )
inline

Member Function Documentation

virtual void MWRender::Moon::adjustTransparency ( const float  ratio)
inlinevirtual
unsigned int MWRender::Moon::getPhaseInt ( ) const
inline
void MWRender::Moon::setAtmosphereColor ( const osg::Vec4f &  color)
inline
void MWRender::Moon::setColor ( const osg::Vec4f &  color)
inline
void MWRender::Moon::setPhase ( const MoonState::Phase phase)
inlineprivate

Here is the caller graph for this function:

void MWRender::Moon::setState ( const MoonState state)
inline

Here is the call graph for this function:

Member Data Documentation

MoonState::Phase MWRender::Moon::mPhase
private
Type MWRender::Moon::mType
private
osg::ref_ptr<Updater> MWRender::Moon::mUpdater
private

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