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

Builds a rectangular shape. More...

#include <ProceduralShapeGenerators.h>

Public Member Functions

 RectangleShape ()
 Default constructor. More...
 
RectangleShapesetWidth (Ogre::Real width)
 Sets width. More...
 
RectangleShapesetHeight (Ogre::Real height)
 Sets height. More...
 
Shape realizeShape ()
 Builds the shape. More...
 

Detailed Description

Builds a rectangular shape.

Constructor & Destructor Documentation

◆ RectangleShape()

Procedural::RectangleShape::RectangleShape ( )

Default constructor.

Member Function Documentation

◆ realizeShape()

Shape Procedural::RectangleShape::realizeShape ( )

Builds the shape.

References Procedural::Shape::addPoint(), and Procedural::Shape::close().

◆ setHeight()

RectangleShape& Procedural::RectangleShape::setHeight ( Ogre::Real  height)

Sets height.

Exceptions
Ogre::InvalidParametersExceptionHeight must be larger than 0!

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

◆ setWidth()

RectangleShape& Procedural::RectangleShape::setWidth ( Ogre::Real  width)

Sets width.

Exceptions
Ogre::InvalidParametersExceptionWidth must be larger than 0!

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


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