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

Public Member Functions

 SunGlareCallback (osg::ref_ptr< osg::OcclusionQueryNode > oqnVisible, osg::ref_ptr< osg::OcclusionQueryNode > oqnTotal, osg::ref_ptr< osg::PositionAttitudeTransform > sunTransform)
 
virtual void operator() (osg::Node *node, osg::NodeVisitor *nv)
 
void setTimeOfDayFade (float val)
 
void setGlareView (float glareView)
 
- Public Member Functions inherited from MWRender::Sun::OcclusionCallback
 OcclusionCallback (osg::ref_ptr< osg::OcclusionQueryNode > oqnVisible, osg::ref_ptr< osg::OcclusionQueryNode > oqnTotal)
 

Private Member Functions

float getAngleToSunInRadians (const osg::Matrix &viewMatrix) const
 

Private Attributes

osg::ref_ptr
< osg::PositionAttitudeTransform > 
mSunTransform
 
float mTimeOfDayFade
 
float mGlareView
 
osg::Vec4f mColor
 
float mSunGlareFaderMax
 
float mSunGlareFaderAngleMax
 

Additional Inherited Members

- Protected Member Functions inherited from MWRender::Sun::OcclusionCallback
float getVisibleRatio (osg::Camera *camera)
 

Detailed Description

SunGlareCallback controls a full-screen glare effect depending on occlusion query result and the angle between sun and camera. Must be attached as a cull callback to the node above the glare node.

Constructor & Destructor Documentation

MWRender::Sun::SunGlareCallback::SunGlareCallback ( osg::ref_ptr< osg::OcclusionQueryNode >  oqnVisible,
osg::ref_ptr< osg::OcclusionQueryNode >  oqnTotal,
osg::ref_ptr< osg::PositionAttitudeTransform >  sunTransform 
)
inline

Here is the call graph for this function:

Member Function Documentation

float MWRender::Sun::SunGlareCallback::getAngleToSunInRadians ( const osg::Matrix &  viewMatrix) const
inlineprivate

Here is the caller graph for this function:

virtual void MWRender::Sun::SunGlareCallback::operator() ( osg::Node *  node,
osg::NodeVisitor *  nv 
)
inlinevirtual

Here is the call graph for this function:

void MWRender::Sun::SunGlareCallback::setGlareView ( float  glareView)
inline
void MWRender::Sun::SunGlareCallback::setTimeOfDayFade ( float  val)
inline

Member Data Documentation

osg::Vec4f MWRender::Sun::SunGlareCallback::mColor
private
float MWRender::Sun::SunGlareCallback::mGlareView
private
float MWRender::Sun::SunGlareCallback::mSunGlareFaderAngleMax
private
float MWRender::Sun::SunGlareCallback::mSunGlareFaderMax
private
osg::ref_ptr<osg::PositionAttitudeTransform> MWRender::Sun::SunGlareCallback::mSunTransform
private
float MWRender::Sun::SunGlareCallback::mTimeOfDayFade
private

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