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
include
gz
rendering
RenderingIface.hh
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2015 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_RENDERINGIFACE_HH_
18
#define GZ_RENDERING_RENDERINGIFACE_HH_
19
20
#include <list>
21
#include <map>
22
#include <string>
23
#include <vector>
24
25
#include "gz/rendering/config.hh"
26
#include "gz/rendering/Export.hh"
27
#include "
gz/rendering/RenderTypes.hh
"
28
29
namespace
gz
30
{
31
namespace
rendering
32
{
33
inline
namespace
GZ_RENDERING_VERSION_NAMESPACE {
34
//
35
class
RenderEngine;
36
39
GZ_RENDERING_VISIBLE
40
bool
load
();
41
44
GZ_RENDERING_VISIBLE
45
bool
init
();
46
49
GZ_RENDERING_VISIBLE
50
bool
fini
();
51
54
GZ_RENDERING_VISIBLE
55
unsigned
int
engineCount
();
56
60
GZ_RENDERING_VISIBLE
61
bool
hasEngine
(
const
std::string
&_name);
62
66
GZ_RENDERING_VISIBLE
67
bool
isEngineLoaded
(
const
std::string
&_name);
68
71
GZ_RENDERING_VISIBLE
72
std::vector<std::string>
loadedEngines
();
73
82
GZ_RENDERING_VISIBLE
83
RenderEngine
*
engine
(
const
std::string
&_name,
84
const
std::map<std::string, std::string>
&_params = {},
85
const
std::string
&_path =
""
);
86
94
GZ_RENDERING_VISIBLE
95
RenderEngine
*
engine
(
const
unsigned
int
_index,
96
const
std::map<std::string, std::string>
&_params = {},
97
const
std::string
&_path =
""
);
98
102
GZ_RENDERING_VISIBLE
103
bool
unloadEngine
(
const
std::string
&_name);
104
109
GZ_RENDERING_VISIBLE
110
void
registerEngine
(
const
std::string
&_name,
RenderEngine
*_engine);
111
116
GZ_RENDERING_VISIBLE
117
void
unregisterEngine
(
const
std::string
&_name);
118
122
GZ_RENDERING_VISIBLE
123
void
unregisterEngine
(
RenderEngine
*_engine);
124
128
GZ_RENDERING_VISIBLE
129
void
unregisterEngine
(
const
unsigned
int
_index);
130
133
GZ_RENDERING_VISIBLE
134
void
setPluginPaths
(
const
std::list<std::string>
&_paths);
135
144
GZ_RENDERING_VISIBLE
145
ScenePtr
sceneFromFirstRenderEngine
();
146
}
147
}
148
}
149
#endif