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