9 #ifndef lgrDisArtPart_H_
10 #define lgrDisArtPart_H_
18 #include <vlpi/artPartSpec.h>
23 class DtLgrArtPartList;
55 virtual bool setUsingParam(
int paramType,
bool yesNo =
true );
56 virtual bool usingParam(
int paramType )
const;
61 virtual bool setParamValue(
int paramType,
float value );
62 virtual bool paramValue(
int paramType,
float& value )
const;
65 virtual int numParams()
const;
68 inline void setPartType(
int val );
69 inline int partType()
const;
72 inline void setPartNum(
int val );
73 inline int partNum()
const;
76 inline void setPartAttachedTo(
int val );
77 inline int partAttachedTo()
const;
80 virtual int firstValidParamType()
const;
83 virtual int nextValidParamType(
int paramType )
const;
87 virtual void print( DtString& str );
91 static bool artParamIsRate(
int paramType );
93 static int computePartType(
int partPlusParam );
95 static int computeParameterType(
int partPlusParam );
98 float myParamVals[DtMAX_PARAMS_PER_PART+1];
unsigned int myParamSetMask
Definition: lgrDisArtPart.h:99
Instances of DtLgrArtPartList are used to manage articulated parts.
Definition: lgrDisArtPartList.h:31
Defines IMPORT/EXPORT macros for lgrSim library.
#define DT_DLL_LGRSIM
Definition: lgrSim.h:21
int partAttachedTo() const
Definition: lgrDisArtPart.h:136
int myPartNum
Definition: lgrDisArtPart.h:101
Instances of "DtLgrArtPart" are used by DtLgrArtPartList to handle individual articulated parts (i...
Definition: lgrDisArtPart.h:29
int myPartType
Definition: lgrDisArtPart.h:100
void setPartAttachedTo(int val)
Set/Get the part this part is attached to.
Definition: lgrDisArtPart.h:130
int partNum() const
Definition: lgrDisArtPart.h:124
int myPartAttachedTo
Definition: lgrDisArtPart.h:102
void setPartType(int val)
Set/Get the part type.
Definition: lgrDisArtPart.h:106
int partType() const
Definition: lgrDisArtPart.h:112
void setPartNum(int val)
Set/Get the part number.
Definition: lgrDisArtPart.h:118