11 #ifndef __COP2_RAMP_H__
12 #define __COP2_RAMP_H__
16 struct cop2_RampPoint;
21 #define ARG_RAMP_TYPE (myParmBase + 0)
22 #define ARG_RAMP_INTERPOLATION (myParmBase + 1)
23 #define ARG_RAMP_CYCLES (myParmBase + 2)
24 #define ARG_RAMP_PHASE (myParmBase + 3)
25 #define ARG_RAMP_ROTATION (myParmBase + 4)
26 #define ARG_RAMP_CENTER (myParmBase + 5)
27 #define ARG_RAMP_WRAP (myParmBase + 6)
28 #define ARG_RAMP_REPEAT (myParmBase + 7)
29 #define ARG_RAMP_NUM_POINTS (myParmBase + 8)
42 void getRampColor(
float col[4],
float pos,
float t);
51 float t,
int xres,
int yres,
53 int max_threads)
override;
65 float *d1,
float *d2,
float *d3,
float *d4,
66 int x1,
int y1,
int x2,
int y2);
69 float *d1,
float *d2,
float *d3,
float *d4,
70 int x1,
int y1,
int x2,
int y2);
73 float *d1,
float *d2,
float *d3,
float *d4,
74 int x1,
int y1,
int x2,
int y2,
float cx,
float cy);
77 float *d1,
float *d2,
float *d3,
float *d4,
78 int x1,
int y1,
int x2,
int y2,
82 float *d1,
float *d2,
float *d3,
float *d4,
83 int x1,
int y1,
int x2,
int y2,
84 float rot,
float cx,
float cy);
88 float *,
float *,
float *,
float *);
93 bool WRAP_FIRST_LAST()
99 float NUM_CYCLES(
float t)
105 float ROTATION(
float t)
108 void CENTER(
float &
x,
float &
y,
float t)
118 bool POINT_ENABLE(
int index);
119 float POINT_POS(
int index,
float t);
120 void POINT_COLOR(
int index,
float color[4],
float t);
121 int INTERPOLATION(
int index);
132 { myRamp[0] = myRamp[1] = myRamp[2] = myRamp[3] = 0; }
135 {
delete [] myRamp[0];
delete [] myRamp[1];
136 delete [] myRamp[2];
delete [] myRamp[3]; }
138 void blendRamp(
int index, cop2_RampPoint *p1, cop2_RampPoint *p2,
static OP_TemplatePair myTemplatePair
GLdouble GLdouble GLint GLint const GLdouble * points
virtual OP_ERROR generateTile(COP2_Context &context, TIL_TileList *tilelist)=0
#define ARG_RAMP_NUM_POINTS
GA_API const UT_StringHolder rot
fpreal evalFloat(int pi, int vi, fpreal t) const
bool updateParmsFlags() override
virtual const char * getOperationInfo()
vint4 blend(const vint4 &a, const vint4 &b, const vbool4 &mask)
GA_API const UT_StringHolder scale
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
static OP_VariablePair myVariablePair
**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
#define ARG_RAMP_INTERPOLATION
#define ARG_RAMP_ROTATION
~cop2_RampData() override
exint evalInt(int pi, int vi, fpreal t) const
GLdouble GLdouble GLdouble y2