ADTF Display Toolbox
Loading...
Searching...
No Matches
cDrawerImplementation
Inheritance diagram for cDrawerImplementation:
[legend]

Public Member Functions

tVoid ApplyMatrix (const ucom::ant::iobject_ptr< graphicslib::dengar::ICanvas > &pCanvas)
 This method is called before Drawing.
 
tVoid SetMatrix (tFloat32 fTransX, tFloat32 fTransY, tFloat32 fScaleX, tFloat32 fScaleY, tFloat32 fRotate)
 SetMatrix sets all parameter for the matrix to use in ApplyMatrix() Draw() don't need them because the matrix is applied before Draw() is called.
 

Protected Member Functions

tInt GetZOrderImpl () const
 The ZOrder defines the order of drawing the objects, if there are in the same coordinate space level.
 
tBool IsVisibleImpl () const
 IsVisible() is not the same as IsActive()!
 
tResult OnDrawImpl (dengar::IDrawer *pDrawer, const ucom::ant::iobject_ptr< graphicslib::ICanvas > &pCanvas)
 
tResult Register (dengar::IDrawer *pDrawer)
 
tVoid ClearChildren ()
 

Static Protected Member Functions

static tVoid LogDrawerError (tResult nResult, dengar::IDrawer *pDrawer)
 

Protected Attributes

base::property_variable< tInt > m_nZOrder
 
base::property_variable< tBool > m_bVisible
 
base::property_variable< tFloat32 > m_fTransX {0.0}
 
base::property_variable< tFloat32 > m_fTransY {0.0}
 
base::property_variable< tFloat32 > m_fScaleX {0.0}
 
base::property_variable< tFloat32 > m_fScaleY {0.0}
 
base::property_variable< tFloat32 > m_fRotate {0.0}
 
ucom::ant::object_ptr< streaming::IBindingObject > m_pBindingClient
 
ucom::object_ptr< drawerlib::cDrawerManager > m_pDrawerManager
 

Detailed Description

Definition at line 34 of file drawer.h.

Constructor & Destructor Documentation

◆ cDrawerImplementation()

cDrawerImplementation ( )
inlineprotected

Definition at line 48 of file drawer.h.

Member Function Documentation

◆ ApplyMatrix()

tVoid ApplyMatrix ( const ucom::ant::iobject_ptr< graphicslib::dengar::ICanvas > & pCanvas)
inline

This method is called before Drawing.

The purpose is to pass the matrix over to OpenGL, so that all further drawings will be scaled, rotated and moved like described.

Parameters
pCanvas[in/out] Pointer to the current Canvas object

Definition at line 139 of file drawer.h.

◆ ClearChildren()

tVoid ClearChildren ( )
inlineprotected

Definition at line 117 of file drawer.h.

◆ GetZOrderImpl()

tInt GetZOrderImpl ( ) const
inlineprotected

The ZOrder defines the order of drawing the objects, if there are in the same coordinate space level.

Returns
the current ZOrder value

Definition at line 59 of file drawer.h.

Referenced by cDrawer::GetZOrder().

◆ IsVisibleImpl()

tBool IsVisibleImpl ( ) const
inlineprotected

IsVisible() is not the same as IsActive()!

If a drawer is invisible all Handlers will be called except the Draw method.

Returns
tTrue, if the drawer is visibel otherwise tFalse

Definition at line 69 of file drawer.h.

Referenced by cDrawer::IsVisible().

◆ LogDrawerError()

static tVoid LogDrawerError ( tResult nResult,
dengar::IDrawer * pDrawer )
inlinestaticprotected

Definition at line 122 of file drawer.h.

◆ OnDrawImpl()

tResult OnDrawImpl ( dengar::IDrawer * pDrawer,
const ucom::ant::iobject_ptr< graphicslib::ICanvas > & pCanvas )
inlineprotected

Definition at line 74 of file drawer.h.

◆ Register()

tResult Register ( dengar::IDrawer * pDrawer)
inlineprotected

Definition at line 107 of file drawer.h.

◆ SetMatrix()

tVoid SetMatrix ( tFloat32 fTransX,
tFloat32 fTransY,
tFloat32 fScaleX,
tFloat32 fScaleY,
tFloat32 fRotate )
inline

SetMatrix sets all parameter for the matrix to use in ApplyMatrix() Draw() don't need them because the matrix is applied before Draw() is called.

Parameters
fTransX[in] Translation in x direction
fTransY[in] Translation in y direction
fScaleX[in] Scaling in x direction
fScaleY[in] Scaling in y direction
fRotate[in] Rotation angle in degrees (CCW)

Definition at line 156 of file drawer.h.

Referenced by cDrawer::cDrawer().

Member Data Documentation

◆ m_bVisible

base::property_variable<tBool> m_bVisible
protected

Definition at line 38 of file drawer.h.

◆ m_fRotate

base::property_variable<tFloat32> m_fRotate {0.0}
protected

Definition at line 43 of file drawer.h.

◆ m_fScaleX

base::property_variable<tFloat32> m_fScaleX {0.0}
protected

Definition at line 41 of file drawer.h.

◆ m_fScaleY

base::property_variable<tFloat32> m_fScaleY {0.0}
protected

Definition at line 42 of file drawer.h.

◆ m_fTransX

base::property_variable<tFloat32> m_fTransX {0.0}
protected

Definition at line 39 of file drawer.h.

◆ m_fTransY

base::property_variable<tFloat32> m_fTransY {0.0}
protected

Definition at line 40 of file drawer.h.

◆ m_nZOrder

base::property_variable<tInt> m_nZOrder
protected

Definition at line 37 of file drawer.h.

◆ m_pBindingClient

ucom::ant::object_ptr<streaming::IBindingObject> m_pBindingClient
protected

Definition at line 44 of file drawer.h.

◆ m_pDrawerManager

ucom::object_ptr<drawerlib::cDrawerManager> m_pDrawerManager
protected

Definition at line 45 of file drawer.h.