Dtk_KinConstraint represents a constraint to define a joint. More...
 Inheritance diagram for Dtk_KinConstraint:Public Member Functions | |
| void | addAttribute (Dtk_string inAttribute) | 
| Add inAttribute at the attribute table.  More... | |
| void | addConnector (Dtk_KinConnectorPtr inConnector) | 
| Add a connector at the connector 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) | 
| Write Dump file for constraint.  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... | |
| Dtk_KinConnectorPtr | getConnector (Dtk_Size_t inPosition) | 
| Returns the connector at inPosition.  More... | |
| Dtk_Size_t | getConnectorSize () | 
| Return the attribute tab size.  More... | |
| int | getId () | 
| Retrun the constraint id.  More... | |
| int | getModeInteger () | 
| Returns the Dtk_KinParameter represents the mode integer.  More... | |
| Dtk_string | getName () | 
| Returns the constraint name.  More... | |
| Dtk_KinParameterPtr | getOrientation () | 
| Returns the Dtk_KinParameter represents the orientation.  More... | |
| Dtk_transfo | getPosition () | 
| Returns the part position.  More... | |
| Dtk_KinParameterPtr | getReference () | 
| Returns the Dtk_KinParameter represents the reference.  More... | |
| virtual Dtk_Size_t | GetSize () const | 
| Dtk_KinParameterPtr | getValue () | 
| Returns the Dtk_KinParameter represents the constraint value.  More... | |
| Dtk_bool | hasAttribute (Dtk_string inAttributeName) | 
| Test if an attribute name belong at the attribute table.  More... | |
| Dtk_bool | isEqual (Dtk_KinConstraintPtr inConstraint) | 
| Test if 2 Dtk_KinConstraint is equal.  More... | |
| Dtk_bool | operator== (Dtk_KinConstraint &inConstraint) | 
| Test if 2 Dtk_KinConstraint is equal.  More... | |
| void | replaceConnector (Dtk_Size_t inPosition, Dtk_KinConnectorPtr inConnector) | 
| Replace the connector at position inPosition by the connector inConnector.  More... | |
| void | setId (int inId) | 
| Sets the constraint id.  More... | |
| void | setModeInteger (int inMode) | 
| Sets the parameter for mode integer.  More... | |
| void | setName (Dtk_string inName) | 
| Sets the constraint name.  More... | |
| void | setOrientation (Dtk_KinParameterPtr inParam) | 
| Sets the parameter for orientation.  More... | |
| void | setPosition (Dtk_transfo transfo) | 
| Sets the part position.  More... | |
| void | setReference (Dtk_KinParameterPtr inParam) | 
| Sets the parameter for reference attribute.  More... | |
| void | setValue (Dtk_KinParameterPtr inParam) | 
| Sets the parameter for value.  More... | |
| Dtk_ErrorStatus | Transform (const Dtk_transfo &inTransfo) | 
Static Public Member Functions | |
| static Dtk_KinConstraintPtr | Create () | 
| Calls default constructor to allocate a new object.  More... | |
| static Dtk_KinConstraint * | DtkDynamicCast (Dtk_Object *s) | 
| Performs a dynamic cast - doesn't need RTTI -.  More... | |
| static Dtk_KinConstraintPtr | release (Dtk_KinConstraintPtr inPart) | 
| Delete object.  More... | |
Data Fields | |
| Dtk_string | _MODE_INTEGER | 
| Name for optional attribute.  More... | |
| Dtk_string | _ORIENTATION | 
| Name for optional attribute.  More... | |
| Dtk_string | _POSITION | 
| Name for optional attribute.  More... | |
| Dtk_string | _REFERENCE | 
| Name for optional attribute.  More... | |
| Dtk_string | _VALUE | 
| Name for optional attribute.  More... | |
Protected Types | |
| enum | { _typeID = DTK_TYPE_OBJECT } | 
| enum | { _typeID = DTK_TYPE_KIN_CONSTRAINT } | 
Protected Member Functions | |
| Dtk_KinConstraint () | |
| Default constructor.  More... | |
| Dtk_KinConstraint (const Dtk_KinConstraint &constraint) | |
| Copy constructor.  More... | |
| ~Dtk_KinConstraint () | |
| Destructor.  More... | |
Protected Attributes | |
| Dtk_StringTab | _attributeTable | 
| Contains the names of the defining optional attributes forced.  More... | |
| Dtk_KinConnectorTab | _connectors | 
| int | _ID | 
| int | _modeInteger | 
| Optional attribute (offset constraint)  More... | |
| Dtk_string | _name | 
| Dtk_KinParameterPtr | _orientation | 
| Optional attribute (offset constraint)  More... | |
| Dtk_transfo | _position | 
| Optional attribute (fix constraint)  More... | |
| Dtk_KinParameterPtr | _reference | 
| Optional attribute (fix constraint)  More... | |
| Dtk_KinParameterPtr | _value | 
| Optional attribute (offset constraint)  More... | |
| unsigned long | count_ | 
Dtk_KinConstraint represents a constraint to define a joint.
Constraints types:
A constraint is linked at a kinematic object and a joint object.
      
  | 
  protected | 
Default constructor.
      
  | 
  protected | 
Copy constructor.
| constraint | the Dtk_KinConstraint to be copied | 
      
  | 
  protected | 
