Gazebo Rendering
API Reference
9.0.0
insert_drive_file
Tutorials
library_books
Classes
toc
Namespaces
insert_drive_file
Files
launch
Gazebo Website
Index
List
Hierarchy
Members: All
Members: Functions
Members: Variables
Members: Typedefs
Members: Enumerations
Members: Enumerator
List
Members
Functions
Typedefs
Variables
Enumerations
Enumerator
src
gz-rendering
include
gz
rendering
OrthoViewController.hh
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2021 Open Source Robotics Foundation
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*
16
*/
17
#ifndef GZ_RENDERING_ORTHOVIEWCONTROLLER_HH_
18
#define GZ_RENDERING_ORTHOVIEWCONTROLLER_HH_
19
20
#include <memory>
21
#include <string>
22
#include <
gz/math/Vector2.hh
>
23
24
#include "
gz/rendering/ViewController.hh
"
25
26
namespace
gz
27
{
28
namespace
rendering
29
{
30
inline
namespace
GZ_RENDERING_VERSION_NAMESPACE {
31
//
32
// Forward declare private data pointer.
33
class
OrthoViewControllerPrivate;
34
37
class
GZ_RENDERING_VISIBLE
OrthoViewController
38
:
public
virtual
ViewController
39
{
41
public
:
OrthoViewController
();
42
45
public
:
explicit
OrthoViewController
(
const
CameraPtr
&_camera);
46
48
public
:
virtual
~OrthoViewController
();
49
52
public
:
virtual
void
SetCamera
(
const
CameraPtr
&_camera);
53
56
public
:
virtual
CameraPtr
Camera
()
const
;
57
60
public
:
virtual
void
SetTarget
(
const
math::Vector3d
&_target);
61
64
public
:
virtual
const
math::Vector3d
&
Target
()
const
;
65
68
public
:
virtual
void
Zoom
(
const
double
_value);
69
72
public
:
virtual
void
Pan
(
const
math::Vector2d
&_value);
73
76
public
:
virtual
void
Orbit
(
const
math::Vector2d
&_value);
77
81
private
:
virtual
void
Resize(
const
unsigned
int
_width,
82
const
unsigned
int
_height);
83
84
GZ_UTILS_WARN_IGNORE__DLL_INTERFACE_MISSING
86
public
:
std::unique_ptr<OrthoViewControllerPrivate>
dataPtr
;
87
GZ_UTILS_WARN_RESUME__DLL_INTERFACE_MISSING
88
};
89
}
90
}
91
}
92
#endif