OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
MWRender::CelestialBody Class Referenceabstract

A base class for the sun and moons. More...

Inheritance diagram for MWRender::CelestialBody:
Collaboration diagram for MWRender::CelestialBody:

Public Member Functions

 CelestialBody (osg::Group *parentNode, float scaleFactor, int numUvSets)
 
virtual ~CelestialBody ()
 
virtual void adjustTransparency (const float ratio)=0
 
void setVisible (bool visible)
 

Protected Attributes

osg::ref_ptr
< osg::PositionAttitudeTransform > 
mTransform
 
osg::ref_ptr< osg::Geometry > mGeom
 

Static Protected Attributes

static const float mDistance = 1000.0f
 

Detailed Description

A base class for the sun and moons.

Constructor & Destructor Documentation

MWRender::CelestialBody::CelestialBody ( osg::Group *  parentNode,
float  scaleFactor,
int  numUvSets 
)
inline

Here is the call graph for this function:

virtual MWRender::CelestialBody::~CelestialBody ( )
inlinevirtual

Member Function Documentation

virtual void MWRender::CelestialBody::adjustTransparency ( const float  ratio)
pure virtual

Implemented in MWRender::Moon, and MWRender::Sun.

void MWRender::CelestialBody::setVisible ( bool  visible)
inline

Here is the caller graph for this function:

Member Data Documentation

const float MWRender::CelestialBody::mDistance = 1000.0f
staticprotected
osg::ref_ptr<osg::Geometry> MWRender::CelestialBody::mGeom
protected
osg::ref_ptr<osg::PositionAttitudeTransform> MWRender::CelestialBody::mTransform
protected

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