Guiliani  Version 2.5 revision 7293 (documentation build 13)
GUIBitmapPlane_eGML.h
1/*
2* Copyright (C) TES Electronic Solutions GmbH,
3* All Rights Reserved.
4* Contact: info@guiliani.de
5*
6* This file is part of the Guiliani HMI framework
7* for the development of graphical user interfaces on embedded systems.
8*/
9
10#if !defined GUIBITMAPEGML__H_
11#define GUIBITMAPEGML__H_
12
13#include "GUIBitmapPlane.h"
14
15#include "eGML_Vector3.h"
16class eGML_Texture;
17class eGML_Primitive;
18class CGfxWrapeGML;
19class eGML_Bitmap;
20
25// @guiliani_doxygen limitations CGfxWrapeGML
29// @endguiliani_doxygen
35{
36 friend class CGfxWrapeGML;
37
38public:
39 void DoDraw();
40
41 virtual void SetWidth(eC_Value vWidth, eC_Bool bExpandCentered = false)
42 {
43 CGUIBitmapPlane::SetWidth(vWidth, bExpandCentered);
46 }
47
48 virtual void SetHeight(eC_Value vHeight, eC_Bool bExpandCentered = false)
49 {
50 CGUIBitmapPlane::SetHeight(vHeight, bExpandCentered);
53 }
54
55 virtual void SetAlphaValues(
56 const eC_UByte ubTopLeft, const eC_UByte ubBottomLeft,
57 const eC_UByte ubBottomRight, const eC_UByte ubTopRight)
58 {
59 m_ubAlpha = ubTopLeft;
60 }
61
62 virtual void SetTopLeftU(eC_Value vU)
63 {
66 }
67
68 virtual void SetTopLeftV(eC_Value vV)
69 {
72 }
73
74 virtual void SetBottomLeftU(eC_Value vU)
75 {
78 }
79
80 virtual void SetBottomLeftV(eC_Value vV)
81 {
84 }
85
86 virtual void SetBottomRightU(eC_Value vU)
87 {
90 }
91
92 virtual void SetBottomRightV(eC_Value vV)
93 {
96 }
97
98 virtual void SetTopRightU(eC_Value vU)
99 {
102 }
103
104 virtual void SetTopRightV(eC_Value vV)
105 {
108 }
109
110 virtual void Clear(const eC_UByte ubRed, const eC_UByte ubGreen, const eC_UByte ubBlue, const eC_UByte ubAlpha);
111
116 const eGML_Bitmap* GetInternalBitmap();
117
121 virtual void GetData(eC_TArray<eC_UByte>* pkData);
122
123protected:
130 CGUIBitmapPlane_eGML(GUIBitmapPlaneID_t uiNewBitmapID, const CGUIObject& rkParentObject, eC_Value vWidth, eC_Value vHeight);
131 virtual ~CGUIBitmapPlane_eGML();
132
135
140
144 void SetTexture(eGML_Texture* pNewTexture);
145
146 virtual eC_Bool DrawToBitmap();
147 virtual eC_Bool FinishDrawToBitmap();
148
149private:
150 eGML_Texture* m_pkTexture;
151 eGML_Primitive* m_pkPrimitive;
152 eGML_Vector3 m_v3TexStart;
153 eGML_Vector3 m_v3U;
154 eGML_Vector3 m_v3V;
155 eC_UByte m_ubAlpha;
156};
157#endif
The BitmapPlane Class for eGML.
Definition: GUIBitmapPlane_eGML.h:35
virtual void SetTopRightU(eC_Value vU)
Definition: GUIBitmapPlane_eGML.h:98
virtual eC_Bool FinishDrawToBitmap()
virtual eC_Bool DrawToBitmap()
virtual void GetData(eC_TArray< eC_UByte > *pkData)
void SetTexture(eGML_Texture *pNewTexture)
virtual void SetBottomRightV(eC_Value vV)
Definition: GUIBitmapPlane_eGML.h:92
virtual void SetBottomRightU(eC_Value vU)
Definition: GUIBitmapPlane_eGML.h:86
virtual void SetBottomLeftV(eC_Value vV)
Definition: GUIBitmapPlane_eGML.h:80
virtual void SetWidth(eC_Value vWidth, eC_Bool bExpandCentered=false)
Definition: GUIBitmapPlane_eGML.h:41
virtual void SetBottomLeftU(eC_Value vU)
Definition: GUIBitmapPlane_eGML.h:74
virtual void Clear(const eC_UByte ubRed, const eC_UByte ubGreen, const eC_UByte ubBlue, const eC_UByte ubAlpha)
void UpdateUVValues()
Updates the Texture Start and the eGML U and V vector.
virtual void SetAlphaValues(const eC_UByte ubTopLeft, const eC_UByte ubBottomLeft, const eC_UByte ubBottomRight, const eC_UByte ubTopRight)
Definition: GUIBitmapPlane_eGML.h:55
CGUIBitmapPlane_eGML(GUIBitmapPlaneID_t uiNewBitmapID, const CGUIObject &rkParentObject, eC_Value vWidth, eC_Value vHeight)
virtual void SetTopRightV(eC_Value vV)
Definition: GUIBitmapPlane_eGML.h:104
void UpdateVertices()
Calculates the vertices in the vertex array.
virtual void SetTopLeftU(eC_Value vU)
Definition: GUIBitmapPlane_eGML.h:62
const eGML_Bitmap * GetInternalBitmap()
virtual void SetTopLeftV(eC_Value vV)
Definition: GUIBitmapPlane_eGML.h:68
virtual void SetHeight(eC_Value vHeight, eC_Bool bExpandCentered=false)
Definition: GUIBitmapPlane_eGML.h:48
void CreateTexture()
Creates the eGMLTexture.
The bitmap plane base class.
Definition: GUIBitmapPlane.h:152
virtual void SetBottomRightU(eC_Value vU)
virtual void SetBottomLeftV(eC_Value vV)
virtual void SetHeight(eC_Value vHeight, eC_Bool bExpandCentered=false)
virtual void SetTopLeftV(eC_Value vV)
virtual void SetTopRightU(eC_Value vU)
virtual void SetBottomRightV(eC_Value vV)
virtual void SetWidth(eC_Value vWidth, eC_Bool bExpandCentered=false)
virtual void SetBottomLeftU(eC_Value vU)
virtual void SetTopLeftU(eC_Value vU)
virtual void SetTopRightV(eC_Value vV)
This is the Guiliani base class all controls are derived from.
Definition: GUIObject.h:79
eC_UByte m_ubAlpha
Currently set global alpha value.
Definition: GfxWrap.h:1410
This is the eGML implementation of the graphics wrapper.
Definition: GfxWrapeGML.h:33