Dtk_KinParameter represents a kinematic parameter. More...
Inheritance diagram for Dtk_KinParameter:Public Member Functions | |
| void | addAttribute (Dtk_string inAttribute) |
| Add inAttribute at the attribute table. More... | |
| Dtk_Int32 | DtkDynamicType (const Dtk_Int32 &inId) |
| Retrieves the dynamic entity type. More... | |
| virtual int | DtkDynamicType (const int &inId)=0 |
| virtual void | dump (FILE *file=stdout) |
| Dtk_status | Dump (FILE *inFile, Dtk_bool simplified=DTK_FALSE) |
| Write Dump file for parameter. More... | |
| type_detk | get_type_detk () const |
| Dtk_string | getAttribute (Dtk_Size_t inPosition) |
| Returns Dtk_string at position inPosition. More... | |
| Dtk_Size_t | getAttributeSize () |
| Return the attribute tab size. More... | |
| int | getId () |
| Retrun the parameter id. More... | |
| Dtk_string | getName () |
| Returns the parameter name. More... | |
| Dtk_KinNamedValuePtr | getNamedValue () |
| Returns the named value associated at the parameter. More... | |
| void * | getParentElement () |
| Returns the parent element. More... | |
| DTK_KINEMATIC_TYPE | getParentType () |
| Returns the node parent type of this parameter (joint, command or mechanism) More... | |
| double | getRange (int inPosition) |
| Get the range value at position inPosition. More... | |
| virtual Dtk_Size_t | GetSize () const |
| Dtk_bool | hasAttribute (Dtk_string inAttributeName) |
| Test if an attribute name belong at the attribute table. More... | |
| Dtk_bool | isEqual (Dtk_KinParameterPtr inParam) |
| Test if 2 Dtk_KinParameter is equal. More... | |
| void | setId (int inId) |
| Sets the parameter id. More... | |
| void | setName (Dtk_string inName) |
| Sets the parameter name. More... | |
| void | setNamedValue (Dtk_KinNamedValuePtr inAtt) |
| Sets the named value to be associated at parameter. More... | |
| void | setParentElement (void *inParent) |
| Sets the parent element. More... | |
| void | setParentType (DTK_KINEMATIC_TYPE inType) |
| Sets the type of the node parent. More... | |
| void | setRange (double inRange[4]) |
| Sets the range attribute of the parameter. More... | |
| void | setRange (double inValue, int inPosition) |
| Sets the inValue of range attribute at inPosition. More... | |
| Dtk_ErrorStatus | Transform (const Dtk_transfo &inTransfo) |
Static Public Member Functions | |
| static Dtk_KinParameterPtr | Create () |
| Calls default constructor to allocate a new object. More... | |
| static Dtk_KinParameter * | DtkDynamicCast (Dtk_Object *s) |
| Performs a dynamic cast - doesn't need RTTI -. More... | |
| static Dtk_KinParameterPtr | release (Dtk_KinParameterPtr inParameter) |
| Delete object. More... | |
Data Fields | |
| Dtk_string | _RANGE |
| Name for optional attribute. More... | |
Protected Types | |
| enum | { _typeID = DTK_TYPE_OBJECT } |
| enum | { _typeID = DTK_TYPE_KIN_PARAMETER } |
Protected Member Functions | |
| Dtk_KinParameter () | |
| Default constructor. More... | |
| Dtk_KinParameter (const Dtk_KinParameter ¶m) | |
| Copy constructor. More... | |
| ~Dtk_KinParameter () | |
| Destructor. More... | |
Protected Attributes | |
| Dtk_StringTab | _attributeList |
| int | _ID |
| Dtk_string | _name |
| Dtk_KinNamedValuePtr | _namedValue |
| void * | _parentNode |
| DTK_KINEMATIC_TYPE | _parentType |
| double | _range [4] |
| Optional attribute for KinTime parameter. More... | |
| unsigned long | count_ |
Dtk_KinParameter represents a kinematic parameter.
A parameter references a named value.
|
protected |
Default constructor.
|
protected |
Copy constructor.
| param | the Dtk_KinParameter to be copied |
|
protected |
Destructor.
| void Dtk_KinParameter::addAttribute | ( | Dtk_string | inAttribute | ) |
Add inAttribute at the attribute table.
| inAttribute | Attribute name to be added |
If the attribute table doesn't contain inAttribute, add inAttribute at the attribute table
|
static |
Calls default constructor to allocate a new object.
|
static |
Performs a dynamic cast - doesn't need RTTI -.
Retrieves the dynamic entity type.
|
pure virtualinherited |
Implemented in Dtk_Shell, Dtk_Body, Dtk_Lump, Dtk_Volume, Dtk_Face, Dtk_Loop, Dtk_Coedge, Dtk_Edge, Dtk_Vertex, Dtk_TopologicalEntity, Dtk_MeshPolyline, Dtk_MeshSurface, Dtk_TransformedSurface, Dtk_FilletSurface, Dtk_OffsetSurface, Dtk_SphericalSurface, Dtk_ToroidalSurface, Dtk_ConicalSurface, Dtk_CylindricalSurface, Dtk_RuledSurface, Dtk_LinearExtrusionSurface, Dtk_StandardRevolutionSurface, Dtk_RevolutionSurface, Dtk_PlaneSurface, Dtk_NurbsSurface, Dtk_Surface, Dtk_Hyperbola, Dtk_Parabola, Dtk_Ellipse, Dtk_Conic, Dtk_Line, Dtk_Polyline, Dtk_NurbsCurve, Dtk_Curve, Dtk_Point, Dtk_Constraint, Dtk_ConstraintReference, Dtk_AxisSystem, Dtk_Preview, Dtk_Entity, Dtk_picture, Dtk_OverrideSet, Dtk_OverrideInfo, Dtk_MainDoc, Dtk_Component, Dtk_Node, Dtk_DocElement, Dtk_Log, and Dtk_Properties.
|
virtualinherited |
| Dtk_status Dtk_KinParameter::Dump | ( | FILE * | inFile, |
| Dtk_bool | simplified = DTK_FALSE |
||
| ) |
Write Dump file for parameter.
| inFile | the output file |
Sample
Result simplified = false
Result simplified = true
| type_detk Dtk_KinParameter::get_type_detk | ( | ) | const |
| Dtk_string Dtk_KinParameter::getAttribute | ( | Dtk_Size_t | inPosition | ) |
Returns Dtk_string at position inPosition.
| inPosition | position of element |
If position is out bounds, returns Dtk_string()
| Dtk_Size_t Dtk_KinParameter::getAttributeSize | ( | ) |
Return the attribute tab size.
| int Dtk_KinParameter::getId | ( | ) |
Retrun the parameter id.
| Dtk_string Dtk_KinParameter::getName | ( | ) |
Returns the parameter name.
| Dtk_KinNamedValuePtr Dtk_KinParameter::getNamedValue | ( | ) |
Returns the named value associated at the parameter.
| void* Dtk_KinParameter::getParentElement | ( | ) |
Returns the parent element.
| DTK_KINEMATIC_TYPE Dtk_KinParameter::getParentType | ( | ) |
Returns the node parent type of this parameter (joint, command or mechanism)
| double Dtk_KinParameter::getRange | ( | int | inPosition | ) |
Get the range value at position inPosition.
| inPosition | Position |
|
virtualinherited |
Reimplemented in Dtk_Shell, Dtk_Body, Dtk_Lump, Dtk_Volume, Dtk_Face, Dtk_Loop, Dtk_Coedge, Dtk_Edge, Dtk_Vertex, Dtk_mesh_face, Dtk_mesh, Dtk_TransformedSurface, Dtk_FilletSurface, Dtk_OffsetSurface, Dtk_SphericalSurface, Dtk_ToroidalSurface, Dtk_ConicalSurface, Dtk_CylindricalSurface, Dtk_RuledSurface, Dtk_LinearExtrusionSurface, Dtk_StandardRevolutionSurface, Dtk_RevolutionSurface, Dtk_PlaneSurface, Dtk_NurbsSurface, Dtk_Surface, Dtk_Hyperbola, Dtk_Parabola, Dtk_Ellipse, Dtk_Conic, Dtk_Line, Dtk_Polyline, Dtk_NurbsCurve, Dtk_Curve, Dtk_Point, Dtk_Entity, and Dtk_Info.
| Dtk_bool Dtk_KinParameter::hasAttribute | ( | Dtk_string | inAttributeName | ) |
Test if an attribute name belong at the attribute table.
| inAtributeName | Name of attribute |
The attribute table contains names of optional attribute used. The attribute name is defined with static variable.
| Dtk_bool Dtk_KinParameter::isEqual | ( | Dtk_KinParameterPtr | inParam | ) |
Test if 2 Dtk_KinParameter is equal.
Compare the id attributes.
| inParam | Dtk_KinParameter to be tested |
|
static |
Delete object.
| void Dtk_KinParameter::setId | ( | int | inId | ) |
Sets the parameter id.
| inId | parameter id |
| void Dtk_KinParameter::setName | ( | Dtk_string | inName | ) |
Sets the parameter name.
| inName | parameter name |
| void Dtk_KinParameter::setNamedValue | ( | Dtk_KinNamedValuePtr | inAtt | ) |
Sets the named value to be associated at parameter.
| inAtt | named value |
| void Dtk_KinParameter::setParentElement | ( | void * | inParent | ) |
Sets the parent element.
| inParent | parent element |
| void Dtk_KinParameter::setParentType | ( | DTK_KINEMATIC_TYPE | inType | ) |
Sets the type of the node parent.
| inType | Type o the node parent |
| void Dtk_KinParameter::setRange | ( | double | inRange[4] | ) |
Sets the range attribute of the parameter.
| inRange | the range table |
The RANGE name is added at attribute table.
| void Dtk_KinParameter::setRange | ( | double | inValue, |
| int | inPosition | ||
| ) |
Sets the inValue of range attribute at inPosition.
| inValue | the value for range at position |
| inPosition | position for the value |
The RANGE name is added at attribute table.
| Dtk_ErrorStatus Dtk_KinParameter::Transform | ( | const Dtk_transfo & | inTransfo | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| Dtk_string Dtk_KinParameter::_RANGE |
Name for optional attribute.
|
protected |
Optional attribute for KinTime parameter.
|
protectedinherited |