ADTF_DISPLAY_TOOLBOX  3.8.0 (ADTF 3.14.3)
baseobjectmixin.h
Go to the documentation of this file.
1 
7 #pragma once
8 
9 #include "mixin.h"
10 #include "baseobjectscene.h"
11 #include "baseobject.h"
12 
13 #include "adtfstreaming3/samplereader.h"
14 
15 namespace adtf
16 {
17 
18 namespace disptb
19 {
20 
21 namespace mixinlib
22 {
23 
24 namespace endor
25 {
26 
38 class cBaseObjectMixin: public cMixin
39 {
40  public:
45 
49  ~cBaseObjectMixin() override;
50 
58  virtual tResult AddScene(adtf::streaming::flash::ISampleReader* pReader, cBaseObjectScene* pScene);
59 
66  virtual tResult GetScene(adtf::streaming::flash::ISampleReader* pReader, cBaseObjectScene** ppScene);
67 
68  public: // overrides cMixin
69 
71  tResult ProcessInput(adtf::streaming::flash::ISampleReader* pReader,
72  const adtf::ucom::ant::iobject_ptr<const adtf::streaming::ant::ISample>& pSample) override;
73 
74  tResult OnPick(tInt32 nPosX,
75  tInt32 nPosY,
76  tUInt32 nFlags,
77  const tNodePath& sNodePath) override;
79 
80  protected:
81 
89  virtual tResult UpdateScene(cBaseObjectScene* pScene, const adtf::ucom::ant::iobject_ptr<const adtf::streaming::ant::ISample>& pSample) = 0;
90 
95  virtual tResult OnObjectPick(cBaseObjectScene* pScene,
96  cBaseObject* pObj,
97  tInt nPosX,
98  tInt nPosY,
99  tUInt32 nFlags,
100  const tNodePath& sNodePath);
102 
103  protected:
104  class cImplementation;
105 
107  std::unique_ptr<cImplementation> m_pImplementation;
108 };
109 
110 }
111 
114 
115 } // mixinlib
116 
117 } // disptb
118 
119 } // adtf
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
Base class for objects that can be managed with cBaseObjectScene.
Definition: baseobject.h:40
Base mixin for handling cBaseObjectScene s.
virtual tResult UpdateScene(cBaseObjectScene *pScene, const adtf::ucom::ant::iobject_ptr< const adtf::streaming::ant::ISample > &pSample)=0
Updates the scene with data from a new media sample.
virtual tResult AddScene(adtf::streaming::flash::ISampleReader *pReader, cBaseObjectScene *pScene)
Adds a new object scene.
std::unique_ptr< cImplementation > m_pImplementation
D-Pointer implementation.
virtual tResult GetScene(adtf::streaming::flash::ISampleReader *pReader, cBaseObjectScene **ppScene)
Returns the scene which is assigned to a specific pin.
Base class for managing a scene of objects.
Base class for Mixin Filters.
Definition: mixin.h:93
virtual tResult OnPick(tInt32 nPosX, tInt32 nPosY, tUInt32 nFlags, const tNodePath &sNodePath)
Handle a left click on one of your nodes.
Copyright © Audi Electronics Venture GmbH.
Main namespace.