Ignition Rendering

API Reference

0.1.0
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 IGNITION_RENDERING_RENDERINGIFACE_HH_
18 #define IGNITION_RENDERING_RENDERINGIFACE_HH_
19 
20 #include <string>
21 #include "ignition/rendering/Export.hh"
22 
23 namespace ignition
24 {
25  namespace rendering
26  {
27  class RenderEngine;
28 
31  IGNITION_RENDERING_VISIBLE
32  bool load();
33 
36  IGNITION_RENDERING_VISIBLE
37  bool init();
38 
41  IGNITION_RENDERING_VISIBLE
42  bool fini();
43 
46  IGNITION_RENDERING_VISIBLE
47  unsigned int engineCount();
48 
52  IGNITION_RENDERING_VISIBLE
53  bool hasEngine(const std::string &_name);
54 
60  IGNITION_RENDERING_VISIBLE
61  RenderEngine *engine(const std::string &_name);
62 
67  IGNITION_RENDERING_VISIBLE
68  RenderEngine *engine(const unsigned int _index);
69 
74  IGNITION_RENDERING_VISIBLE
75  void registerEngine(const std::string &_name, RenderEngine *_engine);
76 
81  IGNITION_RENDERING_VISIBLE
82  void unregisterEngine(const std::string &_name);
83 
87  IGNITION_RENDERING_VISIBLE
88  void unregisterEngine(RenderEngine *_engine);
89 
93  IGNITION_RENDERING_VISIBLE
94  void unregisterEngine(const unsigned int _index);
95  }
96 }
97 #endif
STL class.
void registerEngine(const std::string &_name, RenderEngine *_engine)
Register a new render-engine under the given name. If the given name is already in use...
bool hasEngine(const std::string &_name)
Determine if a render-engine is registered under the given name.
void unregisterEngine(const std::string &_name)
Unregister a render-engine registered under the given name. If the no render-engine is registered und...
unsigned int engineCount()
Get the number of available render-engines.
void load()
Load shared render-engine resources.
bool init()
Initialized shared render-engine features.
bool fini()
Destroy all render-engines and related resources.
RenderEngine * engine(const std::string &_name)
Get the render-engine registered under the given name. If no render-engine is registered under the gi...
Definition: ArrowVisual.hh:22