11 #ifndef __COP2_ROTOSHAPE_H__
12 #define __COP2_ROTOSHAPE_H__
33 static int getDefaultCurveType();
34 static void getCurveDefaults(
int &comp,
int &
fill,
35 bool &fillout,
float &thick,
int &feather,
36 float &fwidth,
float color[4]);
39 void generateRawCurve(
int rawmode);
45 float t,
int xres,
int yres,
46 int thread,
int max_threads)
override;
52 int &bx2,
int &by2)
override;
59 int NUM_CURVES() {
return evalInt(
"numcurves",0,0); }
60 float LOD(
float t) {
return evalFloat(
"detail",0,t); }
61 void ANTIALIAS(
int &
x,
int &
y,
float t)
62 { x =
evalInt(
"antialias", 0, t);
63 y =
evalInt(
"antialias", 1, t); }
66 int NUM_POINTS(
int curve);
67 int CURVE_TYPE(
int curve);
68 int COMPOSITE(
int curve);
70 bool FILL_OUTSIDE(
int curve);
71 float THICKNESS(
int curve,
float t);
72 bool FEATHER(
int curve);
73 int FEATHER_DROPOFF(
int curve);
74 float FEATHER_WIDTH(
int curve,
float t);
77 void TRANSLATE(
int curve,
float &tx,
float &ty,
float t);
78 void PIVOT(
int curve,
float &px,
float &
py,
float t);
79 void SCALE(
int curve,
float &sx,
float &sy,
float t);
80 float ROTATE(
int curve,
float t);
83 void POINT_POS(
int curve,
int point,
float &
x,
float &
y,
float t);
84 void POINT_SLOPE1(
int curve,
int point,
float &
x,
float &
y,
float t);
85 void POINT_SLOPE2(
int curve,
int point,
float &
x,
float &
y,
float t);
86 float POINT_THICKNESS(
int curve,
int point,
float t);
87 float POINT_FEATHER(
int curve,
int point,
float t);
static OP_VariablePair myVariablePair
virtual OP_ERROR generateTile(COP2_Context &context, TIL_TileList *tilelist)=0
UT_ValArray< cop2_RotoCurve * > myShapes
fpreal evalFloat(int pi, int vi, fpreal t) const
bool updateParmsFlags() override
static OP_TemplatePair myTemplatePair
virtual COP2_ContextData * newContextData(const TIL_Plane *plane, int array_index, float t, int xres, int yres, int thread, int max_threads)
GLuint const GLchar * name
**Note that the tasks the is the thread number *for the or if it s being executed by a non pool thread(this *can happen in cases where the whole pool is occupied and the calling *thread contributes to running the work load).**Thread pool.Have fun
virtual void getGeneratedBounds(COP2_Context &context, int &bx1, int &by1, int &bx2, int &by2)
exint evalInt(int pi, int vi, fpreal t) const