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
RenderEngineManager.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_RENDERENGINEMANAGER_HH_
18
#define GZ_RENDERING_RENDERENGINEMANAGER_HH_
19
20
#include <list>
21
#include <map>
22
#include <memory>
23
#include <string>
24
#include <vector>
25
#include <
gz/common/SingletonT.hh
>
26
#include <gz/utils/SuppressWarning.hh>
27
#include "gz/rendering/config.hh"
28
#include "gz/rendering/Export.hh"
29
30
namespace
gz
31
{
32
namespace
rendering
33
{
34
inline
namespace
GZ_RENDERING_VERSION_NAMESPACE {
35
//
36
// forward declarations.
37
class
RenderEngine;
38
class
RenderEngineManagerPrivate;
39
46
class
GZ_RENDERING_VISIBLE
RenderEngineManager
47
{
49
public
:
RenderEngineManager
();
50
52
public
:
~RenderEngineManager
();
53
56
public
:
unsigned
int
EngineCount
()
const
;
57
62
public
:
bool
HasEngine
(
const
std::string
&_name)
const
;
63
68
public
:
bool
IsEngineLoaded
(
const
std::string
&_name)
const
;
69
72
public
:
std::vector<std::string>
LoadedEngines
()
const
;
73
81
public
:
RenderEngine
*
Engine
(
const
std::string
&_name,
82
const
std::map<std::string, std::string>
&_params = {},
83
const
std::string
&_path =
""
);
84
91
public
:
RenderEngine
*
EngineAt
(
unsigned
int
_index,
92
const
std::map<std::string, std::string>
&_params = {},
93
const
std::string
&_path =
""
);
94
100
public
:
bool
UnloadEngine
(
const
std::string
&_name);
101
107
public
:
bool
UnloadEngineAt
(
unsigned
int
_index);
108
114
public
:
void
RegisterEngine
(
const
std::string
&_name,
115
RenderEngine
*_engine);
116
121
public
:
void
UnregisterEngine
(
const
std::string
&_name);
122
126
public
:
void
UnregisterEngine
(
RenderEngine
*_engine);
127
131
public
:
void
UnregisterEngineAt
(
unsigned
int
_index);
132
135
public
:
void
SetPluginPaths
(
const
std::list<std::string>
&_paths);
136
139
public
:
static
RenderEngineManager
*
Instance
();
140
141
GZ_UTILS_WARN_IGNORE__DLL_INTERFACE_MISSING
143
private
:
std::unique_ptr<RenderEngineManagerPrivate>
dataPtr;
144
GZ_UTILS_WARN_RESUME__DLL_INTERFACE_MISSING
145
147
private
:
friend
class
gz::common::SingletonT
<
RenderEngineManager
>;
148
};
149
}
150
}
151
}
152
#endif