##

WindowDoorInspectorDialog.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_WINDOWDOORINSPECTORDIALOG_HH_
#define _GAZEBO_GUI_BUILDING_WINDOWDOORINSPECTORDIALOG_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 WindowDoorInspectorDialogPrivate;
class GZ_GUI_VISIBLE WindowDoorInspectorDialog
: public BaseInspectorDialog
{
Q_OBJECT
public: enum mode
{
WINDOW,
DOOR};
public: WindowDoorInspectorDialog(int _mode = WINDOW,
QWidget *_parent = 0);
public: ~WindowDoorInspectorDialog();
public: double Width() const;
public: double Height() const;
public: double Depth() const;
public: ignition::math::Vector2d Position() const;
public: double Elevation() const;
public: std::string Type() const;
public: void SetName(const std::string &_name);
public: void SetWidth(const double _width);
public: void SetHeight(const double _height);
public: void SetDepth(const double _depth);
public: void SetPosition(const ignition::math::Vector2d &_pos);
public: void SetElevation(const double _elevation);
public: void SetType(const std::string &_type);
private: std::unique_ptr<WindowDoorInspectorDialogPrivate> dataPtr;
};
}
}
#endif
gazebo::gui::WindowDoorInspectorDialog::SetName
void SetName(const std::string &_name)
Set the item name.
gazebo::gui::WindowDoorInspectorDialog::~WindowDoorInspectorDialog
~WindowDoorInspectorDialog()
Destructor.
gazebo
Forward declarations for the common classes.
Definition: Animation.hh:26
qt.h
gazebo::gui::WindowDoorInspectorDialog::WindowDoorInspectorDialog
WindowDoorInspectorDialog(int _mode=WINDOW, QWidget *_parent=0)
Constructor.
gazebo::gui::WindowDoorInspectorDialog::Position
ignition::math::Vector2d Position() const
Get the item position.
gazebo::gui::WindowDoorInspectorDialog::Elevation
double Elevation() const
Get the item elevation.
system.hh
gazebo::gui::WindowDoorInspectorDialog::SetWidth
void SetWidth(const double _width)
Set the item width.
gazebo::gui::WindowDoorInspectorDialog::SetElevation
void SetElevation(const double _elevation)
Set the item elevation.
gazebo::gui::WindowDoorInspectorDialog::SetHeight
void SetHeight(const double _height)
Set the item height.
gazebo::gui::WindowDoorInspectorDialog::SetDepth
void SetDepth(const double _depth)
Set the item depth.
gazebo::gui::BaseInspectorDialog
Base Dialog for a specific inspector dialog.
Definition: BaseInspectorDialog.hh:39
gazebo::gui::WindowDoorInspectorDialog::SetType
void SetType(const std::string &_type)
Set the item type.
gazebo::gui::WindowDoorInspectorDialog::Type
std::string Type() const
Get the item type.
gazebo::gui::WindowDoorInspectorDialog::SetPosition
void SetPosition(const ignition::math::Vector2d &_pos)
Set the item scene position.
gazebo::gui::WindowDoorInspectorDialog::DOOR
Door mode.
Definition: WindowDoorInspectorDialog.hh:53
gazebo::gui::WindowDoorInspectorDialog::WINDOW
Window mode.
Definition: WindowDoorInspectorDialog.hh:50
gazebo::gui::WindowDoorInspectorDialog::mode
mode
Dialog modes.
Definition: WindowDoorInspectorDialog.hh:47
gui
gui
Definition: KeyEventHandler.hh:29
gazebo::gui::WindowDoorInspectorDialog::Depth
double Depth() const
Get the item depth.
gazebo::gui::WindowDoorInspectorDialog
Dialog for configuring a window or door item.
Definition: WindowDoorInspectorDialog.hh:41
gazebo::gui::WindowDoorInspectorDialog::Height
double Height() const
Get the item height.
gazebo::gui::WindowDoorInspectorDialog::Width
double Width() const
Get the item width.
BaseInspectorDialog.hh