Guiliani  Version 2.6 revision 7293 (documentation build 12)
CGUIBitmapPlaneDirectFb Class Reference

The BitmapPlane Class for DirectFB. More...

#include <GUIBitmapPlaneDirectFb.h>

Inheritance diagram for CGUIBitmapPlaneDirectFb:

Public Member Functions

 CGUIBitmapPlaneDirectFb (GUIBitmapPlaneID_t uiNewBitmapID, const CGUIObject &rkParentObject, eC_Value vWidth, eC_Value vHeight, CGfxWrapDirectFb::BppFormat_t eBppFormat)
 
virtual void Clear (const eC_UByte ubRed=0, const eC_UByte ubGreen=0, const eC_UByte ubBlue=0, const eC_UByte ubAlpha=0)
 
void DoDraw ()
 
virtual void SetAlphaValues (const eC_UByte ubTopLeft, const eC_UByte ubBottomLeft, const eC_UByte ubBottomRight, const eC_UByte ubTopRight)
 
- Public Member Functions inherited from CGUIBitmapPlane
GUIBitmapPlaneID_t GetID () const
 
void SetPos2D (eC_Value vXPos, eC_Value vYPos)
 
void SetXPos2D (eC_Value vXPos)
 
void SetYPos2D (eC_Value vYPos)
 
eC_Value GetXPos2D () const
 
eC_Value GetYPos2D () const
 
void SetPos3D (eC_Value vXPos, eC_Value vYPos, eC_Value vZPos)
 
void SetXPos3D (const eC_Value vXPos)
 
void SetYPos3D (const eC_Value vYPos)
 
void SetZPos3D (const eC_Value vZPos)
 
eC_Value GetXPos () const
 
eC_Value GetYPos () const
 
eC_Value GetZPos () const
 
void RotateX (const eC_Value vXAngle)
 
void RotateY (const eC_Value vYAngle)
 
void RotateZ (const eC_Value vZAngle)
 
eC_Value GetXAngle () const
 
eC_Value GetYAngle () const
 
eC_Value GetZAngle () const
 
void ResetRotation ()
 
virtual void SetWidth (eC_Value vWidth, eC_Bool bExpandCentered=false)
 
eC_Value GetWidth () const
 
eC_Value GetWidthCorrected () const
 
virtual void SetHeight (eC_Value vHeight, eC_Bool bExpandCentered=false)
 
eC_Value GetHeight () const
 
eC_Value GetHeightCorrected () const
 
void SetBytesPerPixel (const eC_UByte &ubBPP)
 
eC_UByte GetBytesPerPixel () const
 
void SetFormat (const CGUICommonEnums::ImageType_t &eFormat)
 
CGUICommonEnums::ImageType_t GetFormat () const
 
void SetAutoScale (const eC_Bool bAutoScale)
 
virtual void GetData (eC_TArray< eC_UByte > *pkData)
 
const CGUIObjectGetParentGUIObject () const
 
void SetAlphaValue (const eC_UByte ubAlpha)
 
virtual void SetTopLeftU (eC_Value vU)
 
virtual eC_Value GetTopLeftU ()
 
virtual void SetTopLeftV (eC_Value vV)
 
virtual eC_Value GetTopLeftV ()
 
void SetTopLeftUV (eC_Value vU, eC_Value vV)
 
virtual void SetBottomLeftU (eC_Value vU)
 
virtual eC_Value GetBottomLeftU ()
 
virtual void SetBottomLeftV (eC_Value vV)
 
virtual eC_Value GetBottomLeftV ()
 
void SetBottomLeftUV (eC_Value vU, eC_Value vV)
 
virtual void SetBottomRightU (eC_Value vU)
 
virtual eC_Value GetBottomRightU ()
 
virtual void SetBottomRightV (eC_Value vV)
 
virtual eC_Value GetBottomRightV ()
 
void SetBottomRightUV (eC_Value vU, eC_Value vV)
 
virtual void SetTopRightU (eC_Value vU)
 
virtual eC_Value GetTopRightU ()
 
virtual void SetTopRightV (eC_Value vV)
 
virtual eC_Value GetTopRightV ()
 
void SetTopRightUV (eC_Value vU, eC_Value vV)
 
void EnableDepthTest ()
 
void DisableDepthTest ()
 
eC_Bool IsDepthTestEnabled () const
 
virtual eC_Value Get2DPlaneDistance ()
 
eC_Value GetFOV () const
 
void SetFOV (const eC_Value vFOV)
 
eC_Value GetNear () const
 
eC_Value GetFar () const
 
eC_Bool IsYFlipped () const
 

Protected Member Functions

virtual eC_Bool DrawToBitmap ()
 
virtual eC_Bool DrawToScreen ()
 
virtual eC_Bool FinishDrawToBitmap ()
 
