15#ifndef OSGPARTICLE_INTERPOLATOR
16#define OSGPARTICLE_INTERPOLATOR
38 virtual const char*
libraryName()
const {
return "osgParticle"; }
39 virtual const char*
className()
const {
return "Interpolator"; }
43 virtual float interpolate(
float t,
float y1,
float y2)
const = 0;
75 template<
class ValueType>
The core osg library provides the basic scene graph classes such as Nodes, State and Drawables,...
Definition AlphaFunc:19
Vec2f Vec2
Definition Vec2:21
Vec3f Vec3
Definition Vec3:21
Vec4f Vec4
Definition Vec4:21
The osgParticle library is a NodeKit that extends the core scene graph to support particle effects.
Definition AccelOperator:27
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
@ SHALLOW_COPY
Definition CopyOp:47
Base class/standard interface for objects which require IO support, cloning and reference counting.
Definition Object:61
Object()
Construct an object.
Definition Object:69
value_type & x()
Definition Vec2f:67
value_type & y()
Definition Vec2f:68
value_type & z()
Definition Vec3f:82
value_type & y()
Definition Vec3f:81
value_type & x()
Definition Vec3f:80
value_type & y()
Definition Vec4f:88
value_type & x()
Definition Vec4f:87
value_type & z()
Definition Vec4f:89
value_type & w()
Definition Vec4f:90
virtual float interpolate(float t, float y1, float y2) const =0
Interpolate between floats. Must be overridden in descendant classes.
virtual ~Interpolator()
Definition Interpolator:82
Interpolator()
Definition Interpolator:32
virtual const char * className() const
return the name of the object's class type.
Definition Interpolator:39
Interpolator(const Interpolator ©, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY)
Definition Interpolator:35
virtual osg::Vec4 interpolate(float t, const osg::Vec4 &y1, const osg::Vec4 &y2) const
Interpolate between 4-dimensional vectors. Default behavior is to interpolate each component separate...
Definition Interpolator:65
virtual osg::Vec3 interpolate(float t, const osg::Vec3 &y1, const osg::Vec3 &y2) const
Interpolate between 3-dimensional vectors. Default behavior is to interpolate each component separate...
Definition Interpolator:55
virtual const char * libraryName() const
return the name of the object's library.
Definition Interpolator:38
virtual osg::Vec2 interpolate(float t, const osg::Vec2 &y1, const osg::Vec2 &y2) const
Interpolate between 2-dimensional vectors. Default behavior is to interpolate each component separate...
Definition Interpolator:46
virtual bool isSameKindAs(const osg::Object *obj) const
Definition Interpolator:40
ValueType interpolate(float t, const range< ValueType > &r) const
Definition Interpolator:76
A simple struct template useful to store ranges of values as min/max pairs.
Definition range:39
ValueType maximum
Higher bound.
Definition range:45
ValueType minimum
Lower bound.
Definition range:42