RigsofRods
Soft-body Physics Simulation
Public Member Functions | Private Member Functions | Private Attributes
SkyX::MoonManager Class Reference

#include <MoonManager.h>

+ Collaboration diagram for SkyX::MoonManager:

Public Member Functions

 MoonManager (SkyX *s)
 Constructor. More...
 
 ~MoonManager ()
 Destructor. More...
 
void create ()
 Create all resources. More...
 
void remove ()
 Remove all resources. More...
 
void updateMoonPhase (const Ogre::Real &phase)
 Update moon phase. More...
 
void updateGeometry (Ogre::Camera *c)
 Update geometry. More...
 
Ogre::BillboardSet * getMoonBillboard ()
 Get moon billboard. More...
 
Ogre::SceneNode * getMoonSceneNode ()
 Get moon scene node. More...
 
void setMoonSize (const Ogre::Real &MoonSize)
 Set moon size. More...
 
const Ogre::Real & getMoonSize () const
 Get moon size. More...
 
void setMoonHaloIntensity (const Ogre::Real &MoonHaloIntensity)
 Set moon halo intensity. More...
 
const Ogre::Real & getMoonHaloIntensity () const
 Get moon halo intensity. More...
 
void setMoonHaloStrength (const Ogre::Real &MoonHaloStrength)
 Set moon halo strength. More...
 
const Ogre::Real & getMoonHaloStrength () const
 Get moon halo strength. More...
 
const bool & isCreated () const
 Is moon manager created? More...
 

Private Member Functions

void _updateMoonBounds (Ogre::Camera *c)
 Update moon bounds. More...
 

Private Attributes

Ogre::BillboardSet * mMoonBillboard
 Moon billboard. More...
 
Ogre::SceneNode * mMoonSceneNode
 Moon scene node. More...
 
bool mCreated
 Is moon manager created? More...
 
Ogre::Real mMoonSize
 Moon size. More...
 
Ogre::Real mMoonHaloIntensity
 Moon halo intensity. More...
 
Ogre::Real mMoonHaloStrength
 Moon halo strength. More...
 
Ogre::MaterialPtr mMoonMaterial
 Moon material. More...
 
SkyXmSkyX
 SkyX parent pointer. More...
 

Detailed Description

Definition at line 33 of file MoonManager.h.

Constructor & Destructor Documentation

◆ MoonManager()

SkyX::MoonManager::MoonManager ( SkyX s)

Constructor.

Parameters
sParent SkyX pointer

Definition at line 30 of file MoonManager.cpp.

◆ ~MoonManager()

SkyX::MoonManager::~MoonManager ( )

Destructor.

Definition at line 42 of file MoonManager.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ _updateMoonBounds()

void SkyX::MoonManager::_updateMoonBounds ( Ogre::Camera *  c)
private

Update moon bounds.

Parameters
cCamera

Definition at line 302 of file MoonManager.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ create()

void SkyX::MoonManager::create ( )

Create all resources.

Definition at line 47 of file MoonManager.cpp.

+ Here is the call graph for this function:

◆ getMoonBillboard()

Ogre::BillboardSet* SkyX::MoonManager::getMoonBillboard ( )
inline

Get moon billboard.

Returns
Moon billboard

Definition at line 66 of file MoonManager.h.

◆ getMoonHaloIntensity()

const Ogre::Real& SkyX::MoonManager::getMoonHaloIntensity ( ) const
inline

Get moon halo intensity.

Returns
Moon halo intensity

Definition at line 106 of file MoonManager.h.

◆ getMoonHaloStrength()

const Ogre::Real& SkyX::MoonManager::getMoonHaloStrength ( ) const
inline

Get moon halo strength.

Returns
Moon halo strength (linear/exponential fading)

Definition at line 122 of file MoonManager.h.

◆ getMoonSceneNode()

Ogre::SceneNode* SkyX::MoonManager::getMoonSceneNode ( )
inline

Get moon scene node.

Returns
Moon scene node

Definition at line 74 of file MoonManager.h.

◆ getMoonSize()

const Ogre::Real& SkyX::MoonManager::getMoonSize ( ) const
inline

Get moon size.

Returns
Moon size

Definition at line 90 of file MoonManager.h.

◆ isCreated()

const bool& SkyX::MoonManager::isCreated ( ) const
inline

Is moon manager created?

Returns
true if yes, false if not

Definition at line 130 of file MoonManager.h.

◆ remove()

void SkyX::MoonManager::remove ( )

Remove all resources.

Definition at line 77 of file MoonManager.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setMoonHaloIntensity()

void SkyX::MoonManager::setMoonHaloIntensity ( const Ogre::Real &  MoonHaloIntensity)
inline

Set moon halo intensity.

Parameters
MoonHaloIntensityMoon halo intensity

Definition at line 98 of file MoonManager.h.

◆ setMoonHaloStrength()

void SkyX::MoonManager::setMoonHaloStrength ( const Ogre::Real &  MoonHaloStrength)
inline

Set moon halo strength.

Parameters
MoonHaloStrengthMoon halo strength (linear/exponential fading)

Definition at line 114 of file MoonManager.h.

◆ setMoonSize()

void SkyX::MoonManager::setMoonSize ( const Ogre::Real &  MoonSize)
inline

Set moon size.

Parameters
MoonSizeMoon size

Definition at line 82 of file MoonManager.h.

◆ updateGeometry()

void SkyX::MoonManager::updateGeometry ( Ogre::Camera *  c)

Update geometry.

Parameters
cCamera

Definition at line 267 of file MoonManager.cpp.

+ Here is the call graph for this function:

◆ updateMoonPhase()

void SkyX::MoonManager::updateMoonPhase ( const Ogre::Real &  phase)

Update moon phase.

Parameters
phaseMoon phase in [-1,1] range, where -1 means fully covered Moon, 0 clear Moon and 1 fully covered Moon

Definition at line 96 of file MoonManager.cpp.

Field Documentation

◆ mCreated

bool SkyX::MoonManager::mCreated
private

Is moon manager created?

Definition at line 147 of file MoonManager.h.

◆ mMoonBillboard

Ogre::BillboardSet* SkyX::MoonManager::mMoonBillboard
private

Moon billboard.

Definition at line 142 of file MoonManager.h.

◆ mMoonHaloIntensity

Ogre::Real SkyX::MoonManager::mMoonHaloIntensity
private

Moon halo intensity.

Definition at line 152 of file MoonManager.h.

◆ mMoonHaloStrength

Ogre::Real SkyX::MoonManager::mMoonHaloStrength
private

Moon halo strength.

Definition at line 154 of file MoonManager.h.

◆ mMoonMaterial

Ogre::MaterialPtr SkyX::MoonManager::mMoonMaterial
private

Moon material.

Definition at line 157 of file MoonManager.h.

◆ mMoonSceneNode

Ogre::SceneNode* SkyX::MoonManager::mMoonSceneNode
private

Moon scene node.

Definition at line 144 of file MoonManager.h.

◆ mMoonSize

Ogre::Real SkyX::MoonManager::mMoonSize
private

Moon size.

Definition at line 150 of file MoonManager.h.

◆ mSkyX

SkyX* SkyX::MoonManager::mSkyX
private

SkyX parent pointer.

Definition at line 160 of file MoonManager.h.


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