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

#include <controller.hpp>

Inheritance diagram for NifOsg::AlphaController:
Collaboration diagram for NifOsg::AlphaController:

Public Member Functions

 AlphaController (const Nif::NiFloatData *data)
 
 AlphaController ()
 
 AlphaController (const AlphaController &copy, const osg::CopyOp &copyop)
 
virtual void setDefaults (osg::StateSet *stateset)
 
virtual void apply (osg::StateSet *stateset, osg::NodeVisitor *nv)
 
- Public Member Functions inherited from SceneUtil::StateSetUpdater
 StateSetUpdater ()
 
 StateSetUpdater (const StateSetUpdater &copy, const osg::CopyOp &copyop)
 
- Public Member Functions inherited from SceneUtil::Controller
 Controller ()
 
virtual ~Controller ()
 
bool hasInput () const
 
float getInputValue (osg::NodeVisitor *nv)
 
void setSource (std::shared_ptr< ControllerSource > source)
 
void setFunction (std::shared_ptr< ControllerFunction > function)
 
std::shared_ptr< ControllerSourcegetSource () const
 
std::shared_ptr
< ControllerFunction
getFunction () const
 

Private Attributes

FloatInterpolator mData
 

Additional Inherited Members

- Protected Member Functions inherited from SceneUtil::StateSetUpdater
void reset ()
 Reset mStateSets, forcing a setDefaults() on the next frame. Can be used to change the defaults if needed. More...
 

Constructor & Destructor Documentation

NifOsg::AlphaController::AlphaController ( const Nif::NiFloatData data)
NifOsg::AlphaController::AlphaController ( )
NifOsg::AlphaController::AlphaController ( const AlphaController copy,
const osg::CopyOp &  copyop 
)

Member Function Documentation

void NifOsg::AlphaController::apply ( osg::StateSet *  stateset,
osg::NodeVisitor *  nv 
)
virtual

Apply state - to override in derived classes

Note
Due to the double buffering approach you have to apply all state even if it has not changed since the last frame.

Reimplemented from SceneUtil::StateSetUpdater.

Here is the call graph for this function:

void NifOsg::AlphaController::setDefaults ( osg::StateSet *  stateset)
virtual

Set default state - optionally override in derived classes

May be used e.g. to allocate StateAttributes.

Reimplemented from SceneUtil::StateSetUpdater.

Here is the call graph for this function:

Member Data Documentation

FloatInterpolator NifOsg::AlphaController::mData
private

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