BuildingModelManip Class Reference

Manipulate a 3D visual associated to a 2D editor item. More...

#include <BuildingModelManip.hh>

Inherits QObject.

Signals

void ColorChanged (const common::Color &_color)
 Qt signal emitted when the manip's color has changed from the 3D view. More...
 
void TextureChanged (const std::string &_texture)
 Qt signal emitted when the manip's texture has changed from the 3D view. More...
 

Public Member Functions

 BuildingModelManip ()
 Constructor. More...
 
virtual ~BuildingModelManip ()
 Destructor. More...
 
common::Color Color () const
 Get the color of the manip. More...
 
int Level () const
 Get the level for this manip. More...
 
std::string Name () const
 Get the name of the manip object. More...
 
void SetColor (QColor _color)
 Set the color of the manip. More...
 
void SetLevel (const int _level)
 Set the level for this manip. More...
 
void SetMaker (BuildingMaker *_maker)
 Set the maker that the manip is managed by. More...
 
void SetName (const std::string &_name)
 Set the name of the manip object. More...
 
void SetPose (double _x, double _y, double _z, double _roll, double _pitch, double _yaw)
 Set the pose of the manip. More...
 
void SetPosition (double _x, double _y, double _z)
 Set the position of the manip. More...
 
void SetRotation (double _roll, double _pitch, double _yaw)
 Set the rotation of the manip. More...
 
void SetSize (double _width, double _depth, double _height)
 Set the size of the manip. More...
 
void SetTexture (QString _texture)
 Set the texture of the manip. More...
 
void SetTransparency (float _transparency)
 Set the transparency of the manip. More...
 
void SetVisible (bool _visible)
 Set the visibility of the manip. More...
 
void SetVisual (const rendering::VisualPtr &_visual)
 Set the visual this manip manages. More...
 
std::string Texture () const
 Get the texture of the manip. More...
 
double Transparency () const
 Get the transparency of the manip. More...
 
rendering::VisualPtr Visual () const
 Get the visual this manip manages. More...
 

Detailed Description

Manipulate a 3D visual associated to a 2D editor item.

Constructor & Destructor Documentation

§ BuildingModelManip()

Constructor.

§ ~BuildingModelManip()

virtual ~BuildingModelManip ( )
virtual

Destructor.

Member Function Documentation

§ Color()

common::Color Color ( ) const

Get the color of the manip.

Returns
Color.

§ ColorChanged

void ColorChanged ( const common::Color _color)
signal

Qt signal emitted when the manip's color has changed from the 3D view.

Parameters
[in]_colorNew color.

§ Level()

int Level ( ) const

Get the level for this manip.

Returns
The level for this manip.

§ Name()

std::string Name ( ) const

Get the name of the manip object.

Returns
Name of the manip object.

§ SetColor()

void SetColor ( QColor  _color)

Set the color of the manip.

Parameters
[in]_colorColor.

§ SetLevel()

void SetLevel ( const int  _level)

Set the level for this manip.

Parameters
[in]_levelThe level for this manip.

§ SetMaker()

void SetMaker ( BuildingMaker _maker)

Set the maker that the manip is managed by.

Parameters
[in]_makerMaker that manages the manip.

§ SetName()

void SetName ( const std::string &  _name)

Set the name of the manip object.

Parameters
[in]_nameName to set the manip to.

§ SetPose()

void SetPose ( double  _x,
double  _y,
double  _z,
double  _roll,
double  _pitch,
double  _yaw 
)

Set the pose of the manip.

Parameters
[in]_xX position in pixel coordinates.
[in]_yY position in pixel coordinates.
[in]_zZ position in pixel coordinates.
[in]_rollRoll rotation in degrees.
[in]_pitchPitch rotation in degrees.
[in]_yawYaw rotation in degrees.

§ SetPosition()

void SetPosition ( double  _x,
double  _y,
double  _z 
)

Set the position of the manip.

Parameters
[in]_xX position in pixel coordinates.
[in]_yY position in pixel coordinates.
[in]_zZ position in pixel coordinates.

§ SetRotation()

void SetRotation ( double  _roll,
double  _pitch,
double  _yaw 
)

Set the rotation of the manip.

Parameters
[in]_rollRoll rotation in degrees.
[in]_pitchPitch rotation in degrees.
[in]_yawYaw rotation in degrees.

§ SetSize()

void SetSize ( double  _width,
double  _depth,
double  _height 
)

Set the size of the manip.

Parameters
[in]_widthWidth in pixels.
[in]_depthDepth in pixels.
[in]_heightHeight pixels.

§ SetTexture()

void SetTexture ( QString  _texture)

Set the texture of the manip.

Parameters
[in]_textureTexture.

§ SetTransparency()

void SetTransparency ( float  _transparency)

Set the transparency of the manip.

Parameters
[in]_transparencyTransparency.

§ SetVisible()

void SetVisible ( bool  _visible)

Set the visibility of the manip.

Parameters
[in]_visibleTrue for visible, false for invisible.

§ SetVisual()

void SetVisual ( const rendering::VisualPtr _visual)

Set the visual this manip manages.

Parameters
[in]_visualA pointer of the visual object.

§ Texture()

std::string Texture ( ) const

Get the texture of the manip.

Returns
Texture.

§ TextureChanged

void TextureChanged ( const std::string &  _texture)
signal

Qt signal emitted when the manip's texture has changed from the 3D view.

Parameters
[in]_textureNew texture.

§ Transparency()

double Transparency ( ) const

Get the transparency of the manip.

Returns
Transparency.

§ Visual()

rendering::VisualPtr Visual ( ) const

Get the visual this manip manages.

Returns
A pointer to the visual object.

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