##

OrthoViewController.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_RENDERING_ORTHOVIEWCONTROLLER_HH_
#define GAZEBO_RENDERING_ORTHOVIEWCONTROLLER_HH_
#include <string>
#include <ignition/math/Vector2.hh>
#include "gazebo/rendering/ViewController.hh"
#include "gazebo/util/system.hh"
namespace gazebo
{
namespace rendering
{
// Forward declare private data pointer.
class OrthoViewControllerPrivate;
class GAZEBO_VISIBLE OrthoViewController : public OrbitViewController
{
public: explicit OrthoViewController(UserCameraPtr _camera);
public: virtual ~OrthoViewController();
public: virtual void Init();
// Documentation inherited
public: virtual void Init(const ignition::math::Vector3d &_focalPoint,
const double _yaw = 0, const double _pitch = 0);
public: static std::string GetTypeString();
public: virtual void HandleMouseEvent(const common::MouseEvent &_event);
private: void Zoom(const float _amount,
const ignition::math::Vector2i &_point =
ignition::math::Vector2i(0, 0));
// Documentation inherited
public: virtual void Resize(const unsigned int _width,
const unsigned int _height);
private: Ogre::Matrix4 BuildScaledOrthoMatrix(
const float _left, const float _right,
const float _bottom, const float _top,
const float _near, const float _far) const;
private: OrthoViewControllerPrivate *dataPtr;
};
}
}
#endif
gazebo::rendering::OrthoViewController
Orthographic view controller.
Definition: OrthoViewController.hh:38
gazebo::rendering::UserCameraPtr
boost::shared_ptr< UserCamera > UserCameraPtr
Definition: RenderTypes.hh:94
gazebo
Forward declarations for the common classes.
Definition: Animation.hh:26
system.hh
gazebo::rendering::OrbitViewController
Orbit view controller.
Definition: OrbitViewController.hh:37
ViewController.hh
rendering
rendering
Definition: RenderEngine.hh:31
gazebo::msgs::Init
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
gazebo::common::MouseEvent
Generic description of a mouse event.
Definition: MouseEvent.hh:35
GAZEBO_VISIBLE
#define GAZEBO_VISIBLE
Definition: system.hh:59