Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

ZincPath Class Reference

#include <ZincPath.hpp>

List of all members.


Detailed Description

Path.hpp zinclib

This software is the property of IntuiLab SA, France. See at the end of the file for the complete copyright notice

Here we defines The ZincPath object

08/03/05

Contributors: Benoit Peccatte <peccatte@intuilab.com>


Public Member Functions

 ZincPath (double x, double y)
 ~ZincPath ()
void close ()
void lineTo (double x, double y)
void curveTo (double cx1, double cy1, double cx2, double cy2, double x, double y)
void cubicBezierTo (double cx1, double cy1, double cx2, double cy2, double x, double y)
void quadraticBezierTo (double cx, double cy, double x, double y)
void arcTo (double rx, double ry, double xAxisRotation, bool largeArc, bool sweepFlag, double x, double y)
Tcl_Obj * getTable ()


Constructor & Destructor Documentation

ZincPath::ZincPath double  x,
double  y
 

The public constructor

Parameters:
x,y the initial point

ZincPath::~ZincPath  ) 
 

The public destructor

Warning:
Do not destroy a ZincPath if Zinc is not loaded


Member Function Documentation

void ZincPath::arcTo double  rx,
double  ry,
double  xAxisRotation,
bool  largeArc,
bool  sweepFlag,
double  x,
double  y
 

Draw an arc from current point to x,y

Parameters:
rx x-radius of ellipse
ry y-radius of ellipse
xAxisRotation rotation of ellipse
largeArc true if the large part of the ellipse
sweepFlag true for a positive angle direction for the drawing
x,y destination point

void ZincPath::close  ) 
 

Close current path

void ZincPath::cubicBezierTo double  cx1,
double  cy1,
double  cx2,
double  cy2,
double  x,
double  y
 

Draw a cubic bezier using specified control and destination points

Parameters:
cx1,cy1 first control point
cx2,cy2 second control point
x,y destination point

void ZincPath::curveTo double  cx1,
double  cy1,
double  cx2,
double  cy2,
double  x,
double  y
 

Draw a cubic bezier using specified control and destination points call cubicBezierTo

Parameters:
cx1,cy1 first control point
cx2,cy2 second control point
x,y destination point

Tcl_Obj * ZincPath::getTable  ) 
 

Return a Tcl_Obj* containing a list of coords points It's up to the caller to delete the resulting table

Returns:
a Tcl_Obj* of type list

void ZincPath::lineTo double  x,
double  y
 

Draw a line from current point to next point

Parameters:
x,y next point

void ZincPath::quadraticBezierTo double  cx,
double  cy,
double  x,
double  y
 

Draw a quadratic bezier using specified control and destination point

Parameters:
cx1,cy1 first control point
cx2,cy2 second control point
x,y destination point


The documentation for this class was generated from the following files:
Generated on Mon Apr 18 17:40:45 2005 for IntuiKit by doxygen 1.3.3