MIRA
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
PolygonObject< T > Class Template Reference

#include <visualization/3d/PolygonObject.h>

Inheritance diagram for PolygonObject< T >:
Inheritance graph
[legend]

Public Types

typedef Point< T, 2 > Point2
 
typedef Point< T, 3 > Point3
 
typedef boost::geometry::model::ring< Point2Polygon2
 
typedef boost::geometry::model::ring< Point3Polygon3
 

Public Member Functions

 PolygonObject (Ogre::SceneManager *sceneManager, Ogre::SceneNode *parent=NULL)
 
virtual ~PolygonObject ()
 
virtual void setColor (const Ogre::ColourValue &color)
 
virtual void setOutlineColor (const Ogre::ColourValue &color)
 
virtual void setFillColor (const Ogre::ColourValue &color)
 
void setPolygon (const Polygon2 &polygon)
 
void setPolygon (const Polygon3 &polygon)
 
void setPolygons (const std::vector< Polygon2 > &polygons)
 
void setPolygons (const std::vector< Polygon3 > &polygons)
 
virtual void setScale (const Ogre::Vector3 &scale)
 
virtual void setScale (const Eigen::Vector3f &scale)
 
virtual void setPosition (const Ogre::Vector3 &position)
 
virtual void setPosition (const Eigen::Vector3f &position)
 
virtual void setOrientation (const Ogre::Quaternion &orientation)
 
virtual void setOrientation (const Eigen::Quaternionf &orientation)
 
virtual void setColor (Color::RGBA color)
 
virtual void setTransform (const RigidTransform2f &transform)
 
virtual void setTransform (const RigidTransform3f &transform)
 
virtual void setVisible (bool visible, bool cascade=true)
 
Ogre::SceneNode * getNode ()
 

Protected Member Functions

void setupPolygons ()
 

Protected Attributes

Ogre::ManualObject * mOutlineObject
 
Ogre::ManualObject * mAreaObject
 
Ogre::ColourValue mOutlineColor
 
Ogre::ColourValue mFillColor
 
std::vector< Polygon3mPolygons
 
Ogre::SceneManager * mSceneManager
 
Ogre::SceneNode * mNode
 

Member Typedef Documentation

◆ Point2

typedef Point<T, 2> Point2

◆ Point3

typedef Point<T, 3> Point3

◆ Polygon2

typedef boost::geometry::model::ring<Point2> Polygon2

◆ Polygon3

typedef boost::geometry::model::ring<Point3> Polygon3

Constructor & Destructor Documentation

◆ PolygonObject()

PolygonObject ( Ogre::SceneManager *  sceneManager,
Ogre::SceneNode *  parent = NULL 
)

◆ ~PolygonObject()

~PolygonObject ( )
virtual

Member Function Documentation

◆ setColor() [1/2]

void setColor ( const Ogre::ColourValue &  color)
virtual

Reimplemented from VisualizationObject.

◆ setOutlineColor()

void setOutlineColor ( const Ogre::ColourValue &  color)
virtual

◆ setFillColor()

void setFillColor ( const Ogre::ColourValue &  color)
virtual

◆ setPolygon() [1/2]

void setPolygon ( const Polygon2 polygon)

◆ setPolygon() [2/2]

void setPolygon ( const Polygon3 polygon)

◆ setPolygons() [1/2]

void setPolygons ( const std::vector< Polygon2 > &  polygons)

◆ setPolygons() [2/2]

void setPolygons ( const std::vector< Polygon3 > &  polygons)

◆ setupPolygons()

void setupPolygons ( )
protected

◆ setScale() [1/2]

virtual void setScale ( const Ogre::Vector3 &  scale)
virtualinherited

◆ setScale() [2/2]

virtual void setScale ( const Eigen::Vector3f &  scale)
virtualinherited

◆ setPosition() [1/2]

virtual void setPosition ( const Ogre::Vector3 &  position)
virtualinherited

◆ setPosition() [2/2]

virtual void setPosition ( const Eigen::Vector3f &  position)
virtualinherited

◆ setOrientation() [1/2]

virtual void setOrientation ( const Ogre::Quaternion &  orientation)
virtualinherited

◆ setOrientation() [2/2]

virtual void setOrientation ( const Eigen::Quaternionf orientation)
virtualinherited

◆ setColor() [2/2]

virtual void setColor ( Color::RGBA  color)
inlinevirtualinherited

◆ setTransform() [1/2]

virtual void setTransform ( const RigidTransform2f transform)
virtualinherited

◆ setTransform() [2/2]

virtual void setTransform ( const RigidTransform3f transform)
virtualinherited

◆ setVisible()

virtual void setVisible ( bool  visible,
bool  cascade = true 
)
virtualinherited

Reimplemented in TextObject, AxesObject, and LineStripObject.

◆ getNode()

Ogre::SceneNode* getNode ( )
inlineinherited

Member Data Documentation

◆ mOutlineObject

Ogre::ManualObject* mOutlineObject
protected

◆ mAreaObject

Ogre::ManualObject* mAreaObject
protected

◆ mOutlineColor

Ogre::ColourValue mOutlineColor
protected

◆ mFillColor

Ogre::ColourValue mFillColor
protected

◆ mPolygons

std::vector<Polygon3> mPolygons
protected

◆ mSceneManager

Ogre::SceneManager* mSceneManager
protectedinherited

◆ mNode

Ogre::SceneNode* mNode
protectedinherited

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