LivarotDefs.h File Reference

Go to the source code of this file.

Classes

struct  one_dash
struct  std_color
struct  grad_stop
struct  lin_grad
struct  rad_grad
struct  gen_color
struct  raster_info

Typedefs

typedef enum bool_op BooleanOp
typedef enum butt_typ ButtType
typedef enum join_typ JoinType
typedef enum fill_typ FillRule
typedef void(* InitColorFunc )(int ph, int pv, void *)
typedef void(* NextPixelColorFunc )(void *)
typedef void(* NextLigneColorFunc )(void *)
typedef void(* GotoPixelColorFunc )(int ph, void *)
typedef void(* GotoLigneColorFunc )(int pv, void *)
typedef void(* RasterInRunFunc )(raster_info &dest, void *data, int nst, float vst, int nen, float ven)

Enumerations

enum  {
  avl_no_err = 0, avl_bal_err = 1, avl_rm_err = 2, avl_ins_err = 3,
  shape_euler_err = 4, shape_input_err = 5, shape_nothing_to_do = 6
}
enum  {
  not_found = 0, found_exact = 1, found_on_left = 2, found_on_right = 3,
  found_between = 4
}
enum  bool_op {
  bool_op_union, bool_op_inters, bool_op_diff, bool_op_symdiff,
  bool_op_cut, bool_op_slice
}
enum  butt_typ { butt_straight, butt_square, butt_round, butt_pointy }
enum  join_typ { join_straight, join_round, join_pointy }
enum  fill_typ { fill_oddEven = 0, fill_nonZero = 1, fill_positive = 2, fill_justDont = 3 }
enum  Side { LEFT = 0, RIGHT = 1 }
enum  FirstOrLast { FIRST = 0, LAST = 1 }

Typedef Documentation

typedef enum bool_op BooleanOp

Definition at line 63 of file LivarotDefs.h.

typedef enum butt_typ ButtType

Definition at line 80 of file LivarotDefs.h.

typedef enum fill_typ FillRule

Definition at line 90 of file LivarotDefs.h.

typedef void(* GotoLigneColorFunc)(int pv, void *)

Definition at line 152 of file LivarotDefs.h.

typedef void(* GotoPixelColorFunc)(int ph, void *)

Definition at line 151 of file LivarotDefs.h.

typedef void(* InitColorFunc)(int ph, int pv, void *)

Definition at line 146 of file LivarotDefs.h.

typedef enum join_typ JoinType

Definition at line 81 of file LivarotDefs.h.

typedef void(* NextLigneColorFunc)(void *)

Definition at line 149 of file LivarotDefs.h.

typedef void(* NextPixelColorFunc)(void *)

Definition at line 148 of file LivarotDefs.h.

typedef void(* RasterInRunFunc)(raster_info &dest, void *data, int nst, float vst, int nen, float ven)

Definition at line 173 of file LivarotDefs.h.


Enumeration Type Documentation

anonymous enum
Enumerator:
avl_no_err 
avl_bal_err 
avl_rm_err 
avl_ins_err 
shape_euler_err 
shape_input_err 
shape_nothing_to_do 

Definition at line 29 of file LivarotDefs.h.

00030 {
00031   avl_no_err = 0,       // 0 is the error code for "everything OK"
00032   avl_bal_err = 1,
00033   avl_rm_err = 2,
00034   avl_ins_err = 3,
00035   shape_euler_err = 4,      // computations result in a non-eulerian graph, thus the function cannot do a proper polygon
00036   // despite the rounding sheme, this still happen with uber-complex graphs
00037   // note that coordinates are stored in double => double precision for the computation is not even
00038   // enough to get exact results (need quadruple precision, i think).
00039   shape_input_err = 5,      // the function was given an incorrect input (not a polygon, or not eulerian)
00040   shape_nothing_to_do = 6       // the function had nothing to do (zero offset, etc)
00041 };

anonymous enum
Enumerator:
not_found 
found_exact 
found_on_left 
found_on_right 
found_between 

Definition at line 44 of file LivarotDefs.h.

00045 {
00046   not_found = 0,
00047   found_exact = 1,
00048   found_on_left = 2,
00049   found_on_right = 3,
00050   found_between = 4
00051 };

enum bool_op
Enumerator:
bool_op_union 
bool_op_inters 
bool_op_diff 
bool_op_symdiff 
bool_op_cut 
bool_op_slice 

Definition at line 54 of file LivarotDefs.h.

00055 {
00056   bool_op_union,        // A OR B
00057   bool_op_inters,       // A AND B
00058   bool_op_diff,         // A \ B
00059   bool_op_symdiff,  // A XOR B
00060   bool_op_cut,      // coupure (pleines)
00061   bool_op_slice     // coupure (contour)
00062 };

enum butt_typ
Enumerator:
butt_straight 
butt_square 
butt_round 
butt_pointy 

Definition at line 66 of file LivarotDefs.h.

00067 {
00068   butt_straight,        // straight line
00069   butt_square,          // half square
00070   butt_round,           // half circle
00071   butt_pointy           // a little pointy hat
00072 };

enum fill_typ
Enumerator:
fill_oddEven 
fill_nonZero 
fill_positive 
fill_justDont 

Definition at line 83 of file LivarotDefs.h.

00084 {
00085   fill_oddEven   = 0,
00086   fill_nonZero   = 1,
00087   fill_positive  = 2,
00088   fill_justDont = 3
00089 };

Enumerator:
FIRST 
LAST 

Definition at line 181 of file LivarotDefs.h.

00181                  {
00182     FIRST = 0,
00183     LAST = 1
00184 };

enum join_typ
Enumerator:
join_straight 
join_round 
join_pointy 

Definition at line 74 of file LivarotDefs.h.

00075 {
00076   join_straight,        // a straight line
00077   join_round,           // arc of circle (in fact, one or two quadratic bezier curve chunks)
00078   join_pointy           // a miter join (uses the miter parameter)
00079 };

enum Side
Enumerator:
LEFT 
RIGHT 

Definition at line 176 of file LivarotDefs.h.

00176           {
00177     LEFT = 0,
00178     RIGHT = 1
00179 };