Miroslaw K. / Graphics

Dependents:   RadarDemo 3DDemo RadarDemoT

Embed: (wiki syntax)

« Back to documentation index

Display Class Reference

Display Class Reference

Generic display definition class. More...

#include <Display.h>

Inherits DisplayBase, and GeometricPrim.

Inherited by Canvas, and RK043FN48H.

Public Member Functions

 Display ()
 Initializes a new instance of the Display class.
 ~Display ()
 Finalizes an instance of the Display class.
virtual void DrawText (int posX, int posY, char *str)=0
 Draws the text using actual font type and size.
virtual uint16_t DisplayWidth ()=0
 Returns screen width.
virtual uint16_t DisplayHeight ()=0
 Redurns screen height.
virtual void SetDrawColor (uint8_t red, uint8_t green, uint8_t blue, uint8_t alpha)=0
 Sets the color of the foreground.
virtual void SetClearColor (uint8_t red, uint8_t green, uint8_t blue, uint8_t alpha)=0
 Sets the color of the background.
virtual void Clear ()=0
 Clears the display.
virtual void DrawLine (int startX, int startY, int endX, int endY)
 Draws the line.
virtual void DrawCircle (int posX, int posY, uint16_t radius)
 Draws the circle.
virtual void DrawRectangle (int startX, int startY, int endX, int endY)
 Draws the rectangle.
virtual void DrawTriangle (int x1, int y1, int x2, int y2, int x3, int y3)
 Draws the triangle.
virtual void DrawPoint (int posX, int posY, uint32_t colorMask)=0
 Draws the point.

Detailed Description

Generic display definition class.

See also:
DisplayBase, GeometricPrim

Definition at line 28 of file Display.h.


Constructor & Destructor Documentation

Display (  )

Initializes a new instance of the Display class.

Definition at line 8 of file Display.cpp.

~Display (  )

Finalizes an instance of the Display class.

Definition at line 13 of file Display.cpp.


Member Function Documentation

virtual void Clear (  ) [pure virtual, inherited]

Clears the display.

Implemented in Canvas, and RK043FN48H.

virtual uint16_t DisplayHeight (  ) [pure virtual, inherited]

Redurns screen height.

Returns:

Implemented in Canvas, and RK043FN48H.

virtual uint16_t DisplayWidth (  ) [pure virtual, inherited]

Returns screen width.

Returns:

Implemented in Canvas, and RK043FN48H.

void DrawCircle ( int  posX,
int  posY,
uint16_t  radius 
) [virtual, inherited]

Draws the circle.

Parameters:
posXThe position x.
posYThe position y.
radiusThe radius.

Definition at line 59 of file GeometricPrim.cpp.

void DrawLine ( int  startX,
int  startY,
int  endX,
int  endY 
) [virtual, inherited]

Draws the line.

Parameters:
startXThe start x.
startYThe start y.
endXThe end x.
endYThe end y.

Definition at line 20 of file GeometricPrim.cpp.

virtual void DrawPoint ( int  posX,
int  posY,
uint32_t  colorMask 
) [pure virtual, inherited]

Draws the point.

Parameters:
posXThe position x.
posYThe position y.
colorMaskThe color mask.
void DrawRectangle ( int  startX,
int  startY,
int  endX,
int  endY 
) [virtual, inherited]

Draws the rectangle.

Parameters:
startXThe start x.
startYThe start y.
endXThe end x.
endYThe end y.

Definition at line 103 of file GeometricPrim.cpp.

virtual void DrawText ( int  posX,
int  posY,
char *  str 
) [pure virtual]

Draws the text using actual font type and size.

Parameters:
posXThe position x.
posYThe position y.
strThe string.

Implemented in Canvas, and RK043FN48H.

void DrawTriangle ( int  x1,
int  y1,
int  x2,
int  y2,
int  x3,
int  y3 
) [virtual, inherited]

Draws the triangle.

Parameters:
x1The x1.
y1The y1.
x2The x2.
y2The y2.
x3The x3.
y3The y3.

Definition at line 112 of file GeometricPrim.cpp.

virtual void SetClearColor ( uint8_t  red,
uint8_t  green,
uint8_t  blue,
uint8_t  alpha 
) [pure virtual, inherited]

Sets the color of the background.

Parameters:
redThe red.
greenThe green.
blueThe blue.
alphaThe alpha.

Implemented in Canvas, and RK043FN48H.

virtual void SetDrawColor ( uint8_t  red,
uint8_t  green,
uint8_t  blue,
uint8_t  alpha 
) [pure virtual, inherited]

Sets the color of the foreground.

Parameters:
redThe red.
greenThe green.
blueThe blue.
alphaThe alpha.

Implemented in Canvas, and RK043FN48H.