- Protected Member Functions inherited from CGUIBitmapPlane
 CGUIBitmapPlane (GUIBitmapPlaneID_t uiNewBitmapID, const CGUIObject &rkParentObject, eC_Value vWidth=0, eC_Value vHeight=0)
 
eC_Value GetCenterOfProjectionAbsX () const
 
eC_Value GetCenterOfProjectionAbsY () const
 
void SetTexUsed (eC_Value vNewTexUsedU, eC_Value vNewTexUsedV)
 

Additional Inherited Members

- Protected Attributes inherited from CGUIBitmapPlane
eC_TArray< eC_Value > m_avUVValues
 array containing the uv values for all four plane corners
 
eC_Bool m_bAutoScale
 flag describing a bitmap plane will be automatically be scaled on GUIObject scale
 
eC_Bool m_bYFlipped
 if data is upside down
 
eC_UInt m_uiScreenHeight
 screen height, used to identify screen changes on calculation of 2DPlaneDistance
 
eC_UInt m_uiScreenWidth
 screen width, used to identify screen changes on calculation of 2DPlaneDistance
 
eC_Value m_v2DPlaneDistance
 2DPlaneDistance
 
eC_Value m_vGUIObjectInitHeight
 Height of the GUIObject at creation time of this BitmapPlane.
 
eC_Value m_vGUIObjectInitWidth
 Width of the GUIObject at creation time of this BitmapPlane.
 
eC_Value m_vTexUsedU
 Used space/unused space in x direction in the Bitmap, due to Power of two limitations [0 1].
 
eC_Value m_vTexUsedV
 Used space/unused space in y direction in the Bitmap, due to Power of two limitations [0 1].
 

Detailed Description

The BitmapPlane Class for DirectFB.

Platform Specific Limitations

Rotation is not supported.

3D functions are not supported.

Alpha Values can only be set globally (Top left alpha is used).

See CGUIBitmapPlaneDirectFb Platform Specific Limitations

Constructor & Destructor Documentation

◆ CGUIBitmapPlaneDirectFb()

CGUIBitmapPlaneDirectFb::CGUIBitmapPlaneDirectFb ( GUIBitmapPlaneID_t  uiNewBitmapID,
const CGUIObject rkParentObject,
eC_Value  vWidth,
eC_Value  vHeight,
CGfxWrapDirectFb::BppFormat_t  eBppFormat 
)

Constructor

Parameters
uiNewBitmapIDBitmap ID
rkParentObjectParent object
vWidthWidth
vHeightHeight
eBppFormatbit per pixel of image

Member Function Documentation

◆ Clear()

virtual void CGUIBitmapPlaneDirectFb::Clear ( const eC_UByte  ubRed = 0,
const eC_UByte  ubGreen = 0,
const eC_UByte  ubBlue = 0,
const eC_UByte  ubAlpha = 0 
)
virtual

Clears this bitmap with the given color. Attention: Please note that clearing Alpha values is unfortunately not supported by all Graphics APIs!

Parameters
ubRedis the red part of the clear color
ubGreenis the green part of the clear color
ubBlueis the blue part of the clear color
ubAlphais the alpha part of the clear color

Reimplemented from CGUIBitmapPlane.

◆ DoDraw()

void CGUIBitmapPlaneDirectFb::DoDraw ( )
virtual

Draws this BitmapPlane. The Bitmap will be drawn to the current RenderTarget, with the set rotation and position. The set cliprect also applies to this drawing.

Reimplemented from CGUIBitmapPlane.

◆ DrawToBitmap()

virtual eC_Bool CGUIBitmapPlaneDirectFb::DrawToBitmap ( )
protectedvirtual

Called by the framework when the drawing operation into the bitmapplane is about to begin.

Returns
always true

Reimplemented from CGUIBitmapPlane.

◆ DrawToScreen()

virtual eC_Bool CGUIBitmapPlaneDirectFb::DrawToScreen ( )
protectedvirtual

Called by the framework when subsequent drawing operations shall happen on the normal UI screen.

Returns
always true

Reimplemented from CGUIBitmapPlane.

◆ FinishDrawToBitmap()

virtual eC_Bool CGUIBitmapPlaneDirectFb::FinishDrawToBitmap ( )
protectedvirtual

Called by the framework when the drawing operation into the bitmapplane has finished.

Returns
always true

Reimplemented from CGUIBitmapPlane.

◆ SetAlphaValues()

virtual void CGUIBitmapPlaneDirectFb::SetAlphaValues ( const eC_UByte  ubTopLeft,
const eC_UByte  ubBottomLeft,
const eC_UByte  ubBottomRight,
const eC_UByte  ubTopRight 
)
inlinevirtual

Please note: In DirectFB only one alpha value for the whole plane is supported. This implementation takes the value in "ubTopLeft"

Parameters
ubTopLeft
ubBottomLeft
ubBottomRight
ubTopRight

Reimplemented from CGUIBitmapPlane.


The documentation for this class was generated from the following file: