Dtk_Kinematic represents a kinematic. More...
Public Member Functions | |
virtual Dtk_ErrorStatus | _Store (void *) |
void | addCommand (Dtk_KinCommandPtr inCommand) |
Add inCommand at the command table. More... | |
void | addConstraint (Dtk_KinConstraintPtr inConstraint) |
Add inConstraint at the constraint table. More... | |
void | addJoint (Dtk_KinJointPtr inJoint) |
Add inJoint at the joint table. More... | |
void | addMechanism (Dtk_KinMechanismPtr inMechanism) |
Add inMechanism at the mechanism table. More... | |
void | addParameter (Dtk_KinParameterPtr inParameter) |
Add inParameter at the parameter table. More... | |
void | addPart (Dtk_KinPartPtr inPart) |
Adds inPart at the part table. More... | |
Dtk_Int32 | DtkDynamicType (const Dtk_Int32 &inId) |
Retrieves the dynamic entity type. More... | |
int | DtkDynamicType (const int &inId) |
virtual void | dump (FILE *file=stdout) |
Dtk_status | Dump (FILE *inFile, Dtk_bool initXml=1) |
Write Dump file for kinematic. More... | |
Dtk_InfoPtr | get_info () const |
type_detk | get_type_detk () const |
Dtk_KinCommandPtr | getCommand (Dtk_Size_t pos) |
Returns Dtk_KinCommand at position inPos. More... | |
int | getCommandPosition (Dtk_KinCommandPtr inCommand) |
Returns the position of the command. More... | |
Dtk_Size_t | getCommandSize () |
Return the attribute tab size. More... | |
Dtk_KinConstraintPtr | getConstraint (Dtk_Size_t pos) |
Returns Dtk_KinConstraint at position inPos. More... | |
int | getConstraintPosition (Dtk_KinConstraintPtr inConstraint) |
Returns the position of the constraint. More... | |
Dtk_Size_t | getConstraintSize () |
Return the attribute tab size. More... | |
const Dtk_ID & | GetID () const |
Get Internal UniqueID. More... | |
Dtk_KinJointPtr | getJoint (Dtk_Size_t pos) |
Returns Dtk_KinJoint at position inPos. More... | |
int | getJointPosition (Dtk_KinJointPtr inJoint) |
Returns the position of the joint. More... | |
Dtk_Size_t | getJointSize () |
Return the attribute tab size. More... | |
Dtk_KinMechanismPtr | getMechanism (Dtk_Size_t pos) |
Returns Dtk_KinMechanism at position inPos. More... | |
Dtk_KinMechanismPtr | getMechanismByCommand (Dtk_KinCommandPtr inCOmmand) |
Returns the mechanism associated at command inCommand. More... | |
Dtk_KinMechanismPtr | getMechanismByJoint (Dtk_KinJointPtr inJoint) |
Returns the mechanism associated at joint inJoint. More... | |
Dtk_KinMechanismPtr | getMechanismBySpeedAcceleration (Dtk_KinSpeedAccelerationPtr inSpeed) |
Returns the mechanism associated at speed/acceleration inSpeed. More... | |
int | getMechanismPosition (Dtk_KinMechanismPtr inMecha) |
Returns the position of the mechanism. More... | |
Dtk_Size_t | getMechanismSize () |
Return the mechanism tab size. More... | |
Dtk_KinParameterPtr | getParameter (Dtk_Size_t pos) |
Returns Dtk_KinParameter at position inPos. More... | |
int | getParameterPosition (Dtk_KinParameterPtr inPara) |
Returns the position of the parameter. More... | |
Dtk_Size_t | getParameterSize () |
Return the parameter tab size. More... | |
Dtk_KinPartPtr | getPart (Dtk_Size_t pos) |
Returns Dtk_KinPart at position inPos. More... | |
Dtk_KinPartPtr | getPartByInstanceName (Dtk_string &inName) |
Returns the part by it instanceName attribute. More... | |
Dtk_KinPartPtr | getPartByNumChild (int inNumChild) |
Returns the part by it numChild attribute. More... | |
int | getPartPosition (Dtk_KinPartPtr inPart) |
Returns the position of the part. More... | |
int | getPartPositionByNumChild (Dtk_KinPartPtr inPart) |
Returns the position of the part that have the same numChild attribut. More... | |
Dtk_Size_t | getPartSize () |
Returns the part tab size. More... | |
Dtk_KinProductPtr | getProduct () |
Sets the product object represented all element compound the CATProduct file. More... | |
virtual Dtk_Size_t | GetSize () const |
Dtk_bool | hasCommand (Dtk_KinCommandPtr inCommand) |
Test if a command belong at the command table. More... | |
Dtk_bool | hasConstraint (Dtk_KinConstraintPtr inConstraint) |
Test if a constraint belong at the constraint table. More... | |
Dtk_bool | hasJoint (Dtk_KinJointPtr inJoint) |
Test if a joint belong at the joint table. More... | |
Dtk_bool | hasMechanism (Dtk_KinMechanismPtr inMechanism) |
Test if a mechanism belong at the mechanism table. More... | |
Dtk_bool | hasParameter (Dtk_KinParameterPtr inParameter) |
Test if a parameter belong at the parameter table. More... | |
Dtk_bool | hasPart (Dtk_KinPartPtr inPart) |
Test if a part belong at the part table. More... | |
Dtk_InfoPtr & | info () |
virtual void | PrepareTransfo () |
void | setProduct (Dtk_KinProductPtr inProd) |
Sets the product object represented all element compound the CATProduct file. More... | |
Dtk_ErrorStatus | Transform (const Dtk_transfo &inTransfo) |
Static Public Member Functions | |
static Dtk_KinematicPtr | Create () |
Base constructor. More... | |
static Dtk_Kinematic * | DtkDynamicCast (Dtk_Object *s) |
Performs a dynamic cast - doesn't need RTTI -. More... | |
static Dtk_KinematicPtr | release (Dtk_KinematicPtr inKinematic) |
Delete object. More... | |
Protected Types | |
enum | { _typeID = DTK_TYPE_OBJECT } |
enum | { _typeID = DTK_TYPE_ENTITY } |
enum | { _typeID = DTK_TYPE_KINEMATIC } |
Protected Member Functions | |
void | _copy (const Dtk_Entity &s) |
void | _copy (const Dtk_Object &s) |
void | _init () |
void | _reset () |
virtual Dtk_Object * | Clone () |
Dtk_Kinematic () | |
Default constructor of a generic Kinematics More... | |
Dtk_Kinematic (const Dtk_Kinematic &kinematics) | |
Copy constructor. More... | |
~Dtk_Kinematic () | |
Default destructor of a generic Kinematics. More... | |
Protected Attributes | |
Dtk_KinCommandTab | _commands |
All commands referenced into another object, are defined at this table. More... | |
Dtk_KinConstraintTab | _constraints |
All constraints referenced into another object, are defined at this table. More... | |
Dtk_KinJointTab | _joints |
All joints referenced into another object, are defined at this table. More... | |
Dtk_KinMechanismTab | _mechanisms |
All mechanisms defined a kinematic. More... | |
Dtk_KinParameterTab | _parameters |
Parameter can be used for law. More... | |
Dtk_KinPartTab | _parts |
All parts referenced into another object, are defined at this table. More... | |
Dtk_Handle * | _Private |
Dtk_KinProductPtr | _product |
Tree representation for the component (additional of part table) More... | |
unsigned long | count_ |
Friends | |
class | Dtk_SmartPtr< Dtk_Kinematic > |
Dtk_Kinematic represents a kinematic.
|
protected |
Default constructor of a generic Kinematics
[in/out] | ||
[out] | <br> |
|
protected |
Copy constructor.
mecha | the Dtk_Kinematic to be copied |
|
protected |
Default destructor of a generic Kinematics.
[in/out] | ||
[out] | <br> |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
virtualinherited |
Reimplemented in Dtk_Shell, Dtk_Body, Dtk_Lump, Dtk_Volume, Dtk_Face, Dtk_Loop, Dtk_Coedge, Dtk_Edge, Dtk_Vertex, 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, and Dtk_Point.
void Dtk_Kinematic::addCommand | ( | Dtk_KinCommandPtr | inCommand | ) |
Add inCommand at the command table.
inCommand | command to be added |
If the command table doesn't contain inCommand, inCommand is added
void Dtk_Kinematic::addConstraint | ( | Dtk_KinConstraintPtr | inConstraint | ) |
Add inConstraint at the constraint table.
inConstraint | constraint to be added |
If the constraint table doesn't contain inConstraint, inConstraint is added
void Dtk_Kinematic::addJoint | ( | Dtk_KinJointPtr | inJoint | ) |
Add inJoint at the joint table.
inJoint | joint to be added |
If the joint table doesn't contain inJoint, inJoint is added
void Dtk_Kinematic::addMechanism | ( | Dtk_KinMechanismPtr | inMechanism | ) |
Add inMechanism at the mechanism table.
inMechanism | mechanism to be added |
If the mechanism table doesn't contain inMechanism, inMechanism is added
void Dtk_Kinematic::addParameter | ( | Dtk_KinParameterPtr | inParameter | ) |
Add inParameter at the parameter table.
inParameter | parameter to be added |
If the parameter table doesn't contain inParameter, inParameter is added
void Dtk_Kinematic::addPart | ( | Dtk_KinPartPtr | inPart | ) |
Adds inPart at the part table.
inPart | part to be added |
If the part table doesn't contain inPart, inPart is added
|
protectedvirtual |
Implements Dtk_Entity.
|
static |
Base constructor.
|
static |
Performs a dynamic cast - doesn't need RTTI -.
Retrieves the dynamic entity type.
|
virtualinherited |
Implements Dtk_Object.
Reimplemented in Dtk_Shell, Dtk_Body, Dtk_Lump, Dtk_Volume, Dtk_Face, Dtk_Loop, Dtk_Coedge, Dtk_Edge, Dtk_Vertex, Dtk_TopologicalEntity, 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, and Dtk_AxisSystem.
|
virtualinherited |
Dtk_status Dtk_Kinematic::Dump | ( | FILE * | inFile, |
Dtk_bool | initXml = 1 |
||
) |
Write Dump file for kinematic.
inFile | the output file |
Sample
Result
|
inherited |
|
virtual |
Dtk_KinCommandPtr Dtk_Kinematic::getCommand | ( | Dtk_Size_t | pos | ) |
Returns Dtk_KinCommand at position inPos.
inPos | position of element |
If position is out bounds returns NULL
int Dtk_Kinematic::getCommandPosition | ( | Dtk_KinCommandPtr | inCommand | ) |
Returns the position of the command.
inCommand | command required |
Returns -1 if the command doesn't found
Dtk_Size_t Dtk_Kinematic::getCommandSize | ( | ) |
Return the attribute tab size.
Dtk_KinConstraintPtr Dtk_Kinematic::getConstraint | ( | Dtk_Size_t | pos | ) |
Returns Dtk_KinConstraint at position inPos.
inPos | position of element |
If position is out bounds returns
int Dtk_Kinematic::getConstraintPosition | ( | Dtk_KinConstraintPtr | inConstraint | ) |
Returns the position of the constraint.
inConstraint | Constraint required |
Returns -1 if the constraint doesn't found
Dtk_Size_t Dtk_Kinematic::getConstraintSize | ( | ) |
Return the attribute tab size.
|
inherited |
Get Internal UniqueID.
Dtk_KinJointPtr Dtk_Kinematic::getJoint | ( | Dtk_Size_t | pos | ) |
Returns Dtk_KinJoint at position inPos.
inPos | position of element |
If position is out bounds returns
int Dtk_Kinematic::getJointPosition | ( | Dtk_KinJointPtr | inJoint | ) |
Returns the position of the joint.
inJoint | Joint required |
Returns -1 if the joint doesn't found
Dtk_Size_t Dtk_Kinematic::getJointSize | ( | ) |
Return the attribute tab size.
Dtk_KinMechanismPtr Dtk_Kinematic::getMechanism | ( | Dtk_Size_t | pos | ) |
Returns Dtk_KinMechanism at position inPos.
inPos | position of element |
If position is out bounds returns
Dtk_KinMechanismPtr Dtk_Kinematic::getMechanismByCommand | ( | Dtk_KinCommandPtr | inCOmmand | ) |
Returns the mechanism associated at command inCommand.
Dtk_KinMechanismPtr Dtk_Kinematic::getMechanismByJoint | ( | Dtk_KinJointPtr | inJoint | ) |
Returns the mechanism associated at joint inJoint.
Dtk_KinMechanismPtr Dtk_Kinematic::getMechanismBySpeedAcceleration | ( | Dtk_KinSpeedAccelerationPtr | inSpeed | ) |
Returns the mechanism associated at speed/acceleration inSpeed.
int Dtk_Kinematic::getMechanismPosition | ( | Dtk_KinMechanismPtr | inMecha | ) |
Returns the position of the mechanism.
inMecha | Mechanism required |
Returns -1 if the mechanism doesn't found
Dtk_Size_t Dtk_Kinematic::getMechanismSize | ( | ) |
Return the mechanism tab size.
Dtk_KinParameterPtr Dtk_Kinematic::getParameter | ( | Dtk_Size_t | pos | ) |
Returns Dtk_KinParameter at position inPos.
inPos | position of element |
If position is out bounds returns
int Dtk_Kinematic::getParameterPosition | ( | Dtk_KinParameterPtr | inPara | ) |
Returns the position of the parameter.
inPara | Parameter required |
Returns -1 if the parameter doesn't found
Dtk_Size_t Dtk_Kinematic::getParameterSize | ( | ) |
Return the parameter tab size.
Dtk_KinPartPtr Dtk_Kinematic::getPart | ( | Dtk_Size_t | pos | ) |
Returns Dtk_KinPart at position inPos.
inPos | position of element |
If position is out bounds returns NULL
Dtk_KinPartPtr Dtk_Kinematic::getPartByInstanceName | ( | Dtk_string & | inName | ) |
Returns the part by it instanceName attribute.
Dtk_KinPartPtr Dtk_Kinematic::getPartByNumChild | ( | int | inNumChild | ) |
Returns the part by it numChild attribute.
int Dtk_Kinematic::getPartPosition | ( | Dtk_KinPartPtr | inPart | ) |
Returns the position of the part.
inPart | Part required |
Returns -1 if the part doesn't found
int Dtk_Kinematic::getPartPositionByNumChild | ( | Dtk_KinPartPtr | inPart | ) |
Returns the position of the part that have the same numChild attribut.
inPart | Part required |
Returns -1 if the part doesn't found
Dtk_Size_t Dtk_Kinematic::getPartSize | ( | ) |
Returns the part tab size.
Dtk_KinProductPtr Dtk_Kinematic::getProduct | ( | ) |
Sets the product object represented all element compound the CATProduct file.
|
virtualinherited |
Reimplemented from Dtk_Object.
Reimplemented in Dtk_Shell, Dtk_Body, Dtk_Lump, Dtk_Volume, Dtk_Face, Dtk_Loop, Dtk_Coedge, Dtk_Edge, Dtk_Vertex, 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, and Dtk_Point.
Dtk_bool Dtk_Kinematic::hasCommand | ( | Dtk_KinCommandPtr | inCommand | ) |
Test if a command belong at the command table.
inCommand | command to be tested |
Dtk_bool Dtk_Kinematic::hasConstraint | ( | Dtk_KinConstraintPtr | inConstraint | ) |
Test if a constraint belong at the constraint table.
inConstraint | Constraint to be tested |
Dtk_bool Dtk_Kinematic::hasJoint | ( | Dtk_KinJointPtr | inJoint | ) |
Test if a joint belong at the joint table.
inJoint | Joint to be tested |
Dtk_bool Dtk_Kinematic::hasMechanism | ( | Dtk_KinMechanismPtr | inMechanism | ) |
Test if a mechanism belong at the mechanism table.
inMechanism | mechanism to be tested |
Dtk_bool Dtk_Kinematic::hasParameter | ( | Dtk_KinParameterPtr | inParameter | ) |
Test if a parameter belong at the parameter table.
inParameter | parameter to be tested |
Dtk_bool Dtk_Kinematic::hasPart | ( | Dtk_KinPartPtr | inPart | ) |
Test if a part belong at the part table.
inPart | Part to be tested |
|
inherited |
|
virtualinherited |
Reimplemented in Dtk_OffsetSurface.
|
static |
Delete object.
void Dtk_Kinematic::setProduct | ( | Dtk_KinProductPtr | inProd | ) |
Sets the product object represented all element compound the CATProduct file.
|
virtual |
Implements Dtk_Entity.
|
friend |
|
protected |
All commands referenced into another object, are defined at this table.
|
protected |
All constraints referenced into another object, are defined at this table.
|
protected |
All joints referenced into another object, are defined at this table.
|
protected |
All mechanisms defined a kinematic.
|
protected |
Parameter can be used for law.
|
protected |
All parts referenced into another object, are defined at this table.
|
protectedinherited |
|
protected |
Tree representation for the component (additional of part table)
|
protectedinherited |