Destructor.
| void Dtk_KinConstraint::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 attribut table
| void Dtk_KinConstraint::addConnector | ( | Dtk_KinConnectorPtr | inConnector | ) | 
Add a connector at the connector table.
| inConnector | the connector to be added | 
The connector is added if connector table doesn't contain this connector
      
  | 
  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_KinConstraint::Dump | ( | FILE * | inFile, | 
| Dtk_bool | simplified | ||
| ) | 
Write Dump file for constraint.
| inFile | the output file | 
| simplified | determine if you write a simplified file | 
Sample
Result (simplified = true)
Result (simplified = false)
 All attributes are represented. Some attributes could not appear into out file. 
| type_detk Dtk_KinConstraint::get_type_detk | ( | ) | const | 
| Dtk_string Dtk_KinConstraint::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_KinConstraint::getAttributeSize | ( | ) | 
Return the attribute tab size.
| Dtk_KinConnectorPtr Dtk_KinConstraint::getConnector | ( | Dtk_Size_t | inPosition | ) | 
Returns the connector at inPosition.
| inPosition | position of the connector | 
If position is out bounds, returns NULL.
| Dtk_Size_t Dtk_KinConstraint::getConnectorSize | ( | ) | 
Return the attribute tab size.
| int Dtk_KinConstraint::getId | ( | ) | 
Retrun the constraint id.
| int Dtk_KinConstraint::getModeInteger | ( | ) | 
Returns the Dtk_KinParameter represents the mode integer.
| Dtk_string Dtk_KinConstraint::getName | ( | ) | 
Returns the constraint name.
| Dtk_KinParameterPtr Dtk_KinConstraint::getOrientation | ( | ) | 
Returns the Dtk_KinParameter represents the orientation.
| Dtk_transfo Dtk_KinConstraint::getPosition | ( | ) | 
Returns the part position.
| Dtk_KinParameterPtr Dtk_KinConstraint::getReference | ( | ) | 
Returns the Dtk_KinParameter represents the reference.
      
  | 
  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_KinParameterPtr Dtk_KinConstraint::getValue | ( | ) | 
Returns the Dtk_KinParameter represents the constraint value.
| Dtk_bool Dtk_KinConstraint::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_KinConstraint::isEqual | ( | Dtk_KinConstraintPtr | inConstraint | ) | 
Test if 2 Dtk_KinConstraint is equal.
Compare the id attribute.
| inPart | Dtk_KinConstraint to be tested | 
| Dtk_bool Dtk_KinConstraint::operator== | ( | Dtk_KinConstraint & | inConstraint | ) | 
Test if 2 Dtk_KinConstraint is equal.
Compare the id attribute.
| inPart | Dtk_KinConstraint to be tested | 
      
  | 
  static | 
Delete object.
| void Dtk_KinConstraint::replaceConnector | ( | Dtk_Size_t | inPosition, | 
| Dtk_KinConnectorPtr | inConnector | ||
| ) | 
Replace the connector at position inPosition by the connector inConnector.
| void Dtk_KinConstraint::setId | ( | int | inId | ) | 
Sets the constraint id.
| inId | constraint id | 
| void Dtk_KinConstraint::setModeInteger | ( | int | inMode | ) | 
Sets the parameter for mode integer.
| inMode | mode integer | 
The MODE_INTEGER name is added at attribute table.
| void Dtk_KinConstraint::setName | ( | Dtk_string | inName | ) | 
Sets the constraint name.
| inName | constraint name | 
| void Dtk_KinConstraint::setOrientation | ( | Dtk_KinParameterPtr | inParam | ) | 
Sets the parameter for orientation.
| inParam | orientation | 
The ORIENTATION name is added at attribute table.
| void Dtk_KinConstraint::setPosition | ( | Dtk_transfo | transfo | ) | 
Sets the part position.
| transfo | Postion of the part | 
The POSITION name is added at attribute table
| void Dtk_KinConstraint::setReference | ( | Dtk_KinParameterPtr | inParam | ) | 
Sets the parameter for reference attribute.
| inParam | reference attribute | 
The REFERENCE name is added at attribute table
| void Dtk_KinConstraint::setValue | ( | Dtk_KinParameterPtr | inParam | ) | 
Sets the parameter for value.
| inParam | value | 
The VALUE name is added at attribute table.
| Dtk_ErrorStatus Dtk_KinConstraint::Transform | ( | const Dtk_transfo & | inTransfo | ) | 
      
  | 
  protected | 
Contains the names of the defining optional attributes forced.
      
  | 
  protected | 
      
  | 
  protected | 
| Dtk_string Dtk_KinConstraint::_MODE_INTEGER | 
Name for optional attribute.
      
  | 
  protected | 
Optional attribute (offset constraint)
      
  | 
  protected | 
| Dtk_string Dtk_KinConstraint::_ORIENTATION | 
Name for optional attribute.
      
  | 
  protected | 
Optional attribute (offset constraint)
| Dtk_string Dtk_KinConstraint::_POSITION | 
Name for optional attribute.
      
  | 
  protected | 
Optional attribute (fix constraint)
| Dtk_string Dtk_KinConstraint::_REFERENCE | 
Name for optional attribute.
      
  | 
  protected | 
Optional attribute (fix constraint)
| Dtk_string Dtk_KinConstraint::_VALUE | 
Name for optional attribute.
      
  | 
  protected | 
Optional attribute (offset constraint)
      
  | 
  protectedinherited |