Ignition Rendering

API Reference

0.1.0
BaseObject.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_BASE_BASEOBJECT_HH_
18 #define IGNITION_RENDERING_BASE_BASEOBJECT_HH_
19 
20 #include <string>
22 
23 namespace ignition
24 {
25  namespace rendering
26  {
27  class IGNITION_RENDERING_VISIBLE BaseObject :
28  public virtual std::enable_shared_from_this<BaseObject>,
29  public virtual Object
30  {
31  protected: BaseObject();
32 
33  public: virtual ~BaseObject();
34 
35  public: virtual unsigned int Id() const;
36 
37  public: virtual std::string Name() const;
38 
39  public: virtual void PreRender();
40 
41  public: virtual void Destroy();
42 
43  // TODO: make pure virtual
44  protected: virtual void Load();
45 
46  // TODO: make pure virtual
47  protected: virtual void Init();
48 
49  protected: unsigned int id;
50 
51  protected: std::string name;
52  };
53  }
54 }
55 #endif
std::string name
Definition: BaseObject.hh:51
unsigned int id
Definition: BaseObject.hh:49
STL class.
Definition: BaseObject.hh:27
Definition: ArrowVisual.hh:22
Represents an object present in the scene graph. This includes sub-meshes, materials, render targets, as well as posable nodes.
Definition: Object.hh:31