ionflux.org | Impressum

Ionflux::Tools::Canvas Class Reference
[General tools]

Drawing canvas. More...

#include <Canvas.hpp>

Inheritance diagram for Ionflux::Tools::Canvas:

Inheritance graph
[legend]
Collaboration diagram for Ionflux::Tools::Canvas:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Canvas ()
 Constructor.
virtual ~Canvas ()
 Destructor.
virtual void drawLine (double x1, double y1, double x2, double y2, double width=0.0, const Color *color=0, Matrix3 *transform=0)=0
 Draw line.
virtual void drawRectangle (double x, double y, double width, double height, double strokeWidth=0.0, const Color *strokeColor=0, const Color *fillColor=0, Matrix3 *transform=0)=0
 Draw rectangle.
virtual void drawArc (double x, double y, double width, double height, double angle1, double angle2, double strokeWidth=0.0, const Color *strokeColor=0, const Color *fillColor=0, Matrix3 *transform=0)=0
 Draw arc.
virtual void drawArcEc (double xc, double yc, double radius, double angle1, double angle2, double eccentricity=0.0, double strokeWidth=0.0, const Color *strokeColor=0, const Color *fillColor=0, Matrix3 *transform=0)=0
 Draw arc.
virtual void drawEllipse (double x, double y, double width, double height, double strokeWidth=0.0, const Color *strokeColor=0, const Color *fillColor=0, Matrix3 *transform=0)=0
 Draw ellipse.
virtual void drawEllipseEc (double xc, double yc, double radius, double eccentricity=0.0, double strokeWidth=0.0, const Color *strokeColor=0, const Color *fillColor=0, Matrix3 *transform=0)=0
 Draw ellipse.
virtual void drawCircle (double xc, double yc, double radius, double strokeWidth=0.0, const Color *strokeColor=0, const Color *fillColor=0, Matrix3 *transform=0)=0
 Draw circle.
virtual void drawCurve (double x1, double y1, double x2, double y2, double x3, double y3, double strokeWidth=0.0, const Color *color=0, Matrix3 *transform=0)=0
 Draw curve.
virtual void drawText (double x, double y, const std::string &text, const std::string &fontFamily="", double fontSize=0.0, const Color *color=0, Matrix3 *transform=0)=0
 Draw text.
virtual void setDefaultStrokeColor (const Color &newDefaultStrokeColor)
 Set default stroke color.
virtual void setDefaultFillColor (const Color &newDefaultFillColor)
 Set default fill color.
virtual void setDefaultStrokeWidth (double newDefaultStrokeWidth)
 Set default stroke width.
virtual void setDefaultFontFamily (const std::string &newDefaultFontFamily)
 Set default font family.
virtual void setDefaultFontSize (double newDefaultFontSize)
 Set default font size.
virtual void setDefaultTransform (Matrix3 *newDefaultTransform)
 Set default transform matrix.
virtual Color getDefaultStrokeColor () const
 Get default stroke color.
virtual Color getDefaultFillColor () const
 Get default fill color.
virtual double getDefaultStrokeWidth () const
 Get default stroke width.
virtual std::string getDefaultFontFamily () const
 Get default font family.
virtual double getDefaultFontSize () const
 Get default font size.
virtual Matrix3getDefaultTransform () const
 Get default transform matrix.

Protected Attributes

Color defaultStrokeColor
 Default stroke color.
Color defaultFillColor
 Default fill color.
double defaultStrokeWidth
 Default stroke width.
std::string defaultFontFamily
 Default font family.
double defaultFontSize
 Default font size.
Matrix3defaultTransform
 Default transform matrix.

Detailed Description

Drawing canvas.

Abstract base class for objects which process drawing operations.


Constructor & Destructor Documentation

Ionflux::Tools::Canvas::Canvas  ) 
 

Constructor.

Construct new Canvas object.

Ionflux::Tools::Canvas::~Canvas  )  [virtual]
 

Destructor.

Destruct Canvas object.


Member Function Documentation

virtual void Ionflux::Tools::Canvas::drawArc double  x,
double  y,
double  width,
double  height,
double  angle1,
double  angle2,
double  strokeWidth = 0.0,
const Color strokeColor = 0,
const Color fillColor = 0,
Matrix3 transform = 0
[pure virtual]
 

