Ogre Procedural
0.3.0 unstable
Procedural Geometry & Textures for Ogre3D
|
Builds a ellipse shape. More...
#include <ProceduralShapeGenerators.h>
Public Member Functions | |
EllipseShape () | |
Default constructor. More... | |
EllipseShape & | setRadiusX (Ogre::Real radius) |
Sets radius in x direction. More... | |
EllipseShape & | setRadiusY (Ogre::Real radius) |
Sets radius in y direction. More... | |
EllipseShape & | setNumSeg (unsigned int numSeg) |
Sets number of segments. More... | |
Shape | realizeShape () |
Builds the shape. More... | |
Builds a ellipse shape.
Procedural::EllipseShape::EllipseShape | ( | ) |
Default constructor.
Shape Procedural::EllipseShape::realizeShape | ( | ) |
Builds the shape.
References Procedural::Shape::addPoint(), Procedural::Shape::close(), and Ogre::Math::TWO_PI.
EllipseShape& Procedural::EllipseShape::setNumSeg | ( | unsigned int | numSeg | ) |
Sets number of segments.
Ogre::InvalidParametersException | Minimum of numSeg is 1 |
References Ogre::Exception::ERR_INVALIDPARAMS, and OGRE_EXCEPT.
EllipseShape& Procedural::EllipseShape::setRadiusX | ( | Ogre::Real | radius | ) |
Sets radius in x direction.
Ogre::InvalidParametersException | Radius must be larger than 0! |
References Ogre::Exception::ERR_INVALIDPARAMS, and OGRE_EXCEPT.
EllipseShape& Procedural::EllipseShape::setRadiusY | ( | Ogre::Real | radius | ) |
Sets radius in y direction.
Ogre::InvalidParametersException | Radius must be larger than 0! |
References Ogre::Exception::ERR_INVALIDPARAMS, and OGRE_EXCEPT.