Ignition Rendering

API Reference

0.1.0
RenderEngine.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_RENDERENGINE_HH_
18 #define IGNITION_RENDERING_RENDERENGINE_HH_
19 
20 #include <string>
22 #include "ignition/rendering/Export.hh"
23 
24 namespace ignition
25 {
26  namespace rendering
27  {
32  class IGNITION_RENDERING_VISIBLE RenderEngine
33  {
35  public: virtual ~RenderEngine() { }
36 
40  public: virtual bool Load() = 0;
41 
45  public: virtual bool Init() = 0;
46 
51  public: virtual void Destroy() = 0;
52 
53  // TODO: merge with Destroy
54  public: virtual bool Fini() = 0;
55 
58  public: virtual bool IsLoaded() const = 0;
59 
62  public: virtual bool IsInitialized() const = 0;
63 
68  public: virtual bool IsEnabled() const = 0;
69 
72  public: virtual std::string Name() const = 0;
73 
77  public: virtual unsigned int SceneCount() const = 0;
78 
83  public: virtual bool HasScene(ConstScenePtr _scene) const = 0;
84 
89  public: virtual bool HasSceneId(unsigned int _id) const = 0;
90 
95  public: virtual bool HasSceneName(const std::string &_name) const = 0;
96 
101  public: virtual ScenePtr SceneById(unsigned int _id) const = 0;
102 
107  public: virtual ScenePtr SceneByName(
108  const std::string &_name) const = 0;
109 
116  public: virtual ScenePtr SceneByIndex(unsigned int _index) const = 0;
117 
121  public: virtual void DestroyScene(ScenePtr _scene) = 0;
122 
126  public: virtual void DestroySceneById(unsigned int _id) = 0;
127 
131  public: virtual void DestroySceneByName(const std::string &_name) = 0;
132 
136  public: virtual void DestroySceneByIndex(unsigned int _index) = 0;
137 
139  public: virtual void DestroyScenes() = 0;
140 
147  public: virtual ScenePtr CreateScene(const std::string &_name) = 0;
148 
156  public: virtual ScenePtr CreateScene(unsigned int _id,
157  const std::string &_name) = 0;
158 
161  public: virtual void AddResourcePath(const std::string &_path) = 0;
162  };
163  }
164 }
165 #endif
STL class.
virtual ~RenderEngine()
Deconstructor.
Definition: RenderEngine.hh:35
An abstract interface to a concrete render-engine. A RenderEngine is responsible for initializing a r...
Definition: RenderEngine.hh:32
Definition: ArrowVisual.hh:22