Draw arc.

Draw an arc.

Parameters:
x x coordinate.
y y coordinate.
width Width.
height Height.
angle1 Angle 1.
angle2 Angle 2.
strokeWidth Stroke width.
strokeColor Stroke color.
fillColor Fill color.
transform Transform matrix.

Implemented in Ionflux::Tools::CairoCanvas.

virtual void Ionflux::Tools::Canvas::drawArcEc double  xc,
double  yc,
double  radius,
double  angle1,
double  angle2,
double  eccentricity = 0.0,
double  strokeWidth = 0.0,
const Color strokeColor = 0,
const Color fillColor = 0,
Matrix3 transform = 0
[pure virtual]
 

Draw arc.

Draw an arc with specified eccentricity.

Parameters:
xc x center.
yc y center.
radius Radius.
angle1 Angle 1.
angle2 Angle 2.
eccentricity Eccentricity.
strokeWidth Stroke width.
strokeColor Stroke color.
fillColor Fill color.
transform Transform matrix.

Implemented in Ionflux::Tools::CairoCanvas.

virtual void Ionflux::Tools::Canvas::drawCircle double  xc,
double  yc,
double  radius,
double  strokeWidth = 0.0,
const Color strokeColor = 0,
const Color fillColor = 0,
Matrix3 transform = 0
[pure virtual]
 

Draw circle.

Draw a circle.

Parameters:
xc x center.
yc y center.
radius Radius.
strokeWidth Stroke width.
strokeColor Stroke color.
fillColor Fill color.
transform Transform matrix.

Implemented in Ionflux::Tools::CairoCanvas.

virtual void Ionflux::Tools::Canvas::drawCurve double  x1,
double  y1,
double  x2,
double  y2,
double  x3,
double  y3,
double  strokeWidth = 0.0,
const Color color = 0,
Matrix3 transform = 0
[pure virtual]
 

Draw curve.

Draw a curve.

Parameters:
x1 x1 coordinate.
y1 y1 coordinate.
x2 x2 coordinate.
y2 y2 coordinate.
x3 x3 coordinate.
y3 y3 coordinate.
strokeWidth Stroke width.
color Stroke color.
transform Transform matrix.

Implemented in Ionflux::Tools::CairoCanvas.

virtual void Ionflux::Tools::Canvas::drawEllipse double  x,
double  y,
double  width,
double  height,
double  strokeWidth = 0.0,
const Color strokeColor = 0,
const Color fillColor = 0,
Matrix3 transform = 0
[pure virtual]
 

Draw ellipse.

Draw an ellipse.

Parameters:
x x coordinate.
y y coordinate.
width Width.
height Height.
strokeWidth Stroke width.
strokeColor Stroke color.
fillColor Fill color.
transform Transform matrix.

Implemented in Ionflux::Tools::CairoCanvas.

virtual void Ionflux::Tools::Canvas::drawEllipseEc double  xc,
double  yc,
double  radius,
double  eccentricity = 0.0,
double  strokeWidth = 0.0,
const Color strokeColor = 0,
const Color fillColor = 0,
Matrix3 transform = 0
[pure virtual]
 

Draw ellipse.

Draw an ellipse.

Parameters:
xc x center.
yc y center.
radius Radius.
eccentricity Eccentricity.
strokeWidth Stroke width.
strokeColor Stroke color.
fillColor Fill color.
transform Transform matrix.

Implemented in Ionflux::Tools::CairoCanvas.

virtual void Ionflux::Tools::Canvas::drawLine double  x1,
double  y1,
double  x2,
double  y2,
double  width = 0.0,
const Color color = 0,
Matrix3 transform = 0
[pure virtual]
 

Draw line.

Draw a line.

Parameters:
x1 x1 coordinate.
y1 y1 coordinate.
x2 x2 coordinate.
y2 y2 coordinate.
width Stroke width.
color Stroke color.
transform Transform matrix.

Implemented in Ionflux::Tools::CairoCanvas.

