Ignition Rendering

API Reference

0.1.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 <memory>
21 #include <string>
22 #include <ignition/common/SingletonT.hh>
23 #include "ignition/rendering/Export.hh"
24 
25 namespace ignition
26 {
27  namespace rendering
28  {
29  // forward declarations.
30  class RenderEngine;
31  class RenderEngineManagerPrivate;
32 
39  class IGNITION_RENDERING_VISIBLE RenderEngineManager :
40  public virtual common::SingletonT<RenderEngineManager>
41  {
43  public: RenderEngineManager();
44 
46  public: ~RenderEngineManager();
47 
50  public: unsigned int EngineCount() const;
51 
55  public: bool HasEngine(const std::string &_name) const;
56 
62  public: RenderEngine *Engine(const std::string &_name) const;
63 
68  public: RenderEngine *EngineAt(unsigned int _index) const;
69 
75  public: void RegisterEngine(const std::string &_name,
76  RenderEngine *_engine);
77 
82  public: void UnregisterEngine(const std::string &_name);
83 
87  public: void UnregisterEngine(RenderEngine *_engine);
88 
92  public: void UnregisterEngineAt(unsigned int _index);
93 
96 
98  private: friend class SingletonT<RenderEngineManager>;
99  };
100  }
101 }
102 #endif
Collection of render-engines. This provides access to all the render-engines available at runtime...
Definition: RenderEngineManager.hh:39
STL class.
An abstract interface to a concrete render-engine. A RenderEngine is responsible for initializing a r...
Definition: RenderEngine.hh:32
Definition: ArrowVisual.hh:22