Particle Universe  1.2
ParticleUniverse::DynamicAttributeCurved Class Reference

#include <ParticleUniverseDynamicAttribute.h>

Inheritance diagram for ParticleUniverse::DynamicAttributeCurved:

Public Types

typedef vector< Vector2ControlPointList
 
- Public Types inherited from ParticleUniverse::DynamicAttribute
enum  DynamicAttributeType { DAT_FIXED, DAT_RANDOM, DAT_CURVED, DAT_OSCILLATE }
 

Public Member Functions

 DynamicAttributeCurved (void)
 
 DynamicAttributeCurved (InterpolationType interpolationType)
 
 DynamicAttributeCurved (const DynamicAttributeCurved &dynamicAttributeCurved)
 
 ~DynamicAttributeCurved (void)
 
void setInterpolationType (InterpolationType interpolationType)
 
InterpolationType getInterpolationType (void) const
 
virtual Real getValue (Real x=0)
 
virtual void addControlPoint (Real x, Real y)
 
const ControlPointListgetControlPoints (void) const
 
void processControlPoints (void)
 
size_t getNumControlPoints (void) const
 
void removeAllControlPoints (void)
 
virtual void copyAttributesTo (DynamicAttribute *dynamicAttribute)
 
- Public Member Functions inherited from ParticleUniverse::DynamicAttribute
 DynamicAttribute (void)
 
virtual ~DynamicAttribute (void)
 
DynamicAttributeType getType (void) const
 
void setType (DynamicAttributeType type)
 
bool isValueChangedExternally (void) const
 
- Public Member Functions inherited from ParticleUniverse::IElement
 IElement (void)
 
virtual ~IElement (void)
 

Protected Member Functions

ControlPointList::iterator _findNearestControlPointIterator (Real x)
 
ControlPointList::iterator _getFirstValidIterator (void)
 
ControlPointList::iterator _getLastValidIterator (void)
 

Protected Attributes

Real mRange
 
SimpleSpline mSpline
 
InterpolationType mInterpolationType
 
ControlPointList mControlPoints
 
- Protected Attributes inherited from ParticleUniverse::DynamicAttribute
DynamicAttributeType mType
 
bool mValueChangedExternally
 

Member Typedef Documentation

Constructor & Destructor Documentation

ParticleUniverse::DynamicAttributeCurved::DynamicAttributeCurved ( void  )

Constructor

ParticleUniverse::DynamicAttributeCurved::DynamicAttributeCurved ( InterpolationType  interpolationType)
ParticleUniverse::DynamicAttributeCurved::DynamicAttributeCurved ( const DynamicAttributeCurved dynamicAttributeCurved)

Copy constructor

ParticleUniverse::DynamicAttributeCurved::~DynamicAttributeCurved ( void  )

Destructor

Member Function Documentation

ControlPointList::iterator ParticleUniverse::DynamicAttributeCurved::_findNearestControlPointIterator ( Real  x)
inlineprotected

Find an iterator that forms the low (left) value of the interval where x lies in.

ControlPointList::iterator ParticleUniverse::DynamicAttributeCurved::_getFirstValidIterator ( void  )
inlineprotected

Helper functions

ControlPointList::iterator ParticleUniverse::DynamicAttributeCurved::_getLastValidIterator ( void  )
inlineprotected
virtual void ParticleUniverse::DynamicAttributeCurved::addControlPoint ( Real  x,
Real  y 
)
virtual

Todo

virtual void ParticleUniverse::DynamicAttributeCurved::copyAttributesTo ( DynamicAttribute dynamicAttribute)
virtual
const ControlPointList& ParticleUniverse::DynamicAttributeCurved::getControlPoints ( void  ) const

Todo

InterpolationType ParticleUniverse::DynamicAttributeCurved::getInterpolationType ( void  ) const
size_t ParticleUniverse::DynamicAttributeCurved::getNumControlPoints ( void  ) const

Todo

virtual Real ParticleUniverse::DynamicAttributeCurved::getValue ( Real  x = 0)
virtual
void ParticleUniverse::DynamicAttributeCurved::processControlPoints ( void  )

Todo

void ParticleUniverse::DynamicAttributeCurved::removeAllControlPoints ( void  )

Todo

void ParticleUniverse::DynamicAttributeCurved::setInterpolationType ( InterpolationType  interpolationType)

Get and set the curve type

Member Data Documentation

ControlPointList ParticleUniverse::DynamicAttributeCurved::mControlPoints
protected

Todo

InterpolationType ParticleUniverse::DynamicAttributeCurved::mInterpolationType
protected

Todo

Real ParticleUniverse::DynamicAttributeCurved::mRange
protected

Todo

SimpleSpline ParticleUniverse::DynamicAttributeCurved::mSpline
protected

Todo


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