WallInspectorDialog.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_WALLINSPECTORDIALOG_HH_
18 #define _GAZEBO_GUI_BUILDING_WALLINSPECTORDIALOG_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 WallInspectorDialogPrivate;
35 
38 
41  class GZ_GUI_VISIBLE WallInspectorDialog
42  : public BaseInspectorDialog
43  {
44  Q_OBJECT
45 
48  public: WallInspectorDialog(QWidget *_parent = 0);
49 
51  public: ~WallInspectorDialog();
52 
55  public: double Length() const;
56 
59  public: ignition::math::Vector2d StartPosition() const;
60 
63  public: ignition::math::Vector2d EndPosition() const;
64 
67  public: double Height() const;
68 
71  public: double Thickness() const;
72 
75  public: void SetName(const std::string &_name);
76 
79  public: void SetLength(const double _length);
80 
84  public: void SetStartPosition(const ignition::math::Vector2d &_pos);
85 
88  public: void SetEndPosition(const ignition::math::Vector2d &_pos);
89 
92  public: void SetHeight(const double _height);
93 
96  public: void SetThickness(const double _thickness);
97 
100  private: std::unique_ptr<WallInspectorDialogPrivate> dataPtr;
101  };
103  }
104 }
105 #endif
Forward declarations for the common classes.
Definition: Animation.hh:33
Base Dialog for a specific inspector dialog.
Definition: BaseInspectorDialog.hh:43
Dialog for configuring a wall item.
Definition: WallInspectorDialog.hh:41