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...
 
ignition::math::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 ignition::math::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()

WallInspectorDialog ( QWidget *  _parent = 0)
explicit

Constructor.

Parameters
[in]_parentParent QWidget.

◆ ~WallInspectorDialog()

Destructor.

Member Function Documentation

◆ Applied

void Applied ( )
signalinherited

Qt signal emitted to indicate that changes should be applied.

◆ Color()

ignition::math::Color Color ( ) const
inherited

Get the color.

Returns
Color.

◆ EndPosition()

ignition::math::Vector2d EndPosition ( ) const

Get the end position of the wall segment.

Returns
Wall segment end position in pixel coordinates.

◆ Height()

double Height ( ) const

Get the height of the wall.

Returns
Wall height in pixels.

◆ InitColorComboBox()

void InitColorComboBox ( )
inherited

Initiate color combo box.

◆ InitTextureComboBox()

void InitTextureComboBox ( )
inherited

Initiate texture combo box.

◆ Length()

double Length ( ) const

Get the length the wall segment.

Returns
Wall segment length in pixels.

◆ OnApply

void OnApply ( )
protectedslotinherited

Qt callback when the Apply button is pressed.

◆ OnCancel

void OnCancel ( )
protectedslotinherited

Qt callback when the Cancel button is pressed.

◆ OnOK

void OnOK ( )
protectedslotinherited

Qt callback when the Ok button is pressed.

◆ SetColor()

void SetColor ( const ignition::math::Color &  _color)
inherited

Set the color.

Parameters
[in]_colorColor.

◆ SetEndPosition()

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.

◆ SetHeight()

void SetHeight ( const double  _height)

Set the height of the wall.

Parameters
[in]_heightHeight of wall in pixels.

◆ SetLength()

void SetLength ( const double  _length)

Set the length of the wall segment.

Parameters
[in]_lengthLength of the wall segment in pixels.

◆ SetName()

void SetName ( const std::string &  _name)

Set the name of the wall.

Parameters
[in]_nameName to set the wall to.

◆ SetStartPosition()

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.

◆ SetTexture()

void SetTexture ( const std::string &  _texture)
inherited

Set the texture.

Parameters
[in]_textureTexture.

◆ SetThickness()

void SetThickness ( const double  _thickness)

Set the thickness of the wall.

Parameters
[in]_thicknessThickness of wall in pixels.

◆ StartPosition()

ignition::math::Vector2d StartPosition ( ) const

Get the start position of the wall segment.

Returns
Wall segment start position in pixel coordinates.

◆ Texture()

std::string Texture ( ) const
inherited

Get the texture.

Returns
Texture.

◆ Thickness()

double Thickness ( ) const

Get the thickness of the wall.

Returns
Wall thickness in pixels.

Member Data Documentation

◆ colorComboBox

QComboBox* colorComboBox
protectedinherited

Combo box for selecting the color.

◆ textureComboBox

QComboBox* textureComboBox
protectedinherited

Combo box for selecting the texture.


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