Dialog for configuring a staircase item.
More...
#include <StairsInspectorDialog.hh>
Inherits BaseInspectorDialog.
|
void | Applied () |
| Qt signal emitted to indicate that changes should be applied.
|
|
|
| StairsInspectorDialog (QWidget *_parent=0) |
| Constructor.
|
|
| ~StairsInspectorDialog () |
| Destructor.
|
|
ignition::math::Color | Color () const |
| Get the color.
|
|
double | Depth () const |
| Get the depth the staircase.
|
|
double | Height () const |
| Get the height the staircase.
|
|
void | InitColorComboBox () |
| Initiate color combo box.
|
|
void | InitTextureComboBox () |
| Initiate texture combo box.
|
|
void | SetColor (const ignition::math::Color &_color) |
| Set the color.
|
|
void | SetDepth (const double _depth) |
| Set the depth of the staircase.
|
|
void | SetHeight (const double _height) |
| Set the height of the staircase.
|
|
void | SetName (const std::string &_name) |
| Set the name of the staircase.
|
|
void | SetStartPosition (const ignition::math::Vector2d &_pos) |
| Set the start position of the staircase.
|
|
void | SetSteps (const int _steps) |
| Set the number of steps in the staircase.
|
|
void | SetTexture (const std::string &_texture) |
| Set the texture.
|
|
void | SetWidth (const double _width) |
| Set the width of the staircase.
|
|
ignition::math::Vector2d | StartPosition () const |
| Get start position (bottom-end) of the staircase.
|
|
int | Steps () const |
| Get the number of steps in the staircase.
|
|
std::string | Texture () const |
| Get the texture.
|
|
double | Width () const |
| Get the width the staircase.
|
|
|
void | OnApply () |
| Qt callback when the Apply button is pressed.
|
|
void | OnCancel () |
| Qt callback when the Cancel button is pressed.
|
|
void | OnOK () |
| Qt callback when the Ok button is pressed.
|
|
Dialog for configuring a staircase item.
◆ StairsInspectorDialog()
Constructor.
- Parameters
-
[in] | _parent | Parent QWidget. |
◆ ~StairsInspectorDialog()
◆ Applied
Qt signal emitted to indicate that changes should be applied.
◆ Color()
ignition::math::Color Color |
( |
| ) |
const |
|
inherited |
Get the color.
- Returns
- Color.
◆ Depth()
Get the depth the staircase.
- Returns
- Staircase depth in pixels.
◆ Height()
Get the height the staircase.
- Returns
- Staircase height in pixels.
◆ InitColorComboBox()
void InitColorComboBox |
( |
| ) |
|
|
inherited |
Initiate color combo box.
◆ InitTextureComboBox()
void InitTextureComboBox |
( |
| ) |
|
|
inherited |
Initiate texture combo box.
◆ OnApply
Qt callback when the Apply button is pressed.
◆ OnCancel
Qt callback when the Cancel button is pressed.
◆ OnOK
Qt callback when the Ok button is pressed.
◆ SetColor()
void SetColor |
( |
const ignition::math::Color & | _color | ) |
|
|
inherited |
Set the color.
- Parameters
-
◆ SetDepth()
void SetDepth |
( |
const double | _depth | ) |
|
Set the depth of the staircase.
- Parameters
-
[in] | _depth | Depth in pixels. |
◆ SetHeight()
void SetHeight |
( |
const double | _height | ) |
|
Set the height of the staircase.
- Parameters
-
[in] | _height | Height in pixels. |
◆ SetName()
void SetName |
( |
const std::string & | _name | ) |
|
Set the name of the staircase.
- Parameters
-
◆ SetStartPosition()
void SetStartPosition |
( |
const ignition::math::Vector2d & | _pos | ) |
|
Set the start position of the staircase.
- Parameters
-
[in] | _pos | Start position in pixel coordinates. |
◆ SetSteps()
void SetSteps |
( |
const int | _steps | ) |
|
Set the number of steps in the staircase.
- Parameters
-
[in] | _steps | Number of steps. |
◆ SetTexture()
void SetTexture |
( |
const std::string & | _texture | ) |
|
|
inherited |
Set the texture.
- Parameters
-
◆ SetWidth()
void SetWidth |
( |
const double | _width | ) |
|
Set the width of the staircase.
- Parameters
-
[in] | _width | Width in pixels. |
◆ StartPosition()
ignition::math::Vector2d StartPosition |
( |
| ) |
const |
Get start position (bottom-end) of the staircase.
- Returns
- The start position of the staircase in pixel coordinates.
◆ Steps()
Get the number of steps in the staircase.
- Returns
- Number of steps in the staircase.
◆ Texture()
std::string Texture |
( |
| ) |
const |
|
inherited |
Get the texture.
- Returns
- Texture.
◆ Width()
Get the width the staircase.
- Returns
- Staircase width in pixels.
◆ colorComboBox
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: