##

ViewAngleWidget.hh
Go to the documentation of this file.
/*
* Copyright (C) 2015 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_VIEWANGLEWIDGET_HH_
#define GAZEBO_GUI_VIEWANGLEWIDGET_HH_
#include <string>
#include <ignition/math/Vector3.hh>
#include "gazebo/gui/qt.h"
#include "gazebo/util/system.hh"
namespace gazebo
{
namespace gui
{
class ViewAngleWidgetPrivate;
class GZ_GUI_VISIBLE ViewAngleWidget : public QWidget
{
Q_OBJECT
public: enum Mode
{
TOP,
BOTTOM,
FRONT,
BACK,
LEFT,
RIGHT,
RESET
};
public: explicit ViewAngleWidget(QWidget *_parent = 0);
public: virtual ~ViewAngleWidget();
public: void Add(const Mode _mode, QAction *_action);
private slots: void OnTopView();
private slots: void OnBottomView();
private slots: void OnFrontView();
private slots: void OnBackView();
private slots: void OnLeftView();
private slots: void OnRightView();
private slots: void OnResetView();
private slots: void OnProjection(int _index);
private slots: void OnOrtho();
private slots: void OnPerspective();
private: void LookDirection(const ignition::math::Vector3d &_dir);
private: ViewAngleWidgetPrivate *dataPtr;
};
}
}
#endif
gazebo::gui::ViewAngleWidget::TOP
Top.
Definition: ViewAngleWidget.hh:42
gazebo
Forward declarations for the common classes.
Definition: Animation.hh:26
qt.h
gazebo::gui::ViewAngleWidget
A gui widget for changing the camera view angle.
Definition: ViewAngleWidget.hh:34
gazebo::gui::ViewAngleWidget::RESET
Reset view.
Definition: ViewAngleWidget.hh:54
gazebo::gui::ViewAngleWidget::Add
void Add(const Mode _mode, QAction *_action)
Add an action to the widget.
system.hh
gazebo::gui::ViewAngleWidget::ViewAngleWidget
ViewAngleWidget(QWidget *_parent=0)
Constructor.
gazebo::gui::ViewAngleWidget::LEFT
Left.
Definition: ViewAngleWidget.hh:50
gazebo::gui::ViewAngleWidget::FRONT
Front.
Definition: ViewAngleWidget.hh:46
gazebo::gui::ViewAngleWidget::RIGHT
Right.
Definition: ViewAngleWidget.hh:52
gazebo::gui::ViewAngleWidget::~ViewAngleWidget
virtual ~ViewAngleWidget()
Destructor.
gazebo::gui::ViewAngleWidget::Mode
Mode
View angle modes.
Definition: ViewAngleWidget.hh:39
gazebo::gui::ViewAngleWidget::BACK
Back.
Definition: ViewAngleWidget.hh:48
gui
gui
Definition: KeyEventHandler.hh:29
gazebo::gui::ViewAngleWidget::BOTTOM
Bottom.
Definition: ViewAngleWidget.hh:44