30 #ifndef __CHOP_Spring__
31 #define __CHOP_Spring__
36 #define ARG_SPR_SPRING_CONSTANT (myParmBase + 0)
37 #define ARG_SPR_MASS (myParmBase + 1)
38 #define ARG_SPR_DAMPING_CONSTANT (myParmBase + 2)
39 #define ARG_SPR_METHOD (myParmBase + 3)
40 #define ARG_SPR_GRAB_INITIAL (myParmBase + 4)
41 #define ARG_SPR_INITIAL_DISPLACEMENT (myParmBase + 5)
42 #define ARG_SPR_INITIAL_VELOCITY (myParmBase + 6)
46 namespace HDK_Sample {
128 int myChannelDependent;
static OP_VariablePair myVariablePair
static CH_LocalVariable myVariableList[]
static OP_Node * myConstructor(OP_Network *, const char *, OP_Operator *)
CHOP_Spring(OP_Network *net, const char *name, OP_Operator *op)
#define ARG_SPR_DAMPING_CONSTANT
OP_ERROR cookMyChop(OP_Context &context) override
static OP_TemplatePair myTemplatePair
fpreal evalFloat(int pi, int vi, fpreal t) const
#define ARG_SPR_INITIAL_VELOCITY
bool updateParmsFlags() override
int usesSampleMatch() const override
int usesScope() const override
static PRM_Template myTemplateList[]
OP_Node * getInput(unsigned idx, bool mark_used=false) const
Returns the node connected to a particular input (may be null).
#define ARG_SPR_INITIAL_DISPLACEMENT
GLuint const GLchar * name
ut_RealtimeData * newRealtimeDataBlock(const char *name, const CL_Track *track, fpreal t) override
bool evalVariableValue(UT_String &v, int i, int thread) override
#define ARG_SPR_SPRING_CONSTANT
**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
const char * getTimeSliceExtension() override
void setFloat(int parmi, int vectori, fpreal t, fpreal value, PRM_AddKeyType add_key=PRM_AK_MARK_PENDING)
virtual bool evalVariableValue(UT_String &val, int index, int thread)
#define ARG_SPR_GRAB_INITIAL
exint evalInt(int pi, int vi, fpreal t) const
OP_ERROR cookMySlice(OP_Context &context, int start, int end) override
bool evalVariableValue(fpreal &val, int i, int thread) override
int isSteady() const override