Gazebo Rendering
API Reference
8.2.1
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
ogre2
include
gz
rendering
ogre2
Ogre2Visual.hh
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2018 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_OGRE2_OGRE2VISUAL_HH_
18
#define GZ_RENDERING_OGRE2_OGRE2VISUAL_HH_
19
20
#include <memory>
21
#include <vector>
22
23
#include "
gz/rendering/base/BaseVisual.hh
"
24
#include "
gz/rendering/ogre2/Ogre2Node.hh
"
25
#include "
gz/rendering/ogre2/Ogre2RenderTypes.hh
"
26
27
namespace
gz
28
{
29
namespace
rendering
30
{
31
inline
namespace
GZ_RENDERING_VERSION_NAMESPACE {
32
//
33
// forward declaration
34
class
Ogre2VisualPrivate;
35
37
class
GZ_RENDERING_OGRE2_VISIBLE
Ogre2Visual
:
38
public
BaseVisual
<Ogre2Node>
39
{
41
protected
:
Ogre2Visual
();
42
44
public
:
virtual
~Ogre2Visual
();
45
46
// Documentation inherited
47
public
:
virtual
void
SetWireframe
(
bool
_show)
override
;
48
49
// Documentation inherited
50
public
:
virtual
bool
Wireframe
()
const override
;
51
52
// Documentation inherited.
53
public
:
virtual
void
SetVisible
(
bool
_visible)
override
;
54
55
// Documentation inherited.
56
public
:
virtual
void
SetStatic
(
bool
_static)
override
;
57
58
// Documentation inherited.
59
public
:
virtual
bool
Static
()
const override
;
60
61
// Documentation inherited.
62
public
:
virtual
void
SetVisibilityFlags
(uint32_t _flags)
override
;
63
64
// Documentation inherited.
65
public
:
virtual
gz::math::AxisAlignedBox
BoundingBox
()
66
const override
;
67
68
// Documentation inherited.
69
public
:
virtual
gz::math::AxisAlignedBox
LocalBoundingBox
()
70
const override
;
71
78
private
:
virtual
void
BoundsHelper(
79
gz::math::AxisAlignedBox
&_box,
bool
_local,
80
const
gz::math::Pose3d
&_pose)
const
;
81
87
private
:
virtual
void
BoundsHelper(
88
gz::math::AxisAlignedBox
&_box,
bool
_local)
const
;
89
90
// Documentation inherited.
91
protected
:
virtual
GeometryStorePtr
Geometries
()
const override
;
92
93
// Documentation inherited.
94
protected
:
virtual
bool
AttachGeometry
(
GeometryPtr
_geometry)
override
;
95
96
// Documentation inherited.
97
protected
:
virtual
bool
DetachGeometry
(
GeometryPtr
_geometry)
override
;
98
100
protected
:
virtual
void
Init
()
override
;
101
104
private
:
Ogre2VisualPtr
SharedThis();
105
107
protected
:
Ogre2GeometryStorePtr
geometries
;
108
110
private
:
std::unique_ptr<Ogre2VisualPrivate>
dataPtr;
111
113
private
:
friend
class
Ogre2Scene
;
114
};
115
}
116
}
117
}
118
#endif