LineClip Class Reference
Line clipper.
More...
#include <lineclip.hpp>
List of all members.
Public Member Functions |
| LineClip (cairo_t *cairo) |
| ~LineClip () |
void | set (double xmin, double ymin, double xmax, double ymax) |
void | reset () |
void | move_to (double x, double y) |
void | line_to (double x, double y) |
void | curve_to (double x1, double y1, double x2, double y2, double x3, double y3) |
void | close_path () |
void | fill () |
Detailed Description
Line clipper.
Cairo graphics coordinates are internally handled using fixed point algebra for speed. This causes problems in clipping algorithm when there are large scale differences in coordinates. This class is provided for the user to overcomme this problem by using floating point algebra for line clipping.
Constructor & Destructor Documentation
LineClip::LineClip |
( |
cairo_t * |
cairo |
) |
|
Member Function Documentation
void LineClip::close_path |
( |
|
) |
|
void LineClip::curve_to |
( |
double |
x1, |
|
|
double |
y1, |
|
|
double |
x2, |
|
|
double |
y2, |
|
|
double |
x3, |
|
|
double |
y3 | |
|
) |
| | |
void LineClip::line_to |
( |
double |
x, |
|
|
double |
y | |
|
) |
| | |
void LineClip::move_to |
( |
double |
x, |
|
|
double |
y | |
|
) |
| | |
void LineClip::set |
( |
double |
xmin, |
|
|
double |
ymin, |
|
|
double |
xmax, |
|
|
double |
ymax | |
|
) |
| | |
The documentation for this class was generated from the following file: