|
ADTF Display Toolbox
|
Graphics command language processing class. More...
Public Member Functions | |
| cGCLProcessor () | |
| Constructor. | |
| virtual | ~cGCLProcessor () |
| Destructor. | |
| tResult | Create () |
| Create GCLProcessor. More... | |
| tResult | Release () |
| Release GCLProcessor. More... | |
| tResult | Process (ICanvas *pCanvas, tVoid *pCommandBlock, tInt nBlockSize, tUInt nOrigWidth, tUInt nOrigHeight, cRect sTargetRect, tBool bFlipRGB=tFalse) |
| Process command block on canvas. More... | |
| tResult | Process (tHandle hCanvas, tVoid *pCommandBlock, tInt nBlockSize, tUInt nOrigWidth, tUInt nOrigHeight, cRect sTargetRect, tBool bFlipRGB=tFalse) |
| Process command block on canvas. More... | |
| tResult | SetFonts (IFont *pSmallFont, IFont *pNormalFont, IFont *pHugeFont) |
| Sets small, normal and huge font for the GCL_CMD_Text Command. More... | |
Protected Member Functions | |
| tResult | ProcessBlock (tVoid *pCommandBlock, tInt nBlockSize, tUInt nOrigWidth, tUInt nOrigHeight, cRect sTargetRect) |
| Process command block. More... | |
| tResult | ProcessCommand (tGCLCommandDescriptor *pCmd, tUInt32 *pParams, tInt &nJump, cRect sTargetRect) |
| Process command. More... | |
| tResult | CalcScale (tUInt nOrigWidth, tUInt nOrigHeight, const cRect &sTargetRect) |
| Calculate the current scaling factor and sets the members m_fScaleX and m_fScaleY. More... | |
| 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 flag, scales and translates them and writes the result back to x, y. More... | |
Protected Attributes | |
| ICanvas * | m_pCanvas |
| D-Pointer implementation. More... | |
| tHandle | m_hCanvas |
| Windows canvas handle for output. | |
| tBool | m_bInitialized |
| Is GCLProcessor initialized? | |
| tInt | m_nCurrentX |
| Current x coordinate (integer) | |
| tInt | m_nCurrentY |
| Current y coordinate (integer) | |
| tBool | m_bFormatFloat |
| Use integer (false) or floating-point (true) coordinates. | |
| tFloat32 | m_fScaleX |
| Current scaling factor. | |
| tFloat32 | m_fScaleY |
| Current scaling factor. | |
| tBool | m_bFlipRGB |
| Flag for legacy issues. | |
| IFont * | m_pSmallFont |
| Small font for GCL_CMD_Text Command. | |
| IFont * | m_pNormalFont |
| Normal font for GCL_CMD_Text Command. | |
| IFont * | m_pHugeFont |
| Huge font for GCL_CMD_Text Command. | |
|
protected |
Calculate the current scaling factor and sets the members m_fScaleX and m_fScaleY.
| nOrigWidth | [in] Original width. |
| nOrigHeight | [in] Original height. |
| sTargetRect | [in] Target rectangle. |
| tResult Create | ( | ) |
Create GCLProcessor.
|
protected |
Takes the first two parameters from the array (pParam) converts them depending on the m_bFormatFloat flag, scales and translates them and writes the result back to x, y.
| pParam | [in] Array with parameters where the first two of them are to be calculated |
| sTargetRect | [in] Target rectangle.(used for translation |
| x | [out] converted value from pParam[0] |
| y | [out] converted value from pParam[1] |
| tResult Process | ( | ICanvas * | pCanvas, |
| tVoid * | pCommandBlock, | ||
| tInt | nBlockSize, | ||
| tUInt | nOrigWidth, | ||
| tUInt | nOrigHeight, | ||
| cRect | sTargetRect, | ||
| tBool | bFlipRGB = tFalse |
||
| ) |
Process command block on canvas.
| pCanvas | [in] Canvas to paint on. |
| pCommandBlock | [in] Block with GCL commands. |
| nBlockSize | [in] Size of block. |
| nOrigWidth | [in] Original width. |
| nOrigHeight | [in] Original height. |
| sTargetRect | [in] Target rectangle. |
| bFlipRGB | [in] Flip on process. |
| tResult Process | ( | tHandle | hCanvas, |
| tVoid * | pCommandBlock, | ||
| tInt | nBlockSize, | ||
| tUInt | nOrigWidth, | ||
| tUInt | nOrigHeight, | ||
| cRect | sTargetRect, | ||
| tBool | bFlipRGB = tFalse |
||
| ) |
Process command block on canvas.
| hCanvas | [in] Canvas to paint on. |
| pCommandBlock | [in] Block with GCL commands. |
| nBlockSize | [in] Size of block. |
| nOrigWidth | [in] Original width. |
| nOrigHeight | [in] Original height. |
| sTargetRect | [in] Target rectangle. |
| bFlipRGB | [in] Flip on process. |
|
protected |
Process command block.
| pCommandBlock | [in] Block with GCL commands. |
| nBlockSize | [in] Size of block. |
| nOrigWidth | [in] Original width. |
| nOrigHeight | [in] Original height. |
| sTargetRect | [in] Target rectangle. |
|
protected |
Process command.
| pCmd | [in] GCL command. |
| pParams | [in] Command parameters. |
| nJump | [inout] Internally used to navigate inside the command blocks. |
| sTargetRect | [in] Target rectangle. |
| tResult Release | ( | ) |
Release GCLProcessor.
Sets small, normal and huge font for the GCL_CMD_Text Command.
| pSmallFont | [in] small font |
| pNormalFont | [in] normal font |
| pHugeFont | [in] huge font |