All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
WallInspectorDialog.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012-2014 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 "gazebo/gui/qt.h"
23 #include "gazebo/util/system.hh"
24 
25 namespace gazebo
26 {
27  namespace gui
28  {
31 
34  class GAZEBO_VISIBLE WallInspectorDialog : public QDialog
35  {
36  Q_OBJECT
37 
40  public: WallInspectorDialog(QWidget *_parent = 0);
41 
43  public: ~WallInspectorDialog();
44 
47  public: double GetLength() const;
48 
51  public: QPointF GetStartPosition() const;
52 
55  public: QPointF GetEndPosition() const;
56 
59  public: double GetHeight() const;
60 
63  public: double GetThickness() const;
64 
67  public: std::string GetMaterial() const;
68 
71  public: void SetName(const std::string &_name);
72 
75  public: void SetLength(double _length);
76 
80  public: void SetStartPosition(const QPointF &_pos);
81 
84  public: void SetEndPosition(const QPointF &_pos);
85 
88  public: void SetHeight(double _height);
89 
92  public: void SetThickness(double _thickness);
93 
96  public: void SetMaterial(const std::string &_material);
97 
99  Q_SIGNALS: void Applied();
100 
102  private slots: void OnCancel();
103 
105  private slots: void OnApply();
106 
108  private slots: void OnOK();
109 
112  private: QDoubleSpinBox *startXSpinBox;
113 
116  private: QDoubleSpinBox *startYSpinBox;
117 
120  private: QDoubleSpinBox *endXSpinBox;
121 
124  private: QDoubleSpinBox *endYSpinBox;
125 
127  private: QDoubleSpinBox *heightSpinBox;
128 
130  private: QDoubleSpinBox *thicknessSpinBox;
131 
133  private: QDoubleSpinBox *lengthSpinBox;
134 
136  private: QComboBox *materialComboBox;
137 
139  private: QLabel* wallNameLabel;
140  };
142  }
143 }
144 
145 #endif
Dialog for configuring a wall item.
Definition: WallInspectorDialog.hh:34
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48