Dtk_KinCommand represents a command to simulate a mechanism. More...
 Inheritance diagram for Dtk_KinCommand:Public Member Functions | |
| 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) | 
| Write Dump file for command.  More... | |
| type_detk | get_type_detk () const | 
| int | getId () | 
| Returns the command id.  More... | |
| Dtk_KinJointPtr | getJoint () | 
| Returns the joint associated at command.  More... | |
| Dtk_string | getName () | 
| Returns the command name.  More... | |
| Dtk_KinParameterPtr | getParameter () | 
| Returns the parameter associated at command.  More... | |
| virtual Dtk_Size_t | GetSize () const | 
| COMMAND_TYPE | getType () | 
| Returns the command type.  More... | |
| double | getValue () | 
| Returns the value of the command for simulation.  More... | |
| Dtk_bool | isEqual (Dtk_KinCommandPtr inCommand) | 
| Test if 2 Dtk_KinCommand are equal.  More... | |
| Dtk_bool | operator== (Dtk_KinCommand &inCommand) | 
| Test if 2 Dtk_KinCommand are equal.  More... | |
| void | setId (int inId) | 
| Sets the command id.  More... | |
| void | setJoint (Dtk_KinJointPtr inJoint) | 
| Sets the joint associated at command.  More... | |
| void | setName (Dtk_string inName) | 
| Sets the command name.  More... | |
| void | setParameter (Dtk_KinParameterPtr inParam) | 
| Sets the parameter command.  More... | |
| void | setType (int inType) | 
| Sets the type of the command.  More... | |
| void | setValue (double inValue) | 
| Sets the command value.  More... | |
| Dtk_ErrorStatus | Transform (const Dtk_transfo &inTransfo) | 
Static Public Member Functions | |
| static Dtk_KinCommandPtr | Create () | 
| Calls default constructor to allocate a new object.  More... | |
| static Dtk_KinCommand * | DtkDynamicCast (Dtk_Object *s) | 
| Performs a dynamic cast - doesn't need RTTI -.  More... | |
| static Dtk_KinCommandPtr | release (Dtk_KinCommandPtr inCommand) | 
| Delete object.  More... | |
Protected Types | |
| enum | { _typeID = DTK_TYPE_OBJECT } | 
| enum | { _typeID = DTK_TYPE_KIN_COMMAND } | 
Protected Member Functions | |
| Dtk_KinCommand () | |
| Default constructor.  More... | |
| Dtk_KinCommand (const Dtk_KinCommand &cmd) | |
| Copy constructor.  More... | |
| ~Dtk_KinCommand () | |
| Destructor.  More... | |
Protected Attributes | |
| int | _ID | 
| Dtk_KinJointPtr | _joint | 
| This joint belongs at the kinematic joint table.  More... | |
| Dtk_string | _name | 
| Dtk_KinParameterPtr | _parameter | 
| COMMAND_TYPE | _type | 
| double | _value | 
| unsigned long | count_ | 
Dtk_KinCommand represents a command to simulate a mechanism.
A command is linked at a kinematic object and a mechanism object.
      
  | 
  protected | 
Default constructor.
      
  | 
  protected | 
Copy constructor.
| cmd | the Dtk_KinCommand to be copied | 
      
  | 
  protected | 
Destructor.
      
  | 
  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_KinCommand::Dump | ( | FILE * | inFile, | 
| Dtk_bool | simplified | ||
| ) | 
Write Dump file for command.
| inFile | the output file | 
| simplified | determine if you write a simplified file | 
Sample
Result (simplified = true)
Result (simplified = false)
| type_detk Dtk_KinCommand::get_type_detk | ( | ) | const | 
| int Dtk_KinCommand::getId | ( | ) | 
Returns the command id.
| Dtk_KinJointPtr Dtk_KinCommand::getJoint | ( | ) | 
Returns the joint associated at command.
| Dtk_string Dtk_KinCommand::getName | ( | ) | 
Returns the command name.
| Dtk_KinParameterPtr Dtk_KinCommand::getParameter | ( | ) | 
Returns the parameter associated at command.
      
  | 
  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.
| COMMAND_TYPE Dtk_KinCommand::getType | ( | ) | 
Returns the command type.
| double Dtk_KinCommand::getValue | ( | ) | 
Returns the value of the command for simulation.
| Dtk_bool Dtk_KinCommand::isEqual | ( | Dtk_KinCommandPtr | inCommand | ) | 
Test if 2 Dtk_KinCommand are equal.
Compare the id attribute.
| inCommand | Dtk_KinCommand to be tested | 
| Dtk_bool Dtk_KinCommand::operator== | ( | Dtk_KinCommand & | inCommand | ) | 
Test if 2 Dtk_KinCommand are equal.
Compare the id attribute.
| inCommand | Dtk_KinCommand to be tested | 
      
  | 
  static | 
Delete object.
| void Dtk_KinCommand::setId | ( | int | inId | ) | 
Sets the command id.
| inId | command id | 
| void Dtk_KinCommand::setJoint | ( | Dtk_KinJointPtr | inJoint | ) | 
Sets the joint associated at command.
| inJoint | Joint command | 
| void Dtk_KinCommand::setName | ( | Dtk_string | inName | ) | 
Sets the command name.
| inName | command name | 
| void Dtk_KinCommand::setParameter | ( | Dtk_KinParameterPtr | inParam | ) | 
Sets the parameter command.
| inParam | Parameter command | 
| void Dtk_KinCommand::setType | ( | int | inType | ) | 
Sets the type of the command.
| inType | type of the command | 
| void Dtk_KinCommand::setValue | ( | double | inValue | ) | 
Sets the command value.
| inValue | Command value | 
| Dtk_ErrorStatus Dtk_KinCommand::Transform | ( | const Dtk_transfo & | inTransfo | ) | 
      
  | 
  protected | 
      
  | 
  protected | 
This joint belongs at the kinematic joint table.
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected | 
type command:
      
  | 
  protected | 
      
  | 
  protectedinherited |