libdodo: dodo::graphics::draw Class Reference

dodo::graphics::draw Class Reference

provides simple image drawing More...

#include <graphicsDraw.h>

List of all members.

Static Public Member Functions

static void circle (graphics::image &image, const graphics::point &center, unsigned long radius, const __color__ &fillColor, const __color__ &borderColor, unsigned short borderWidth=1)
 draw circle
static void rectangle (graphics::image &image, const graphics::point &tl, const graphics::point &br, const __color__ &fillColor, const __color__ &borderColor, unsigned short borderWidth=1)
 draw rectangle
static void text (graphics::image &image, const graphics::point &position, const dodoString &text, const dodoString &font, unsigned short fontWidth, const __color__ &fillColor=color::black, const __color__ &borderColor=color::black, unsigned short borderWidth=1, double angle=0)
 draw text
static void image (graphics::image &image, const graphics::point &position, const graphics::image &im, double angle=0)
 put image
static void line (graphics::image &image, const dodoArray< graphics::point > &points, const __color__ &lineColor, unsigned short lineWidth=1)
 draw line
static void point (graphics::image &image, const graphics::point &position, const __color__ &pointColor, unsigned short pointWidth=1)
 draw dot

Static Protected Member Functions

static void primitive (graphics::image &image, char *description, const __color__ &fillColor, const __color__ &borderColor, unsigned short borderWidth)
 draw primitive by description

Detailed Description

provides simple image drawing

Note:
for (x;y) == (0;0) it's left upper corner

Definition at line 67 of file graphicsDraw.h.


Member Function Documentation

static void dodo::graphics::draw::circle ( graphics::image image,
const graphics::point center,
unsigned long  radius,
const __color__ fillColor,
const __color__ borderColor,
unsigned short  borderWidth = 1 
) [static]

draw circle

Parameters:
image defines image on which perform drawing
center defines x and y position of circle center
radius defines circle radius
fillColor defines circle fill color
borderColor defines circle border color
borderWidth defines the width of the border of the circle
static void dodo::graphics::draw::image ( graphics::image image,
const graphics::point position,
const graphics::image im,
double  angle = 0 
) [static]

put image

Parameters:
image defines image on which perform drawing
position defines x and y position of text top left corner
im defines image to render
angle defines the deflection angle in degrees of the image relatively to horison
static void dodo::graphics::draw::line ( graphics::image image,
const dodoArray< graphics::point > &  points,
const __color__ lineColor,
unsigned short  lineWidth = 1 
) [static]

draw line

Parameters:
image defines image on which perform drawing
points defines vector of points of the line
lineColor defines line color
lineWidth defines the width of the line
static void dodo::graphics::draw::point ( graphics::image image,
const graphics::point position,
const __color__ pointColor,
unsigned short  pointWidth = 1 
) [static]

draw dot

Parameters:
image defines image on which perform drawing
position defines coordinate of the point
pointColor defines poiny color
pointWidth defines the width of the point
Note:
for point width > 1 point is emulated as a circle, it's possible to get some side-effects
static void dodo::graphics::draw::primitive ( graphics::image image,
char *  description,
const __color__ fillColor,
const __color__ borderColor,
unsigned short  borderWidth 
) [static, protected]

draw primitive by description

Parameters:
image defines image on which perform drawing
description defines primitive description
fillColor defines primitive fill color
borderColor defines primitive border color
borderWidth defines the width of the border of the primitive
static void dodo::graphics::draw::rectangle ( graphics::image image,
const graphics::point tl,
const graphics::point br,
const __color__ fillColor,
const __color__ borderColor,
unsigned short  borderWidth = 1 
) [static]

draw rectangle

Parameters:
image defines image on which perform drawing
tl defines x and y position of rectangle top left corner
br defines x and y position of rectangle bottom right corner
fillColor defines rectangle fill color
borderColor defines rectangle border color
borderWidth defines the width of the border of the rectangle
static void dodo::graphics::draw::text ( graphics::image image,
const graphics::point position,
const dodoString &  text,
const dodoString &  font,
unsigned short  fontWidth,
const __color__ fillColor = color::black,
const __color__ borderColor = color::black,
unsigned short  borderWidth = 1,
double  angle = 0 
) [static]

draw text

Parameters:
image defines image on which perform drawing
position defines x and y position of text top left corner
text defines text to render
font defines font of the text
fontWidth defines font width
fillColor defines text fill color
borderColor defines text border color
borderWidth defines the width of the border of the text
angle defines the deflection angle in degrees of the text relatively to horison

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

Generated on Sun Nov 8 03:44:49 2009 for libdodo by  doxygen 1.6.1