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"
25 
26 namespace gazebo
27 {
28  namespace gui
29  {
32 
35  class GAZEBO_VISIBLE WallInspectorDialog : public QDialog
36  {
37  Q_OBJECT
38 
41  public: WallInspectorDialog(QWidget *_parent = 0);
42 
44  public: ~WallInspectorDialog();
45 
48  public: double GetLength() const;
49 
52  public: QPointF GetStartPosition() const;
53 
56  public: QPointF GetEndPosition() const;
57 
60  public: double GetHeight() const;
61 
64  public: double GetThickness() const;
65 
68  public: QColor GetColor() const;
69 
72  public: QString GetTexture() const;
73 
76  public: void SetName(const std::string &_name);
77 
80  public: void SetLength(double _length);
81 
85  public: void SetStartPosition(const QPointF &_pos);
86 
89  public: void SetEndPosition(const QPointF &_pos);
90 
93  public: void SetHeight(double _height);
94 
97  public: void SetThickness(double _thickness);
98 
101  public: void SetColor(const QColor _color);
102 
105  public: void SetTexture(const QString _texture);
106 
108  Q_SIGNALS: void Applied();
109 
111  private slots: void OnCancel();
112 
114  private slots: void OnApply();
115 
117  private slots: void OnOK();
118 
121  private: QDoubleSpinBox *startXSpinBox;
122 
125  private: QDoubleSpinBox *startYSpinBox;
126 
129  private: QDoubleSpinBox *endXSpinBox;
130 
133  private: QDoubleSpinBox *endYSpinBox;
134 
136  private: QDoubleSpinBox *heightSpinBox;
137 
139  private: QDoubleSpinBox *thicknessSpinBox;
140 
142  private: QDoubleSpinBox *lengthSpinBox;
143 
145  private: QComboBox *colorComboBox;
146 
148  private: std::vector<QColor> colorList;
149 
151  private: QComboBox *textureComboBox;
152 
154  private: std::vector<QString> textureList;
155 
157  private: QLabel* wallNameLabel;
158  };
160  }
161 }
162 
163 #endif
Dialog for configuring a wall item.
Definition: WallInspectorDialog.hh:35
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48