13 #include <adtf_filtersdk.h>
14 #include <adtffiltersdk/filter.h>
15 #include <adtf_base.h>
50 class cDrawer :
public ucom::catwo::object<filter::ant::cFilter, dengar::IDrawer>
91 virtual tResult
Draw(
const ucom::ant::iobject_ptr<disptb::graphicslib::dengar::ICanvas>& pCanvas);
99 tResult
OnDraw(
const ucom::ant::iobject_ptr<disptb::graphicslib::dengar::ICanvas>& pCanvas);
112 tFloat32 fScaleX, tFloat32 fScaleY,
121 tVoid
ApplyMatrix(
const ucom::ant::iobject_ptr<disptb::graphicslib::dengar::ICanvas>& pCanvas);
127 tResult Init(tInitStage eStage)
override;
129 tResult Shutdown(tInitStage eStage)
override;
153 class cDrawer :
public ucom::catwo::object<filter::hollow::cFilter, florrum::IDrawer>
187 virtual tResult
Draw(
const ucom::ant::iobject_ptr<disptb::graphicslib::dengar::ICanvas>& pCanvas)
override;
195 tResult
OnDraw(
const ucom::ant::iobject_ptr<disptb::graphicslib::dengar::ICanvas>& pCanvas)
override;
208 tFloat32 fScaleX, tFloat32 fScaleY,
217 tVoid
ApplyMatrix(
const ucom::ant::iobject_ptr<disptb::graphicslib::dengar::ICanvas>& pCanvas);
225 virtual tResult
ContextCreated(
const ucom::ant::iobject_ptr<disptb::graphicslib::dengar::ICanvas>& pCanvas)
override;
234 tResult
OnCreateContext(
const ucom::ant::iobject_ptr<disptb::graphicslib::dengar::ICanvas>& pCanvas)
final;
253 tResult Init(tInitStage eStage) override;
255 tResult Shutdown(tInitStage eStage) override;
virtual ~cDrawer()=default
Destructor.
tResult RegisterProperties()
Registers all defined property variables.
virtual tResult Draw(const ucom::ant::iobject_ptr< disptb::graphicslib::dengar::ICanvas > &pCanvas)
This method is where the user code defines what is drawn on the canvas.
tBool IsVisible() const
IsVisible() is not the same as IsActive()! If a drawer is invisible all Handlers will be called excep...
tVoid ApplyMatrix(const ucom::ant::iobject_ptr< disptb::graphicslib::dengar::ICanvas > &pCanvas)
This method is called before Drawing.
tInt GetZOrder() const
The ZOrder defines the order of drawing the objects, if there are in the same coordinate space level.
tVoid SetMatrix(tFloat32 fTransX, tFloat32 fTransY, tFloat32 fScaleX, tFloat32 fScaleY, tFloat32 fRotate)
SetMatrix sets all parameter for the matrix to use in cDrawer::ApplyMatrix() Draw() don't need them b...
tResult OnDraw(const ucom::ant::iobject_ptr< disptb::graphicslib::dengar::ICanvas > &pCanvas)
This method is called from the drawer manager to draw on the give canvas.
tInt GetZOrder() const override
The ZOrder defines the order of drawing the objects, if there are in the same coordinate space level.
virtual ~cDrawer()=default
Destructor.
tResult OnCreateContext(const ucom::ant::iobject_ptr< disptb::graphicslib::dengar::ICanvas > &pCanvas) final
This oneshot method is called once when the transition from runlevel 4 to runlevel 5 occurs The use o...
virtual tResult Draw(const ucom::ant::iobject_ptr< disptb::graphicslib::dengar::ICanvas > &pCanvas) override
This method is where the user code defines what is drawn on the canvas.
virtual tResult ContextDestroyed() override
This method can be overwritten to define the desired behavior during the OnDestroyContext event.
tVoid ApplyMatrix(const ucom::ant::iobject_ptr< disptb::graphicslib::dengar::ICanvas > &pCanvas)
This method is called before Drawing.
tResult OnDraw(const ucom::ant::iobject_ptr< disptb::graphicslib::dengar::ICanvas > &pCanvas) override
This method is called from the drawer manager to draw on the give canvas.
tBool IsVisible() const override
IsVisible() is not the same as IsActive()! If a drawer is invisible all Handlers will be called excep...
tResult OnDestroyContext() final
This oneshot method is called once when the transition from runlevel 5 to runlevel 4 occurs The use o...
tVoid SetMatrix(tFloat32 fTransX, tFloat32 fTransY, tFloat32 fScaleX, tFloat32 fScaleY, tFloat32 fRotate)
SetMatrix sets all parameter for the matrix to use in cDrawer::ApplyMatrix() Draw() don't need them b...
virtual tResult ContextCreated(const ucom::ant::iobject_ptr< disptb::graphicslib::dengar::ICanvas > &pCanvas) override
This method can be overwritten to define the desired behavior during the OnCreateContext event.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.