WallInspectorDialog.hh
Go to the documentation of this file.
1/*
2 * Copyright (C) 2012 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
29namespace 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: explicit WallInspectorDialog(QWidget *_parent = 0);
49
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
gui
Definition KeyEventHandler.hh:29
Base Dialog for a specific inspector dialog.
Definition BaseInspectorDialog.hh:40
Dialog for configuring a wall item.
Definition WallInspectorDialog.hh:43
double Thickness() const
Get the thickness of the wall.
void SetStartPosition(const ignition::math::Vector2d &_pos)
Set the start position of the wall segment.
void SetName(const std::string &_name)
Set the name of the wall.
double Height() const
Get the height of the wall.
void SetThickness(const double _thickness)
Set the thickness of the wall.
ignition::math::Vector2d StartPosition() const
Get the start position of the wall segment.
void SetHeight(const double _height)
Set the height of the wall.
void SetEndPosition(const ignition::math::Vector2d &_pos)
Set the end position of the wall segment.
void SetLength(const double _length)
Set the length of the wall segment.
WallInspectorDialog(QWidget *_parent=0)
Constructor.
double Length() const
Get the length the wall segment.
ignition::math::Vector2d EndPosition() const
Get the end position of the wall segment.
Forward declarations for the common classes.
Definition Animation.hh:27