Dtk_KinFormula represents the formula defined the law. 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 formula. More... | |
type_detk | get_type_detk () const |
Dtk_string | getComment () |
Returns the formula comment. More... | |
Dtk_string | getFormula () |
Returns the formula. More... | |
int | getId () |
Returns the formula id. More... | |
Dtk_string | getName () |
Returns the formula name. More... | |
Dtk_string | getParam () |
Returns the formula parameter. More... | |
virtual Dtk_Size_t | GetSize () const |
void | setComment (Dtk_string inComment) |
Sets the formula comment. More... | |
void | setFormula (Dtk_string inFormula) |
Sets the formula. More... | |
void | setId (int inId) |
Sets the formula id. More... | |
void | setName (Dtk_string inName) |
Sets the formula name. More... | |
void | setParam (Dtk_string inParam) |
Sets the formula parameter. More... | |
Dtk_ErrorStatus | Transform (const Dtk_transfo &inTransfo) |
Static Public Member Functions | |
static Dtk_KinFormulaPtr | Create () |
Base constructor. More... | |
static Dtk_KinFormula * | DtkDynamicCast (Dtk_Object *s) |
Performs a dynamic cast - doesn't need RTTI -. More... | |
static Dtk_KinFormulaPtr | release (Dtk_KinFormulaPtr inFormula) |
Delete object. More... | |
Protected Types | |
enum | { _typeID = DTK_TYPE_OBJECT } |
enum | { _typeID = DTK_TYPE_KIN_FORMULA } |
Protected Member Functions | |
void | _copy (const Dtk_Object &s) |
void | _init () |
void | _reset () |
Dtk_KinFormula () | |
Default constructor. More... | |
Dtk_KinFormula (const Dtk_KinFormula &inFormula) | |
Copy constructor. More... | |
~Dtk_KinFormula () | |
Destructor. More... | |
Protected Attributes | |
Dtk_string | _comment |
Dtk_string | _formula |
int | _ID |
Dtk_string | _name |
Dtk_string | _param |
unsigned long | count_ |
Friends | |
class | Dtk_SmartPtr< Dtk_KinFormula > |
Dtk_KinFormula represents the formula defined the law.
A formula is linked at a law object.
|
protected |
Default constructor.
|
protected |
Copy constructor.
inFormula | the Dtk_KinFormula 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_KinFormula::Dump | ( | FILE * | inFile | ) |
Write Dump file for formula.
inFile | the output file |
Sample
Result
type_detk Dtk_KinFormula::get_type_detk | ( | ) | const |
Dtk_string Dtk_KinFormula::getComment | ( | ) |
Returns the formula comment.
Dtk_string Dtk_KinFormula::getFormula | ( | ) |
Returns the formula.
int Dtk_KinFormula::getId | ( | ) |
Returns the formula id.
Dtk_string Dtk_KinFormula::getName | ( | ) |
Returns the formula name.
Dtk_string Dtk_KinFormula::getParam | ( | ) |
Returns the formula parameter.
|
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_KinFormula::setComment | ( | Dtk_string | inComment | ) |
Sets the formula comment.
inComment | formula comment |
void Dtk_KinFormula::setFormula | ( | Dtk_string | inFormula | ) |
Sets the formula.
inFormula | formula |
void Dtk_KinFormula::setId | ( | int | inId | ) |
Sets the formula id.
inId | formula id |
void Dtk_KinFormula::setName | ( | Dtk_string | inName | ) |
Sets the formula name.
inName | formula name |
void Dtk_KinFormula::setParam | ( | Dtk_string | inParam | ) |
Sets the formula parameter.
inParam | formula parameter |
Dtk_ErrorStatus Dtk_KinFormula::Transform | ( | const Dtk_transfo & | inTransfo | ) |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protectedinherited |