##

StairsInspectorDialog.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_STAIRSINSPECTORDIALOG_HH_
#define GAZEBO_GUI_BUILDING_STAIRSINSPECTORDIALOG_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 StairsInspectorDialogPrivate;
class GZ_GUI_VISIBLE StairsInspectorDialog
: public BaseInspectorDialog
{
Q_OBJECT
public: explicit StairsInspectorDialog(QWidget *_parent = 0);
public: ~StairsInspectorDialog();
public: ignition::math::Vector2d StartPosition() const;
public: double Width() const;
public: double Depth() const;
public: double Height() const;
public: int Steps() const;
public: void SetName(const std::string &_name);
public: void SetStartPosition(const ignition::math::Vector2d &_pos);
public: void SetWidth(const double _width);
public: void SetDepth(const double _depth);
public: void SetHeight(const double _height);
public: void SetSteps(const int _steps);
private: std::unique_ptr<StairsInspectorDialogPrivate> dataPtr;
};
}
}
#endif
gazebo::gui::StairsInspectorDialog::Steps
int Steps() const
Get the number of steps in the staircase.
gazebo::gui::StairsInspectorDialog::SetDepth
void SetDepth(const double _depth)
Set the depth of the staircase.
gazebo
Forward declarations for the common classes.
Definition: Animation.hh:26
qt.h
gazebo::gui::StairsInspectorDialog::Width
double Width() const
Get the width the staircase.
gazebo::gui::StairsInspectorDialog::SetName
void SetName(const std::string &_name)
Set the name of the staircase.
system.hh
gazebo::gui::StairsInspectorDialog::~StairsInspectorDialog
~StairsInspectorDialog()
Destructor.
gazebo::gui::StairsInspectorDialog::SetSteps
void SetSteps(const int _steps)
Set the number of steps in the staircase.
gazebo::gui::BaseInspectorDialog
Base Dialog for a specific inspector dialog.
Definition: BaseInspectorDialog.hh:39
gazebo::gui::StairsInspectorDialog::Height
double Height() const
Get the height the staircase.
gazebo::gui::StairsInspectorDialog::StartPosition
ignition::math::Vector2d StartPosition() const
Get start position (bottom-end) of the staircase.
gazebo::gui::StairsInspectorDialog::SetStartPosition
void SetStartPosition(const ignition::math::Vector2d &_pos)
Set the start position of the staircase.
gazebo::gui::StairsInspectorDialog
Dialog for configuring a staircase item.
Definition: StairsInspectorDialog.hh:41
gazebo::gui::StairsInspectorDialog::Depth
double Depth() const
Get the depth the staircase.
gazebo::gui::StairsInspectorDialog::SetHeight
void SetHeight(const double _height)
Set the height of the staircase.
gazebo::gui::StairsInspectorDialog::SetWidth
void SetWidth(const double _width)
Set the width of the staircase.
gui
gui
Definition: KeyEventHandler.hh:29
BaseInspectorDialog.hh
gazebo::gui::StairsInspectorDialog::StairsInspectorDialog
StairsInspectorDialog(QWidget *_parent=0)
Constructor.