Gazebo Rendering
API Reference
9.1.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
ogre2
include
gz
rendering
ogre2
Ogre2FrustumVisual.hh
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2025 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
18
#ifndef GZ_RENDERING_OGRE2_OGREFRUSTUMVISUAL_HH_
19
#define GZ_RENDERING_OGRE2_OGREFRUSTUMVISUAL_HH_
20
21
#include <memory>
22
23
#include "
gz/rendering/base/BaseFrustumVisual.hh
"
24
#include "
gz/rendering/ogre2/Ogre2Visual.hh
"
25
#include "
gz/rendering/ogre2/Ogre2Includes.hh
"
26
#include "
gz/rendering/ogre2/Ogre2Scene.hh
"
27
28
namespace
gz
29
{
30
namespace
rendering
31
{
32
inline
namespace
GZ_RENDERING_VERSION_NAMESPACE {
33
//
34
// Forward declaration
35
class
Ogre2FrustumVisualPrivate;
36
38
class
GZ_RENDERING_OGRE2_VISIBLE
Ogre2FrustumVisual
39
:
public
BaseFrustumVisual
<Ogre2Visual>
40
{
42
protected
:
Ogre2FrustumVisual
();
43
45
public
:
virtual
~Ogre2FrustumVisual
();
46
47
// Documentation inherited.
48
public
:
virtual
void
Init
()
override
;
49
50
// Documentation inherited.
51
public
:
virtual
void
PreRender
()
override
;
52
53
// Documentation inherited.
54
public
:
virtual
void
Destroy
()
override
;
55
56
// Documentation inherited
57
public
:
virtual
void
Update
()
override
;
58
60
private
:
void
Create();
61
63
private
:
void
ClearVisualData();
64
65
// Documentation inherited
66
public
:
virtual
void
SetVisible
(
bool
_visible)
override
;
67
69
private
:
friend
class
Ogre2Scene
;
70
72
private
:
std::unique_ptr<Ogre2FrustumVisualPrivate>
dataPtr;
73
};
74
}
75
}
76
}
77
#endif