28 #ifndef __CHOP_Stair__
29 #define __CHOP_Stair__
34 namespace HDK_Sample {
36 #define ARG_STAIR_NUMBER "number"
37 #define ARG_STAIR_HEIGHT "height"
38 #define ARG_STAIR_OFFSET "offset"
39 #define ARG_STAIR_DIRECTION "direction"
41 #define ARG_STAIR_NAME "channelname"
42 #define ARG_STAIR_RANGE CHOP_RangeName.getToken()
43 #define ARG_STAIR_START "start"
44 #define ARG_STAIR_END "end"
45 #define ARG_STAIR_RATE CHOP_SampleRateName.getToken()
46 #define ARG_STAIR_LEFT CHOP_ExtendLeftName.getToken()
47 #define ARG_STAIR_RIGHT CHOP_ExtendRightName.getToken()
48 #define ARG_STAIR_DEFAULT CHOP_DefaultValueName.getToken()
void cookMyHandles(OP_Context &context) override
Places the handles along the channels.
#define ARG_STAIR_DIRECTION
GLuint GLsizei const GLchar * label
int usesUnits() override
Returns true because we use the Units parameter.
static CH_LocalVariable myVariableList[]
static OP_TemplatePair myTemplatePair
static OP_VariablePair myVariablePair
OP_ERROR cookMyChop(OP_Context &context) override
Overridden to generate our channel data.
fpreal evalFloat(int pi, int vi, fpreal t) const
int usesScope() const override
Returns true because we want to use the Scope parameter.
#define ARG_STAIR_DEFAULT
bool evalVariableValue(fpreal &v, int index, int thread) override
Stair has some local variables defined, this returns their value.
fpreal shiftStart(fpreal new_offset, fpreal t) override
fpreal handleChanged(CHOP_Handle *handle, CHOP_HandleData *hdata) override
Responds to user changes in any handle.
void evalString(UT_String &val, int pi, int vi, fpreal t) const
GLuint const GLchar * name
bool updateParmsFlags() override
**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
void setFloat(int parmi, int vectori, fpreal t, fpreal value, PRM_AddKeyType add_key=PRM_AK_MARK_PENDING)
void setInt(int parmi, int vectori, fpreal t, exint value)
static OP_Node * myConstructor(OP_Network *, const char *, OP_Operator *)
virtual bool evalVariableValue(UT_String &val, int index, int thread)
CHOP_Stair(OP_Network *net, const char *name, OP_Operator *op)
exint evalInt(int pi, int vi, fpreal t) const
bool evalVariableValue(UT_String &v, int i, int thread) override
static PRM_Template myTemplateList[]
fpreal toUnit(fpreal index, CL_Unit unit=UNIT_NONE, int end_width=0) const