Ignition Rendering

API Reference

4.0.0
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 IGNITION_RENDERING_RENDERENGINEMANAGER_HH_
18 #define IGNITION_RENDERING_RENDERENGINEMANAGER_HH_
19 
20 #include <map>
21 #include <memory>
22 #include <string>
23 #include <vector>
26 #include "ignition/rendering/config.hh"
27 #include "ignition/rendering/Export.hh"
28 
29 namespace ignition
30 {
31  namespace rendering
32  {
33  inline namespace IGNITION_RENDERING_VERSION_NAMESPACE {
34  //
35  // forward declarations.
36  class RenderEngine;
37  class RenderEngineManagerPrivate;
38 
45  class IGNITION_RENDERING_VISIBLE RenderEngineManager :
46  public virtual common::SingletonT<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 
137 
140  };
141  }
142  }
143 }
144 #endif
Collection of render-engines. This provides access to all the render-engines available at runtime...
Definition: RenderEngineManager.hh:45
#define IGN_COMMON_WARN_RESUME__DLL_INTERFACE_MISSING
STL class.
STL class.
An abstract interface to a concrete render-engine. A RenderEngine is responsible for initializing a r...
Definition: RenderEngine.hh:36
#define IGN_COMMON_WARN_IGNORE__DLL_INTERFACE_MISSING