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

Classes

class  DummyComputeBoundCallback
 
class  OcclusionCallback
 
class  SunFlashCallback
 SunFlashCallback handles fading/scaling of a node depending on occlusion query result. Must be attached as a cull callback. More...
 
class  SunGlareCallback
 
class  Updater
 

Public Member Functions

 Sun (osg::Group *parentNode, Resource::ImageManager &imageManager)
 
 ~Sun ()
 
void setColor (const osg::Vec4f &color)
 
virtual void adjustTransparency (const float ratio)
 
void setDirection (const osg::Vec3f &direction)
 
void setGlareTimeOfDayFade (float val)
 
- Public Member Functions inherited from MWRender::CelestialBody
 CelestialBody (osg::Group *parentNode, float scaleFactor, int numUvSets)
 
virtual ~CelestialBody ()
 
void setVisible (bool visible)
 

Private Member Functions

osg::ref_ptr
< osg::OcclusionQueryNode > 
createOcclusionQueryNode (osg::Group *parent, bool queryVisible)
 
void createSunFlash (Resource::ImageManager &imageManager)
 
void destroySunFlash ()
 
void createSunGlare ()
 
void destroySunGlare ()
 

Private Attributes

osg::ref_ptr< UpdatermUpdater
 
osg::ref_ptr< SunFlashCallbackmSunFlashCallback
 
osg::ref_ptr< osg::Node > mSunFlashNode
 
osg::ref_ptr< SunGlareCallbackmSunGlareCallback
 
osg::ref_ptr< osg::Node > mSunGlareNode
 
osg::ref_ptr
< osg::OcclusionQueryNode > 
mOcclusionQueryVisiblePixels
 
osg::ref_ptr
< osg::OcclusionQueryNode > 
mOcclusionQueryTotalPixels
 

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
 

Constructor & Destructor Documentation

MWRender::Sun::Sun ( osg::Group *  parentNode,
Resource::ImageManager imageManager 
)
inline

Here is the call graph for this function:

MWRender::Sun::~Sun ( )
inline

Here is the call graph for this function:

Member Function Documentation

virtual void MWRender::Sun::adjustTransparency ( const float  ratio)
inlinevirtual
osg::ref_ptr<osg::OcclusionQueryNode> MWRender::Sun::createOcclusionQueryNode ( osg::Group *  parent,
bool  queryVisible 
)
inlineprivate
Parameters
queryVisibleIf true, queries the amount of visible pixels. If false, queries the total amount of pixels.

Here is the caller graph for this function:

void MWRender::Sun::createSunFlash ( Resource::ImageManager imageManager)
inlineprivate

Here is the call graph for this function:

Here is the caller graph for this function:

void MWRender::Sun::createSunGlare ( )
inlineprivate

Here is the caller graph for this function:

void MWRender::Sun::destroySunFlash ( )
inlineprivate

Here is the caller graph for this function:

void MWRender::Sun::destroySunGlare ( )
inlineprivate

Here is the caller graph for this function:

void MWRender::Sun::setColor ( const osg::Vec4f &  color)
inline
void MWRender::Sun::setDirection ( const osg::Vec3f &  direction)
inline
void MWRender::Sun::setGlareTimeOfDayFade ( float  val)
inline

Member Data Documentation

osg::ref_ptr<osg::OcclusionQueryNode> MWRender::Sun::mOcclusionQueryTotalPixels
private
osg::ref_ptr<osg::OcclusionQueryNode> MWRender::Sun::mOcclusionQueryVisiblePixels
private
osg::ref_ptr<SunFlashCallback> MWRender::Sun::mSunFlashCallback
private
osg::ref_ptr<osg::Node> MWRender::Sun::mSunFlashNode
private
osg::ref_ptr<SunGlareCallback> MWRender::Sun::mSunGlareCallback
private
osg::ref_ptr<osg::Node> MWRender::Sun::mSunGlareNode
private
osg::ref_ptr<Updater> MWRender::Sun::mUpdater
private

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