IBSimu 1.0.4
|
Line clipper. More...
#include <lineclip.hpp>
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 () |
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.
LineClip::LineClip | ( | cairo_t * | cairo | ) |
LineClip::~LineClip | ( | ) |
void LineClip::close_path | ( | ) |
void LineClip::curve_to | ( | double | x1, |
double | y1, | ||
double | x2, | ||
double | y2, | ||
double | x3, | ||
double | y3 | ||
) |
void LineClip::fill | ( | ) |
void LineClip::line_to | ( | double | x, |
double | y | ||
) |
void LineClip::move_to | ( | double | x, |
double | y | ||
) |
void LineClip::reset | ( | ) |
void LineClip::set | ( | double | xmin, |
double | ymin, | ||
double | xmax, | ||
double | ymax | ||
) |