This is the Dtk_Constraint class. More...
Data Structures | |
class | _ConstraintValue |
Public Member Functions | |
virtual Dtk_ErrorStatus | _Store (void *) |
void | AddConstraintReference (const Dtk_ConstraintReferencePtr &in) |
Add a ConstraintReference to this Constraint . More... | |
virtual void | conv_ptr (Dtk_Constraint **s) |
Dtk_Constraint (const ConstraintTypeEnum &inType) | |
Dtk_Constraint (const Dtk_Constraint &p) | |
int | DtkDynamicType (const int &inId) |
virtual void | dump (FILE *file=stdout) |
Dtk_InfoPtr | get_info () const |
type_detk | get_type_detk () const |
const Dtk_tab< Dtk_ConstraintReferencePtr > & | GetConstraintReference () const |
Get all ConstraintReferences of the Constraint. More... | |
const Dtk_ConstraintReferencePtr & | GetConstraintReference (const Dtk_Size_t &index) const |
Get the Dtk_ConstraintReference at the specified index. More... | |
const ConstraintTypeEnum & | GetConstraintType () const |
Get the type of the Constraint . More... | |
const _ConstraintValue & | GetConstraintValue (const Dtk_Size_t &index) const |
Get the Dtk_Constraint::_ConstraintValue at the specified index. More... | |
const Dtk_ID & | GetID () const |
Get Internal UniqueID. More... | |
Dtk_Size_t | GetNumberOfConstraintReferences () const |
Get the number of Dtk_ConstraintReference in the constraint. More... | |
Dtk_Size_t | GetNumberOfConstraintValues () |
Get the number of Dtk_Constraint::_ConstraintValue in the constraint. More... | |
virtual Dtk_Size_t | GetSize () const |
Dtk_ErrorStatus | GetValue (const ConstraintValueTypeEnum &inValue, Dtk_Val &outValue) const |
Dtk_ErrorStatus | GetValue (const ConstraintValueTypeEnum &inValue, Dtk_Val &outValue, Dtk_Int32 &outEnableLowerLimit, Dtk_Double64 &outLowerLimit, Dtk_Int32 &outEnableUpperLimit, Dtk_Double64 &outUpperLimit) const |
Get a Value of the Constraint . More... | |
Dtk_tab< ConstraintValueTypeEnum > | GetValuesTypes () const |
Get all types of values in the Constraint. More... | |
Dtk_InfoPtr & | info () |
Dtk_Constraint & | operator= (const Dtk_Constraint &p) |
virtual void | PrepareTransfo () |
void | SetConstraintType (const ConstraintTypeEnum &in) |
Set the type of the Constraint . More... | |
void | SetValue (const ConstraintValueTypeEnum &inValueType, Dtk_Val &inValue) |
void | SetValue (const ConstraintValueTypeEnum &inValueType, Dtk_Val &inValue, const Dtk_Int32 &inEnableLowerLimit, const Dtk_Double64 &inLowerLimit, const Dtk_Int32 &inEnableUpperLimit, const Dtk_Double64 &inUpperLimit) |
Set a Value of the Constraint . More... | |
Dtk_ErrorStatus | Transform (const Dtk_transfo &inTransfo) |
Applies a transformation matrix to the entity. //! More... | |
Static Public Member Functions | |
static Dtk_string | ConstraintOrientationTypeEnumToString (const ConstraintOrientationTypeEnum &inEnum) |
static Dtk_string | ConstraintTypeEnumToString (const ConstraintTypeEnum &inEnum) |
static Dtk_string | ConstraintValueTypeEnumToString (const ConstraintValueTypeEnum &inEnum) |
static Dtk_SmartPtr< Dtk_Constraint > | Create () |
Calls default constructor to allocate a new object. More... | |
static Dtk_Constraint * | DtkDynamicCast (Dtk_Object *inObject) |
Protected Types | |
enum | { _typeID = DTK_TYPE_OBJECT } |
enum | { _typeID = DTK_TYPE_ENTITY } |
Protected Member Functions | |
void | _Copy (const Dtk_Constraint &s) |
void | _copy (const Dtk_Entity &s) |
void | _init () |
void | _Init () |
void | _reset () |
void | _Reset () |
virtual Dtk_Object * | Clone () |
Dtk_Constraint () | |
virtual | ~Dtk_Constraint () |
Protected Attributes | |
Dtk_Handle * | _Private |
unsigned long | count_ |
This is the Dtk_Constraint class.
A Dtk_Constraint contains the AxisSystem definition which defines by its Name, statut and the Matrix
This class lets you use Dtk_Constraint.
Dtk_Constraint::Dtk_Constraint | ( | const Dtk_Constraint & | p | ) |
Dtk_Constraint::Dtk_Constraint | ( | const ConstraintTypeEnum & | inType | ) |
|
protected |
|
protectedvirtual |
|
protected |
|
protectedinherited |
|
protectedinherited |
|
protected |
|
protectedinherited |
|
protected |
|
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_Constraint::AddConstraintReference | ( | const Dtk_ConstraintReferencePtr & | in | ) |
Add a ConstraintReference to this Constraint .
|
protectedvirtual |
Implements Dtk_Entity.
|
static |
|
static |
|
static |
|
virtual |
|
static |
Calls default constructor to allocate a new object.
|
static |
|
virtual |
Reimplemented from Dtk_Entity.
|
virtualinherited |
|
inherited |
|
virtual |
Implements Dtk_Entity.
const Dtk_tab<Dtk_ConstraintReferencePtr>& Dtk_Constraint::GetConstraintReference | ( | ) | const |
Get all ConstraintReferences of the Constraint.
const Dtk_ConstraintReferencePtr& Dtk_Constraint::GetConstraintReference | ( | const Dtk_Size_t & | index | ) | const |
Get the Dtk_ConstraintReference at the specified index.
The | index to retrieve the Dtk_ConstraintReference from. |
const ConstraintTypeEnum& Dtk_Constraint::GetConstraintType | ( | ) | const |
Get the type of the Constraint .
const _ConstraintValue& Dtk_Constraint::GetConstraintValue | ( | const Dtk_Size_t & | index | ) | const |
Get the Dtk_Constraint::_ConstraintValue at the specified index.
|
inherited |
Get Internal UniqueID.
Dtk_Size_t Dtk_Constraint::GetNumberOfConstraintReferences | ( | ) | const |
Get the number of Dtk_ConstraintReference in the constraint.
Dtk_Size_t Dtk_Constraint::GetNumberOfConstraintValues | ( | ) |
Get the number of Dtk_Constraint::_ConstraintValue in the constraint.
|
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_ErrorStatus Dtk_Constraint::GetValue | ( | const ConstraintValueTypeEnum & | inValue, |
Dtk_Val & | outValue | ||
) | const |
Dtk_ErrorStatus Dtk_Constraint::GetValue | ( | const ConstraintValueTypeEnum & | inValue, |
Dtk_Val & | outValue, | ||
Dtk_Int32 & | outEnableLowerLimit, | ||
Dtk_Double64 & | outLowerLimit, | ||
Dtk_Int32 & | outEnableUpperLimit, | ||
Dtk_Double64 & | outUpperLimit | ||
) | const |
Get a Value of the Constraint .
Dtk_tab< ConstraintValueTypeEnum > Dtk_Constraint::GetValuesTypes | ( | ) | const |
Get all types of values in the Constraint.
|
inherited |
Dtk_Constraint& Dtk_Constraint::operator= | ( | const Dtk_Constraint & | p | ) |
|
virtualinherited |
Reimplemented in Dtk_OffsetSurface.
void Dtk_Constraint::SetConstraintType | ( | const ConstraintTypeEnum & | in | ) |
Set the type of the Constraint .
void Dtk_Constraint::SetValue | ( | const ConstraintValueTypeEnum & | inValueType, |
Dtk_Val & | inValue | ||
) |
void Dtk_Constraint::SetValue | ( | const ConstraintValueTypeEnum & | inValueType, |
Dtk_Val & | inValue, | ||
const Dtk_Int32 & | inEnableLowerLimit, | ||
const Dtk_Double64 & | inLowerLimit, | ||
const Dtk_Int32 & | inEnableUpperLimit, | ||
const Dtk_Double64 & | inUpperLimit | ||
) |
Set a Value of the Constraint .
|
virtual |
Applies a transformation matrix to the entity. //!
inTransfo | The transformation matrix to apply. |
Implements Dtk_Entity.
|
protected |
|
protectedinherited |