StairsInspectorDialog.hh
Go to the documentation of this file.
1/*
2 * Copyright (C) 2012 Open Source Robotics Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16*/
17#ifndef GAZEBO_GUI_BUILDING_STAIRSINSPECTORDIALOG_HH_
18#define GAZEBO_GUI_BUILDING_STAIRSINSPECTORDIALOG_HH_
19
20#include <memory>
21#include <string>
22#include <ignition/math/Vector2.hh>
23
24#include "gazebo/gui/qt.h"
26
27#include "gazebo/util/system.hh"
28
29namespace gazebo
30{
31 namespace gui
32 {
33 // Forward declare private data.
34 class StairsInspectorDialogPrivate;
35
38
41 class GZ_GUI_VISIBLE StairsInspectorDialog
42 : public BaseInspectorDialog
43 {
44 Q_OBJECT
45
48 public: explicit StairsInspectorDialog(QWidget *_parent = 0);
49
52
55 public: ignition::math::Vector2d StartPosition() const;
56
59 public: double Width() const;
60
63 public: double Depth() const;
64
67 public: double Height() const;
68
71 public: int Steps() const;
72
75 public: void SetName(const std::string &_name);
76
79 public: void SetStartPosition(const ignition::math::Vector2d &_pos);
80
83 public: void SetWidth(const double _width);
84
87 public: void SetDepth(const double _depth);
88
91 public: void SetHeight(const double _height);
92
95 public: void SetSteps(const int _steps);
96
99 private: std::unique_ptr<StairsInspectorDialogPrivate> dataPtr;
100 };
102 }
103}
104#endif
gui
Definition KeyEventHandler.hh:29
Base Dialog for a specific inspector dialog.
Definition BaseInspectorDialog.hh:40
Dialog for configuring a staircase item.
Definition StairsInspectorDialog.hh:43
void SetStartPosition(const ignition::math::Vector2d &_pos)
Set the start position of the staircase.
void SetName(const std::string &_name)
Set the name of the staircase.
double Height() const
Get the height the staircase.
ignition::math::Vector2d StartPosition() const
Get start position (bottom-end) of the staircase.
void SetHeight(const double _height)
Set the height of the staircase.
int Steps() const
Get the number of steps in the staircase.
StairsInspectorDialog(QWidget *_parent=0)
Constructor.
void SetSteps(const int _steps)
Set the number of steps in the staircase.
double Depth() const
Get the depth the staircase.
void SetDepth(const double _depth)
Set the depth of the staircase.
void SetWidth(const double _width)
Set the width of the staircase.
double Width() const
Get the width the staircase.
Forward declarations for the common classes.
Definition Animation.hh:27