Ogre Procedural  0.3.0 unstable
Procedural Geometry & Textures for Ogre3D
Public Member Functions | List of all members
Procedural::EllipseShape Class Reference

Builds a ellipse shape. More...

#include <ProceduralShapeGenerators.h>

Public Member Functions

 EllipseShape ()
 Default constructor. More...
 
EllipseShapesetRadiusX (Ogre::Real radius)
 Sets radius in x direction. More...
 
EllipseShapesetRadiusY (Ogre::Real radius)
 Sets radius in y direction. More...
 
EllipseShapesetNumSeg (unsigned int numSeg)
 Sets number of segments. More...
 
Shape realizeShape ()
 Builds the shape. More...
 

Detailed Description

Builds a ellipse shape.

Constructor & Destructor Documentation

◆ EllipseShape()

Procedural::EllipseShape::EllipseShape ( )

Default constructor.

Member Function Documentation

◆ realizeShape()

Shape Procedural::EllipseShape::realizeShape ( )

◆ setNumSeg()

EllipseShape& Procedural::EllipseShape::setNumSeg ( unsigned int  numSeg)

Sets number of segments.

Exceptions
Ogre::InvalidParametersExceptionMinimum of numSeg is 1

References Ogre::Exception::ERR_INVALIDPARAMS, and OGRE_EXCEPT.

◆ setRadiusX()

EllipseShape& Procedural::EllipseShape::setRadiusX ( Ogre::Real  radius)

Sets radius in x direction.

Exceptions
Ogre::InvalidParametersExceptionRadius must be larger than 0!

References Ogre::Exception::ERR_INVALIDPARAMS, and OGRE_EXCEPT.

◆ setRadiusY()

EllipseShape& Procedural::EllipseShape::setRadiusY ( Ogre::Real  radius)

Sets radius in y direction.

Exceptions
Ogre::InvalidParametersExceptionRadius must be larger than 0!

References Ogre::Exception::ERR_INVALIDPARAMS, and OGRE_EXCEPT.


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