ADTF_DISPLAY_TOOLBOX  3.8.0 (ADTF 3.14.3)
baseobjectscene.h
Go to the documentation of this file.
1 
7 #pragma once
8 
9 #include <osg/PositionAttitudeTransform>
10 
11 #include "baseobject.h"
12 
13 namespace adtf
14 {
15 
16 namespace disptb
17 {
18 
19 namespace mixinlib
20 {
21 
22 namespace endor
23 {
24 
42 class cBaseObjectScene : public osg::PositionAttitudeTransform
43 {
44 protected:
45 
46 
47 public:
48 
53  cBaseObjectScene(const tChar* strName = "");
54 
58  virtual ~cBaseObjectScene();
59 
64  virtual const tChar* GetName();
65 
71  virtual tResult AddObject(cBaseObject* pObj);
72 
78  virtual tResult RemoveObject(tUInt32 nId);
79 
86  virtual tResult GetObject(tUInt32 nId, cBaseObject** ppObj);
87 
92  virtual tResult RemoveInvalid();
93 
102  virtual tResult SetPosition(tFloat64 fPosX,
103  tFloat64 fPosY,
104  tFloat64 fPosZ);
105 
114  virtual tResult SetRotation(tFloat64 fRotX,
115  tFloat64 fRotY,
116  tFloat64 fRotZ);
117 
118 protected:
119  class cImplementation;
121  std::unique_ptr<cImplementation> m_pImplementation;
122 };
123 
124 } // chewbacca
125 
128 
129 } // mixinlib
130 
131 } // disptb
132 
133 } // adtf
Copyright © Audi Electronics Venture GmbH.
Base class for objects that can be managed with cBaseObjectScene.
Definition: baseobject.h:40
Base class for managing a scene of objects.
virtual tResult SetRotation(tFloat64 fRotX, tFloat64 fRotY, tFloat64 fRotZ)
Sets the rotation (attitude) of the scene.
virtual tResult RemoveObject(tUInt32 nId)
Removes an object from the scene.
virtual tResult AddObject(cBaseObject *pObj)
Use this to add a new object to the scene.
virtual tResult RemoveInvalid()
Removes all objects that have not been updated since the last call.
std::unique_ptr< cImplementation > m_pImplementation
D-Pointer implementation.
virtual const tChar * GetName()
Returns the name of the scene.
virtual tResult SetPosition(tFloat64 fPosX, tFloat64 fPosY, tFloat64 fPosZ)
Sets the position of the scene.
cBaseObjectScene(const tChar *strName="")
Default constructor.
virtual tResult GetObject(tUInt32 nId, cBaseObject **ppObj)
Retrieves an object.
Main namespace.