OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions | Private Attributes | List of all members
SceneUtil::LightController Class Reference

Controller class to handle a pulsing and/or flickering light. More...

#include <lightcontroller.hpp>

Inheritance diagram for SceneUtil::LightController:
Collaboration diagram for SceneUtil::LightController:

Public Types

enum  LightType {
  LT_Normal, LT_Flicker, LT_FlickerSlow, LT_Pulse,
  LT_PulseSlow
}
 

Public Member Functions

 LightController ()
 
void setType (LightType type)
 
void setDiffuse (const osg::Vec4f &color)
 
virtual void operator() (osg::Node *node, osg::NodeVisitor *nv)
 

Private Attributes

LightType mType
 
osg::Vec4f mDiffuseColor
 
float mPhase
 
float mDeltaCount
 
int mDirection
 
double mLastTime
 

Detailed Description

Controller class to handle a pulsing and/or flickering light.

Note
Must be set on a SceneUtil::LightSource.

Member Enumeration Documentation

Enumerator
LT_Normal 
LT_Flicker 
LT_FlickerSlow 
LT_Pulse 
LT_PulseSlow 

Constructor & Destructor Documentation

SceneUtil::LightController::LightController ( )

Member Function Documentation

void SceneUtil::LightController::operator() ( osg::Node *  node,
osg::NodeVisitor *  nv 
)
virtual

Here is the call graph for this function:

void SceneUtil::LightController::setDiffuse ( const osg::Vec4f &  color)

Here is the caller graph for this function:

void SceneUtil::LightController::setType ( LightController::LightType  type)

Member Data Documentation

float SceneUtil::LightController::mDeltaCount
private
osg::Vec4f SceneUtil::LightController::mDiffuseColor
private
int SceneUtil::LightController::mDirection
private
double SceneUtil::LightController::mLastTime
private
float SceneUtil::LightController::mPhase
private
LightType SceneUtil::LightController::mType
private

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