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

Builds a triangele shape. More...

#include <ProceduralShapeGenerators.h>

Public Member Functions

 TriangleShape ()
 Default constructor. More...
 
TriangleShapesetLength (Ogre::Real length)
 Creates an equilateral triangle. More...
 
TriangleShapesetLengthA (Ogre::Real length)
 Sets length of edge A. More...
 
TriangleShapesetLengthB (Ogre::Real length)
 Sets length of edge B. More...
 
TriangleShapesetLengthC (Ogre::Real length)
 Sets length of edge C. More...
 
Shape realizeShape ()
 Builds the shape. More...
 

Detailed Description

Builds a triangele shape.

Constructor & Destructor Documentation

◆ TriangleShape()

Procedural::TriangleShape::TriangleShape ( )

Default constructor.

Member Function Documentation

◆ realizeShape()

Shape Procedural::TriangleShape::realizeShape ( )

◆ setLength()

TriangleShape& Procedural::TriangleShape::setLength ( Ogre::Real  length)

Creates an equilateral triangle.

Exceptions
Ogre::InvalidStateExceptionLength of triangle edges must be longer than 0!

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

◆ setLengthA()

TriangleShape& Procedural::TriangleShape::setLengthA ( Ogre::Real  length)

Sets length of edge A.

Exceptions
Ogre::InvalidStateExceptionLength of triangle edge must be longer than 0!
Ogre::InvalidStateExceptionLength of triangle edge A must be shorter or equal than B+C!

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

◆ setLengthB()

TriangleShape& Procedural::TriangleShape::setLengthB ( Ogre::Real  length)

Sets length of edge B.

Exceptions
Ogre::InvalidStateExceptionLength of triangle edge must be longer than 0!
Ogre::InvalidStateExceptionLength of triangle edge A must be shorter or equal than B+C!

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

◆ setLengthC()

TriangleShape& Procedural::TriangleShape::setLengthC ( Ogre::Real  length)

Sets length of edge C.

Exceptions
Ogre::InvalidStateExceptionLength of triangle edge must be longer than 0!
Ogre::InvalidStateExceptionLength of triangle edge A must be shorter or equal than B+C!

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


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