Ogre Procedural
0.3.0 unstable
Procedural Geometry & Textures for Ogre3D
|
Builds a line Path between 2 points. More...
#include <ProceduralPathGenerators.h>
Public Member Functions | |
LinePath () | |
Default constructor. More... | |
LinePath & | setPoint1 (Ogre::Vector3 point1) |
Sets first point. More... | |
LinePath & | setPoint2 (Ogre::Vector3 point2) |
Sets second point. More... | |
LinePath & | setNumSeg (unsigned int numSeg) |
Sets the number of segments for this line. More... | |
LinePath & | betweenPoints (Ogre::Vector3 point1, Ogre::Vector3 point2) |
Builds a linepath between 2 points. More... | |
Path | realizePath () |
Outputs a path. More... | |
Builds a line Path between 2 points.
Procedural::LinePath::LinePath | ( | ) |
Default constructor.
LinePath& Procedural::LinePath::betweenPoints | ( | Ogre::Vector3 | point1, |
Ogre::Vector3 | point2 | ||
) |
Builds a linepath between 2 points.
Path Procedural::LinePath::realizePath | ( | ) |
Outputs a path.
References Procedural::Path::addPoint().
LinePath& Procedural::LinePath::setNumSeg | ( | unsigned int | numSeg | ) |
Sets the number of segments for this line.
Ogre::InvalidParametersException | Minimum of numSeg is 1 |
References Ogre::Exception::ERR_INVALIDPARAMS, and OGRE_EXCEPT.
LinePath& Procedural::LinePath::setPoint1 | ( | Ogre::Vector3 | point1 | ) |
Sets first point.
LinePath& Procedural::LinePath::setPoint2 | ( | Ogre::Vector3 | point2 | ) |
Sets second point.