Ogre Procedural
0.3.0 unstable
Procedural Geometry & Textures for Ogre3D
|
Produces a path from Cubic Hermite control points. More...
#include <ProceduralPathGenerators.h>
Public Types | |
typedef CubicHermiteSplineControlPoint< Ogre::Vector3 > | ControlPoint |
Public Member Functions | |
CubicHermiteSpline3 & | addPoint (const Ogre::Vector3 &p, const Ogre::Vector3 &before, const Ogre::Vector3 &after) |
Adds a control point. More... | |
CubicHermiteSpline3 & | addPoint (const Ogre::Vector3 &p, const Ogre::Vector3 &tangent) |
Adds a control point. More... | |
CubicHermiteSpline3 & | addPoint (const Ogre::Vector3 &p, CubicHermiteSplineAutoTangentMode autoTangentMode=AT_CATMULL) |
Adds a control point. More... | |
CubicHermiteSpline3 & | addPoint (Ogre::Real x, Ogre::Real y, Ogre::Real z, CubicHermiteSplineAutoTangentMode autoTangentMode=AT_CATMULL) |
Adds a control point. More... | |
const ControlPoint & | safeGetPoint (unsigned int i) const |
Safely gets a control point. More... | |
const size_t | getPointCount () const |
Gets the number of control points. More... | |
Path | realizePath () |
Builds a path from control points. More... | |
CubicHermiteSpline3 & | setNumSeg (unsigned int numSeg) |
Sets the number of segments between 2 control points. More... | |
CubicHermiteSpline3 & | close () |
Closes the spline. More... | |
Protected Attributes | |
unsigned int | mNumSeg |
The number of segments between 2 control points. More... | |
bool | mClosed |
Tells if the spline is closed or not. More... | |
Produces a path from Cubic Hermite control points.
CubicHermiteSpline3& Procedural::CubicHermiteSpline3::addPoint | ( | const Ogre::Vector3 & | p, |
const Ogre::Vector3 & | before, | ||
const Ogre::Vector3 & | after | ||
) |
Adds a control point.
CubicHermiteSpline3& Procedural::CubicHermiteSpline3::addPoint | ( | const Ogre::Vector3 & | p, |
const Ogre::Vector3 & | tangent | ||
) |
Adds a control point.
CubicHermiteSpline3& Procedural::CubicHermiteSpline3::addPoint | ( | const Ogre::Vector3 & | p, |
CubicHermiteSplineAutoTangentMode | autoTangentMode = AT_CATMULL |
||
) |
CubicHermiteSpline3& Procedural::CubicHermiteSpline3::addPoint | ( | Ogre::Real | x, |
Ogre::Real | y, | ||
Ogre::Real | z, | ||
CubicHermiteSplineAutoTangentMode | autoTangentMode = AT_CATMULL |
||
) |
|
inherited |
Closes the spline.
const size_t Procedural::CubicHermiteSpline3::getPointCount | ( | ) | const |
Gets the number of control points.
Path Procedural::CubicHermiteSpline3::realizePath | ( | ) |
Builds a path from control points.
const ControlPoint& Procedural::CubicHermiteSpline3::safeGetPoint | ( | unsigned int | i | ) | const |
Safely gets a control point.
References Procedural::Utils::cap(), and Procedural::Utils::modulo().
|
inherited |
Sets the number of segments between 2 control points.
Ogre::InvalidParametersException | Minimum of numSeg is 1 |
|
protectedinherited |
Tells if the spline is closed or not.
|
protectedinherited |
The number of segments between 2 control points.