63 class cGCLProcessor :
public ucom::catwo::object<ucom::IEventSource, ucom::cEventSource>
132 tResult
Process(
ICanvas* pCanvas, tVoid* pCommandBlock, tInt nBlockSize, tUInt nOrigWidth, tUInt nOrigHeight,
133 cRect sTargetRect, tBool bFlipRGB = tFalse);
148 tResult
Process(tHandle hCanvas, tVoid* pCommandBlock, tInt nBlockSize, tUInt nOrigWidth, tUInt nOrigHeight,
149 cRect sTargetRect, tBool bFlipRGB = tFalse);
175 tResult
ProcessBlock(tVoid* pCommandBlock, tInt nBlockSize, tUInt nOrigWidth, tUInt nOrigHeight,
cRect sTargetRect);
199 tResult
CalcScale(tUInt nOrigWidth, tUInt nOrigHeight,
const cRect& sTargetRect);
212 tResult
GetCoords(
const tUInt32* pParam,
const cRect& sTargetRect, tInt& x, tInt& y)
const;
Default Font handling interface for basic font support.
Class for events of Graphics Command Language.
tGCLProcessorEventIds
Event Id enumeration for the tGCLProcessEvent::nEventId.
@ GCLPE_Clear
emited when a clear command was processed.
Graphics command language processing class.
tResult SetFonts(IFont *pSmallFont, IFont *pNormalFont, IFont *pHugeFont)
Sets small, normal and huge font for the GCL_CMD_Text Command.
tResult CalcScale(tUInt nOrigWidth, tUInt nOrigHeight, const cRect &sTargetRect)
Calculate the current scaling factor and sets the members m_fScaleX and m_fScaleY.
tBool m_bFormatFloat
Use integer (false) or floating-point (true) coordinates.
cGCLProcessor()
Constructor.
tResult Create()
Create GCLProcessor.
tResult ProcessBlock(tVoid *pCommandBlock, tInt nBlockSize, tUInt nOrigWidth, tUInt nOrigHeight, cRect sTargetRect)
Process command block.
tResult Process(tHandle hCanvas, tVoid *pCommandBlock, tInt nBlockSize, tUInt nOrigWidth, tUInt nOrigHeight, cRect sTargetRect, tBool bFlipRGB=tFalse)
Process command block on canvas.
tResult Process(ICanvas *pCanvas, tVoid *pCommandBlock, tInt nBlockSize, tUInt nOrigWidth, tUInt nOrigHeight, cRect sTargetRect, tBool bFlipRGB=tFalse)
Process command block on canvas.
tBool m_bInitialized
Is GCLProcessor initialized?
tFloat32 m_fScaleX
Current scaling factor.
tInt m_nCurrentX
Current x coordinate (integer)
IFont * m_pSmallFont
Small font for GCL_CMD_Text Command.
tFloat32 m_fScaleY
Current scaling factor.
tResult GetCoords(const tUInt32 *pParam, const cRect &sTargetRect, tInt &x, tInt &y) const
Takes the first two parameters from the array (pParam) converts them depending on the m_bFormatFloat ...
tInt m_nCurrentY
Current y coordinate (integer)
tResult Release()
Release GCLProcessor.
tHandle m_hCanvas
Windows canvas handle for output.
IFont * m_pHugeFont
Huge font for GCL_CMD_Text Command.
virtual ~cGCLProcessor()
Destructor.
tResult ProcessCommand(tGCLCommandDescriptor *pCmd, tUInt32 *pParams, tInt &nJump, cRect sTargetRect)
Process command.
tBool m_bFlipRGB
Flag for legacy issues.
IFont * m_pNormalFont
Normal font for GCL_CMD_Text Command.
ICanvas * m_pCanvas
Canvas for output.
A_UTILS_D(cGCLProcessor)
D-Pointer implementation.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
Event structure for signal registry events through the ucom::IEventSource interface.
tUInt32 nEventId
EventId shown in IGCLProcessorEvents::tGCLProcessorEventIds.
tInt32 i32Param2
A event content specific parameter.
tVoid * pvData
Pointer to additional event data.
tSize szDataLength
size of the additional event data.
tInt32 i32Param1
A event content specific parameter.