Dtk_KinFixPart represents the fixed part to simulate the mechanism. More...
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) |
Write Dump file for fix part. More... | |
type_detk | get_type_detk () const |
Dtk_KinConstraintPtr | getConstraint () |
Returns the constraint associated to the fixed part. More... | |
int | getId () |
Retrun the fix part id. More... | |
Dtk_string | getName () |
Returns the fix part name. More... | |
Dtk_KinPartPtr | getPart () |
Returns the part fixed. More... | |
virtual Dtk_Size_t | GetSize () const |
void | setConstraint (Dtk_KinConstraintPtr inConstraint) |
Sets the constraint associated to the fixed part. More... | |
void | setId (int inId) |
Sets the fix part id. More... | |
void | setName (Dtk_string inName) |
Sets the fix part name. More... | |
void | setPart (Dtk_KinPartPtr inPart) |
Sets the part fixed. More... | |
Dtk_ErrorStatus | Transform (const Dtk_transfo &inTransfo) |
Static Public Member Functions | |
static Dtk_KinFixPartPtr | Create () |
Base constructor. More... | |
static Dtk_KinFixPart * | DtkDynamicCast (Dtk_Object *s) |
Performs a dynamic cast - doesn't need RTTI -. More... | |
static Dtk_KinFixPartPtr | release (Dtk_KinFixPartPtr inFixPart) |
Delete object. More... | |
Protected Types | |
enum | { _typeID = DTK_TYPE_OBJECT } |
enum | { _typeID = DTK_TYPE_KIN_FIXPART } |
Protected Member Functions | |
void | _copy (const Dtk_Object &s) |
void | _init () |
void | _reset () |
Dtk_KinFixPart () | |
Default constructor. More... | |
Dtk_KinFixPart (const Dtk_KinFixPart &fixPart) | |
Copy constructor. More... | |
~Dtk_KinFixPart () | |
Destructor. More... | |
Protected Attributes | |
Dtk_KinConstraintPtr | _fixcst |
This constraint is defined into the kinematic constraint table. More... | |
Dtk_KinPartPtr | _fixpart |
This part is defined into the kinematic part table. More... | |
int | _ID |
Dtk_string | _name |
unsigned long | count_ |
Friends | |
class | Dtk_SmartPtr< Dtk_KinFixPart > |
Dtk_KinFixPart represents the fixed part to simulate the mechanism.
A fixed part is linked at a mechanism object.
|
protected |
Default constructor.
|
protected |
Copy constructor.
fixPart | the Dtk_KinFixPart to be copied |
|
protected |
Destructor.
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
static |
Base constructor.
|
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_KinFixPart::Dump | ( | FILE * | inFile | ) |
Write Dump file for fix part.
inFile | the output file |
Sample
Result
type_detk Dtk_KinFixPart::get_type_detk | ( | ) | const |
Dtk_KinConstraintPtr Dtk_KinFixPart::getConstraint | ( | ) |
Returns the constraint associated to the fixed part.
int Dtk_KinFixPart::getId | ( | ) |
Retrun the fix part id.
Dtk_string Dtk_KinFixPart::getName | ( | ) |
Returns the fix part name.
Dtk_KinPartPtr Dtk_KinFixPart::getPart | ( | ) |
Returns the part fixed.
|
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.
|
static |
Delete object.
void Dtk_KinFixPart::setConstraint | ( | Dtk_KinConstraintPtr | inConstraint | ) |
Sets the constraint associated to the fixed part.
inConstraint | fix part constraint |
void Dtk_KinFixPart::setId | ( | int | inId | ) |
Sets the fix part id.
inId | fix part id |
void Dtk_KinFixPart::setName | ( | Dtk_string | inName | ) |
Sets the fix part name.
inName | fix part name |
void Dtk_KinFixPart::setPart | ( | Dtk_KinPartPtr | inPart | ) |
Sets the part fixed.
inPart | Part to be fixed |
Dtk_ErrorStatus Dtk_KinFixPart::Transform | ( | const Dtk_transfo & | inTransfo | ) |
|
friend |
|
protected |
This constraint is defined into the kinematic constraint table.
|
protected |
This part is defined into the kinematic part table.
|
protected |
|
protected |
|
protectedinherited |