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

This class creates a visualisation of the normals of a TriangleBuffer. More...

#include <ProceduralDebugRendering.h>

Public Types

enum  VisualStyle { VS_LINE, VS_ARROW }
 

Public Member Functions

 ShowNormalsGenerator ()
 
ShowNormalsGeneratorsetTriangleBuffer (TriangleBuffer *triangleBuffer)
 Sets the input Triangle Buffer. More...
 
ShowNormalsGeneratorsetSize (Ogre::Real size)
 Sets the size of the normals representation (default = 1.0) More...
 
ShowNormalsGeneratorsetVisualStyle (VisualStyle visualStyle)
 Sets the visual style, line or arrow (default = line) More...
 
Ogre::ManualObjectbuildManualObject () const
 Builds the normals representation as a manual object. More...
 
Ogre::MeshPtr buildMesh (const std::string &name="", const Ogre::String &group="General") const
 Builds the normals representation as a mesh. More...
 

Detailed Description

This class creates a visualisation of the normals of a TriangleBuffer.

Member Enumeration Documentation

◆ VisualStyle

Enumerator
VS_LINE 
VS_ARROW 

Constructor & Destructor Documentation

◆ ShowNormalsGenerator()

Procedural::ShowNormalsGenerator::ShowNormalsGenerator ( )

Member Function Documentation

◆ buildManualObject()

Ogre::ManualObject* Procedural::ShowNormalsGenerator::buildManualObject ( ) const

Builds the normals representation as a manual object.

Exceptions
Ogre::InvalidStateExceptionThe input triangle buffer must not be null
Ogre::InvalidStateExceptionScene Manager is not set in OGRE root object

◆ buildMesh()

Ogre::MeshPtr Procedural::ShowNormalsGenerator::buildMesh ( const std::string &  name = "",
const Ogre::String group = "General" 
) const

Builds the normals representation as a mesh.

◆ setSize()

ShowNormalsGenerator& Procedural::ShowNormalsGenerator::setSize ( Ogre::Real  size)

Sets the size of the normals representation (default = 1.0)

◆ setTriangleBuffer()

ShowNormalsGenerator& Procedural::ShowNormalsGenerator::setTriangleBuffer ( TriangleBuffer triangleBuffer)

Sets the input Triangle Buffer.

◆ setVisualStyle()

ShowNormalsGenerator& Procedural::ShowNormalsGenerator::setVisualStyle ( VisualStyle  visualStyle)

Sets the visual style, line or arrow (default = line)


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