WallInspectorDialog.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012-2015 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 
18 #ifndef _WALL_INSPECTOR_DIALOG_HH_
19 #define _WALL_INSPECTOR_DIALOG_HH_
20 
21 #include <string>
22 #include <vector>
23 #include "gazebo/gui/qt.h"
24 #include "gazebo/util/system.hh"
26 
27 namespace gazebo
28 {
29  namespace gui
30  {
33 
37  : public BaseInspectorDialog
38  {
39  Q_OBJECT
40 
43  public: WallInspectorDialog(QWidget *_parent = 0);
44 
46  public: ~WallInspectorDialog();
47 
50  public: double GetLength() const;
51 
54  public: QPointF GetStartPosition() const;
55 
58  public: QPointF GetEndPosition() const;
59 
62  public: double GetHeight() const;
63 
66  public: double GetThickness() const;
67 
70  public: void SetName(const std::string &_name);
71 
74  public: void SetLength(double _length);
75 
79  public: void SetStartPosition(const QPointF &_pos);
80 
83  public: void SetEndPosition(const QPointF &_pos);
84 
87  public: void SetHeight(double _height);
88 
91  public: void SetThickness(double _thickness);
92 
94  Q_SIGNALS: void Applied();
95 
97  private slots: void OnCancel();
98 
100  private slots: void OnApply();
101 
103  private slots: void OnOK();
104 
107  private: QDoubleSpinBox *startXSpinBox;
108 
111  private: QDoubleSpinBox *startYSpinBox;
112 
115  private: QDoubleSpinBox *endXSpinBox;
116 
119  private: QDoubleSpinBox *endYSpinBox;
120 
122  private: QDoubleSpinBox *heightSpinBox;
123 
125  private: QDoubleSpinBox *thicknessSpinBox;
126 
128  private: QDoubleSpinBox *lengthSpinBox;
129 
131  private: QLabel* wallNameLabel;
132  };
134  }
135 }
136 
137 #endif
Base Dialog for a specific inspector dialog.
Definition: BaseInspectorDialog.hh:35
#define GZ_GUI_BUILDING_VISIBLE
Definition: system.hh:393
Dialog for configuring a wall item.
Definition: WallInspectorDialog.hh:36