WallInspectorDialog Class Reference

Dialog for configuring a wall item. More...

#include <WallInspectorDialog.hh>

Inherits BaseInspectorDialog.

Signals

void Applied ()
 Qt signal emitted to indicate that changes should be applied. More...
 

Public Member Functions

 WallInspectorDialog (QWidget *_parent=0)
 Constructor. More...
 
 ~WallInspectorDialog ()
 Destructor. More...
 
common::Color Color () const
 Get the color. More...
 
ignition::math::Vector2d EndPosition () const
 Get the end position of the wall segment. More...
 
double Height () const
 Get the height of the wall. More...
 
void InitColorComboBox ()
 Initiate color combo box. More...
 
void InitTextureComboBox ()
 Initiate texture combo box. More...
 
double Length () const
 Get the length the wall segment. More...
 
void SetColor (const common::Color &_color)
 Set the color. More...
 
void SetEndPosition (const ignition::math::Vector2d &_pos)
 Set the end position of the wall segment. More...
 
void SetHeight (const double _height)
 Set the height of the wall. More...
 
void SetLength (const double _length)
 Set the length of the wall segment. More...
 
void SetName (const std::string &_name)
 Set the name of the wall. More...
 
void SetStartPosition (const ignition::math::Vector2d &_pos)
 Set the start position of the wall segment. More...
 
void SetTexture (const std::string &_texture)
 Set the texture. More...
 
void SetThickness (const double _thickness)
 Set the thickness of the wall. More...
 
ignition::math::Vector2d StartPosition () const
 Get the start position of the wall segment. More...
 
std::string Texture () const
 Get the texture. More...
 
double Thickness () const
 Get the thickness of the wall. More...
 

Protected Slots

void OnApply ()
 Qt callback when the Apply button is pressed. More...
 
void OnCancel ()
 Qt callback when the Cancel button is pressed. More...
 
void OnOK ()
 Qt callback when the Ok button is pressed. More...
 

Protected Attributes

QComboBox * colorComboBox
 Combo box for selecting the color. More...
 
QComboBox * textureComboBox
 Combo box for selecting the texture. More...
 

Detailed Description

Dialog for configuring a wall item.

Constructor & Destructor Documentation

WallInspectorDialog ( QWidget *  _parent = 0)

Constructor.

Parameters
[in]_parentParent QWidget.

Destructor.

Member Function Documentation

void Applied ( )
signalinherited

Qt signal emitted to indicate that changes should be applied.

common::Color Color ( ) const
inherited

Get the color.

Returns
Color.
ignition::math::Vector2d EndPosition ( ) const

Get the end position of the wall segment.

Returns
Wall segment end position in pixel coordinates.
double Height ( ) const

Get the height of the wall.

Returns
Wall height in pixels.
void InitColorComboBox ( )
inherited

Initiate color combo box.

void InitTextureComboBox ( )
inherited

Initiate texture combo box.

double Length ( ) const

Get the length the wall segment.

Returns
Wall segment length in pixels.
void OnApply ( )
protectedslotinherited

Qt callback when the Apply button is pressed.

void OnCancel ( )
protectedslotinherited

Qt callback when the Cancel button is pressed.

void OnOK ( )
protectedslotinherited

Qt callback when the Ok button is pressed.

void SetColor ( const common::Color _color)
inherited

Set the color.

Parameters
[in]_colorColor.
void SetEndPosition ( const ignition::math::Vector2d &  _pos)

Set the end position of the wall segment.

Parameters
[in]_posend position of the wall segment in pixel coordinates.
void SetHeight ( const double  _height)

Set the height of the wall.

Parameters
[in]_heightHeight of wall in pixels.
void SetLength ( const double  _length)

Set the length of the wall segment.

Parameters
[in]_lengthLength of the wall segment in pixels.
void SetName ( const std::string &  _name)

Set the name of the wall.

Parameters
[in]_nameName to set the wall to.
void SetStartPosition ( const ignition::math::Vector2d &  _pos)

Set the start position of the wall segment.

Parameters
[in]_posStart position of the wall segment in pixel coordinates.
void SetTexture ( const std::string &  _texture)
inherited

Set the texture.

Parameters
[in]_textureTexture.
void SetThickness ( const double  _thickness)

Set the thickness of the wall.

Parameters
[in]_thicknessThickness of wall in pixels.
ignition::math::Vector2d StartPosition ( ) const

Get the start position of the wall segment.

Returns
Wall segment start position in pixel coordinates.
std::string Texture ( ) const
inherited

Get the texture.

Returns
Texture.
double Thickness ( ) const

Get the thickness of the wall.

Returns
Wall thickness in pixels.

Member Data Documentation

QComboBox* colorComboBox
protectedinherited

Combo box for selecting the color.

QComboBox* textureComboBox
protectedinherited

Combo box for selecting the texture.


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