WindowDoorInspectorDialog.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_WINDOWDOORINSPECTORDIALOG_HH_
18 #define _GAZEBO_GUI_BUILDING_WINDOWDOORINSPECTORDIALOG_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 WindowDoorInspectorDialogPrivate;
35 
38 
41  class GZ_GUI_VISIBLE WindowDoorInspectorDialog
42  : public BaseInspectorDialog
43  {
44  Q_OBJECT
45 
47  public: enum mode
48  {
51 
53  DOOR};
54 
58  public: WindowDoorInspectorDialog(int _mode = WINDOW,
59  QWidget *_parent = 0);
60 
62  public: ~WindowDoorInspectorDialog();
63 
66  public: double Width() const;
67 
70  public: double Height() const;
71 
74  public: double Depth() const;
75 
78  public: ignition::math::Vector2d Position() const;
79 
82  public: double Elevation() const;
83 
86  public: std::string Type() const;
87 
90  public: void SetName(const std::string &_name);
91 
94  public: void SetWidth(const double _width);
95 
98  public: void SetHeight(const double _height);
99 
102  public: void SetDepth(const double _depth);
103 
106  public: void SetPosition(const ignition::math::Vector2d &_pos);
107 
110  public: void SetElevation(const double _elevation);
111 
114  public: void SetType(const std::string &_type);
115 
118  private: std::unique_ptr<WindowDoorInspectorDialogPrivate> dataPtr;
119  };
121  }
122 }
123 #endif
Dialog for configuring a window or door item.
Definition: WindowDoorInspectorDialog.hh:41
Forward declarations for the common classes.
Definition: Animation.hh:33
mode
Dialog modes.
Definition: WindowDoorInspectorDialog.hh:47
Base Dialog for a specific inspector dialog.
Definition: BaseInspectorDialog.hh:43
Window mode.
Definition: WindowDoorInspectorDialog.hh:50