##

WallInspectorDialog.hh
Go to the documentation of this file.
/*
* Copyright (C) 2012 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
#ifndef GAZEBO_GUI_BUILDING_WALLINSPECTORDIALOG_HH_
#define GAZEBO_GUI_BUILDING_WALLINSPECTORDIALOG_HH_
#include <memory>
#include <string>
#include <ignition/math/Vector2.hh>
#include "gazebo/gui/qt.h"
#include "gazebo/gui/building/BaseInspectorDialog.hh"
#include "gazebo/util/system.hh"
namespace gazebo
{
namespace gui
{
// Forward declare private data.
class WallInspectorDialogPrivate;
class GZ_GUI_VISIBLE WallInspectorDialog
: public BaseInspectorDialog
{
Q_OBJECT
public: explicit WallInspectorDialog(QWidget *_parent = 0);
public: ~WallInspectorDialog();
public: double Length() const;
public: ignition::math::Vector2d StartPosition() const;
public: ignition::math::Vector2d EndPosition() const;
public: double Height() const;
public: double Thickness() const;
public: void SetName(const std::string &_name);
public: void SetLength(const double _length);
public: void SetStartPosition(const ignition::math::Vector2d &_pos);
public: void SetEndPosition(const ignition::math::Vector2d &_pos);
public: void SetHeight(const double _height);
public: void SetThickness(const double _thickness);
private: std::unique_ptr<WallInspectorDialogPrivate> dataPtr;
};
}
}
#endif
gazebo::gui::WallInspectorDialog::SetLength
void SetLength(const double _length)
Set the length of the wall segment.
gazebo
Forward declarations for the common classes.
Definition: Animation.hh:26
qt.h
gazebo::gui::WallInspectorDialog
Dialog for configuring a wall item.
Definition: WallInspectorDialog.hh:41
system.hh
gazebo::gui::WallInspectorDialog::SetThickness
void SetThickness(const double _thickness)
Set the thickness of the wall.
gazebo::gui::WallInspectorDialog::StartPosition
ignition::math::Vector2d StartPosition() const
Get the start position of the wall segment.
gazebo::gui::WallInspectorDialog::SetEndPosition
void SetEndPosition(const ignition::math::Vector2d &_pos)
Set the end position of the wall segment.
gazebo::gui::WallInspectorDialog::SetHeight
void SetHeight(const double _height)
Set the height of the wall.
gazebo::gui::WallInspectorDialog::~WallInspectorDialog
~WallInspectorDialog()
Destructor.
gazebo::gui::BaseInspectorDialog
Base Dialog for a specific inspector dialog.
Definition: BaseInspectorDialog.hh:39
gazebo::gui::WallInspectorDialog::SetName
void SetName(const std::string &_name)
Set the name of the wall.
gazebo::gui::WallInspectorDialog::Length
double Length() const
Get the length the wall segment.
gui
gui
Definition: KeyEventHandler.hh:29
gazebo::gui::WallInspectorDialog::EndPosition
ignition::math::Vector2d EndPosition() const
Get the end position of the wall segment.
gazebo::gui::WallInspectorDialog::WallInspectorDialog
WallInspectorDialog(QWidget *_parent=0)
Constructor.
gazebo::gui::WallInspectorDialog::SetStartPosition
void SetStartPosition(const ignition::math::Vector2d &_pos)
Set the start position of the wall segment.
BaseInspectorDialog.hh
gazebo::gui::WallInspectorDialog::Thickness
double Thickness() const
Get the thickness of the wall.
gazebo::gui::WallInspectorDialog::Height
double Height() const
Get the height of the wall.