virtual void Ionflux::Tools::Canvas::drawRectangle double  x,
double  y,
double  width,
double  height,
double  strokeWidth = 0.0,
const Color strokeColor = 0,
const Color fillColor = 0,
Matrix3 transform = 0
[pure virtual]
 

Draw rectangle.

Draw a rectangle.

Parameters:
x x coordinate.
y y coordinate.
width Width.
height Height.
strokeWidth Stroke width.
strokeColor Stroke color.
fillColor Fill color.
transform Transform matrix.

Implemented in Ionflux::Tools::CairoCanvas.

virtual void Ionflux::Tools::Canvas::drawText double  x,
double  y,
const std::string &  text,
const std::string &  fontFamily = "",
double  fontSize = 0.0,
const Color color = 0,
Matrix3 transform = 0
[pure virtual]
 

Draw text.

Draw a text.

Parameters:
x x coordinate.
y y coordinate.
text Text.
fontFamily Font family.
fontSize Font size.
color Color.
transform Transform matrix.

Implemented in Ionflux::Tools::CairoCanvas.

Color Ionflux::Tools::Canvas::getDefaultFillColor  )  const [virtual]
 

Get default fill color.

Returns:
Current value of default fill color.

std::string Ionflux::Tools::Canvas::getDefaultFontFamily  )  const [virtual]
 

Get default font family.

Returns:
Current value of default font family.

double Ionflux::Tools::Canvas::getDefaultFontSize  )  const [virtual]
 

Get default font size.

Returns:
Current value of default font size.

Color Ionflux::Tools::Canvas::getDefaultStrokeColor  )  const [virtual]
 

Get default stroke color.

Returns:
Current value of default stroke color.

double Ionflux::Tools::Canvas::getDefaultStrokeWidth  )  const [virtual]
 

Get default stroke width.

Returns:
Current value of default stroke width.

Matrix3 * Ionflux::Tools::Canvas::getDefaultTransform  )  const [virtual]
 

Get default transform matrix.

Returns:
Current value of default transform matrix.

void Ionflux::Tools::Canvas::setDefaultFillColor const Color newDefaultFillColor  )  [virtual]
 

Set default fill color.

Set new value of default fill color.

Parameters:
newDefaultFillColor New value of default fill color.

void Ionflux::Tools::Canvas::setDefaultFontFamily const std::string &  newDefaultFontFamily  )  [virtual]
 

Set default font family.

Set new value of default font family.

Parameters:
newDefaultFontFamily New value of default font family.

void Ionflux::Tools::Canvas::setDefaultFontSize double  newDefaultFontSize  )  [virtual]
 

Set default font size.

Set new value of default font size.

Parameters:
newDefaultFontSize New value of default font size.

void Ionflux::Tools::Canvas::setDefaultStrokeColor const Color newDefaultStrokeColor  )  [virtual]
 

Set default stroke color.

Set new value of default stroke color.

Parameters:
newDefaultStrokeColor New value of default stroke color.

void Ionflux::Tools::Canvas::setDefaultStrokeWidth double  newDefaultStrokeWidth  )  [virtual]
 

Set default stroke width.

Set new value of default stroke width.

Parameters:
newDefaultStrokeWidth New value of default stroke width.

void Ionflux::Tools::Canvas::setDefaultTransform Matrix3 newDefaultTransform  )  [virtual]
 

Set default transform matrix.

Set new value of default transform matrix.

Parameters:
newDefaultTransform New value of default transform matrix.


Member Data Documentation

Color Ionflux::Tools::Canvas::defaultFillColor [protected]
 

Default fill color.

std::string Ionflux::Tools::Canvas::defaultFontFamily [protected]
 

Default font family.

double Ionflux::Tools::Canvas::defaultFontSize [protected]
 

Default font size.

Color Ionflux::Tools::Canvas::defaultStrokeColor [protected]
 

Default stroke color.

double Ionflux::Tools::Canvas::defaultStrokeWidth [protected]
 

Default stroke width.

Matrix3* Ionflux::Tools::Canvas::defaultTransform [protected]
 

Default transform matrix.


The documentation for this class was generated from the following files:
Generated on Tue Mar 14 21:07:35 2006 for Ionflux Tools Class Library (iftools) by  doxygen 1.4.6