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

#include <controller.hpp>

Inheritance diagram for NifOsg::ControllerFunction:
Collaboration diagram for NifOsg::ControllerFunction:

Public Member Functions

 ControllerFunction (const Nif::Controller *ctrl)
 
float calculate (float value) const
 
virtual float getMaximum () const
 

Private Types

enum  ExtrapolationMode { Cycle = 0, Reverse = 1, Constant = 2 }
 

Private Attributes

float mFrequency
 
float mPhase
 
float mStartTime
 
float mStopTime
 
ExtrapolationMode mExtrapolationMode
 

Member Enumeration Documentation

Enumerator
Cycle 
Reverse 
Constant 

Constructor & Destructor Documentation

NifOsg::ControllerFunction::ControllerFunction ( const Nif::Controller ctrl)

Member Function Documentation

float NifOsg::ControllerFunction::calculate ( float  value) const
virtual
float NifOsg::ControllerFunction::getMaximum ( ) const
virtual

Get the "stop time" of the controller function, typically the maximum of the calculate() function. May not be meaningful for all types of controller functions.

Implements SceneUtil::ControllerFunction.

Member Data Documentation

ExtrapolationMode NifOsg::ControllerFunction::mExtrapolationMode
private
float NifOsg::ControllerFunction::mFrequency
private
float NifOsg::ControllerFunction::mPhase
private
float NifOsg::ControllerFunction::mStartTime
private
float NifOsg::ControllerFunction::mStopTime
private

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