StairsInspectorDialog.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012-2016 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 
29 namespace gazebo
30 {
31  namespace gui
32  {
33  // Forward declare private data.
34  class StairsInspectorDialogPrivate;
35 
38 
42  : public BaseInspectorDialog
43  {
44  Q_OBJECT
45 
48  public: StairsInspectorDialog(QWidget *_parent = 0);
49 
51  public: ~StairsInspectorDialog();
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
#define GZ_GUI_VISIBLE
Definition: system.hh:284
Base Dialog for a specific inspector dialog.
Definition: BaseInspectorDialog.hh:43
Dialog for configuring a staircase item.
Definition: StairsInspectorDialog.hh:41