Miroslaw K. / Graphics

Dependents:   RadarDemo 3DDemo RadarDemoT

Embed: (wiki syntax)

« Back to documentation index

GeometricPrim Class Reference

GeometricPrim Class Reference

Geometric primitives class. More...

#include <GeometricPrim.h>

Inherits GeometricPrimBase.

Inherited by Display.

Public Member Functions

 GeometricPrim ()
 Initializes a new instance of the GeometricPrim class.
 ~GeometricPrim ()
 Finalizes an instance of the GeometricPrim class.
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

Geometric primitives class.

See also:
GeometricPrimBase

Definition at line 26 of file GeometricPrim.h.


Constructor & Destructor Documentation

Initializes a new instance of the GeometricPrim class.

Definition at line 10 of file GeometricPrim.cpp.

~GeometricPrim (  )

Finalizes an instance of the GeometricPrim class.

Definition at line 15 of file GeometricPrim.cpp.


Member Function Documentation

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

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]

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]

Draws the rectangle.

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

Definition at line 103 of file GeometricPrim.cpp.

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

Draws the triangle.

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

Definition at line 112 of file GeometricPrim.cpp.