This is the Datum Target. More...
Public Types | |
enum | DatumTargetMovableStatusEnum { NonMovable = 0, Movable = 1 } |
enum | DatumTargetTypeEnum { Unknown = 0, Point = 1, Linear = 2, Rectangular = 3, Circular = 4, Annular = 5, Spherical = 6, Cylindrical = 7, Arbitrary = 8, NumTypes } |
enum | DatumTargetValueEnum { DiameterValue = 0, InnerDiameterValue = 1, OuterDiameterValue = 2, WidthValue = 3, HeightValue = 4, StartPointValue = 5, EndPointValue = 6, AreaValue = 7, NumValues } |
Public Member Functions | |
virtual Dtk_ErrorStatus | _Store (void *) |
void | AddAdditionnalGeometries (const Dtk_tab< Dtk_EntityPtr > &inAdditionnalGeometries) |
Adds some additionnal geometries to the Dtk_2dEntity. More... | |
void | AddAdditionnalGeometry (const Dtk_EntityPtr &inAdditionnalGeometry) |
Adds an additionnal geometry to the Dtk_2dEntity. More... | |
void | AddAdditionnalTexts (Dtk_CompositeText inAddtionnalTexts) |
Adds some additionnal texts to the Dtk_2dEntity. More... | |
Dtk_ErrorStatus | AddLeader (const Dtk_LeaderPtr &leader) |
Adds a leader to the Dtk_Annotation. More... | |
Dtk_CompositeText & | BottomText () |
Retrieves the bottom text - get/set -. More... | |
const Dtk_CompositeText & | BottomText () const |
Retrieves the bottom text - read only -. More... | |
void | DisableFrame () |
Disables the frame status. 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) |
void | EnableFrame () |
Enables the frame status. More... | |
Dtk_InfoPtr | get_info () const |
type_detk | get_type_detk () const |
const Dtk_tab< Dtk_EntityPtr > & | GetAdditionnalGeometries () const |
Retrieves the additionnal geometries of the Dtk_2dEntity. More... | |
const Dtk_CompositeText & | GetAdditionnalTexts () const |
Retrieves the additionnal texts of the Dtk_2dEntity. More... | |
Dtk_ErrorStatus | GetAnchorPoints (Dtk_pnt(&outTabPnts)[DTK_NB_ANCHOR_TYPES]) |
Processes all the Dtk_DatumTarget anchor points. More... | |
Dtk_ErrorStatus | GetAnchorPoints (Dtk_pnt(&outTabPnts)[DTK_NB_ANCHOR_TYPES]) const |
Processes all the Dtk_DatumTarget anchor points. More... | |
Dtk_DatumTarget::DatumTargetMovableStatusEnum | GetDatumTargetMovableStatus () const |
Gets the Movable status of the Dtk_DatumTarget. More... | |
Dtk_tab< Dtk_CurvePtr > & | GetDatumTargetMovableStatusRelatedGeom () const |
Gets the geometry related to the Movable status of the Dtk_DatumTarget. More... | |
Dtk_DatumTarget::DatumTargetTypeEnum | GetDatumTargetType () const |
Gets the type of the Dtk_DatumTarget. More... | |
const Dtk_Frame & | GetFrame () const |
Retrieves the frame of the Datum Target. More... | |
Dtk_tab< Dtk_EntityPtr > | GetGeometries () const |
Retrieves the Dtk_DatumTarget geometries - frame -. More... | |
const Dtk_ID & | GetID () const |
Get Internal UniqueID. More... | |
Dtk_LeaderPtr | GetLeader (const Dtk_Size_t &inPos) const |
Gets the i'th leader. More... | |
virtual Dtk_pnt | GetLocation () const |
Get the annoation location point. More... | |
const Dtk_anchor_type & | GetLocationAnchorType () const |
Gets the location anchor type - read only -. More... | |
Dtk_Size_t | GetNumLeaders () const |
Retrieves the number of leaders. More... | |
Dtk_Double64 | GetOffset () const |
Gets the annotation offset - read only -. More... | |
const Dtk_LeaderPtr & | GetOptionnalBottomTextLeader () const |
Retrieves optionnal Leader of the Bottom Text. More... | |
const Dtk_LeaderPtr & | GetOptionnalTopTextLeader () const |
Retrieves optionnal Leader of the Top Text. More... | |
Dtk_ErrorStatus | GetParameterValue (const DatumTargetValueEnum &inValueEnum, Dtk_Val &outValue) |
Gets the value associated to DatumTargetValueEnum . More... | |
Dtk_Double64 | GetRotationAngle (const Dtk_dir &inXAxis=Dtk_dir(1, 0, 0), const Dtk_dir &inYAxis=Dtk_dir(0, 1, 0)) const |
Gets the text rotation angle giving a reference base. More... | |
virtual Dtk_Size_t | GetSize () const |
Dtk_dir | GetXAxis () const |
Get the X Axis - read only -. More... | |
Dtk_dir | GetYAxis () const |
Get the Y Axis - read only -. More... | |
const Dtk_bool & | HasFrame () const |
Retrieves the frame status - read only -. More... | |
Dtk_InfoPtr & | info () |
virtual std::ostream & | operator<< (std::ostream &o) const |
Dtk_DatumTarget & | operator= (const Dtk_DatumTarget &inToBeAssigned) |
Assignment Operator. More... | |
Dtk_DatumTarget & | operator= (Dtk_DatumTarget &&inToBeMoved) DTK_NOEXCEPT |
\MoveOp{inToBeMoved} More... | |
virtual void | PrepareTransfo () |
Dtk_Oriented2dBBox | ProcessBoundingBox () const |
Dtk_pnt | ProcessCenterPoint () const |
Retrieves the center point - read only -. More... | |
Dtk_Double64 | ProcessRadius () const |
Processes the Dtk_DatumTarget radius. More... | |
Dtk_ErrorStatus | Reverse () |
Reverses the text The text anchor type is replaced by the opposed one and the text orientation is reversed. More... | |
Dtk_ErrorStatus | SetAnchorPoint (const Dtk_pnt &inNewLocation, const Dtk_anchor_type &inLocationAnchorType) |
Sets the Dtk_DatumTarget anchor point. More... | |
SetAsDeprecated ("Undefined", "Use Dtk_TextStyle::Justification()") Dtk_justication_type GetJustification() const | |
Get the justification type - read only -. More... | |
void | SetDatumTargetMovable (const DatumTargetMovableStatusEnum inMovableStatus, Dtk_tab< Dtk_CurvePtr > inMovableGeom) |
Sets the Movable status of the Dtk_DatumTarget. More... | |
void | SetDatumTargetType (const DatumTargetTypeEnum inType) |
Sets the type of the Dtk_DatumTarget. More... | |
void | SetFrame (Dtk_Frame inFrame) |
Sets the frame of the Datum Target. More... | |
Dtk_ErrorStatus | SetLocation (const Dtk_pnt &inLocation) |
Sets the location point of the Dtk_DatumTarget. More... | |
Dtk_ErrorStatus | SetLocation (const Dtk_pnt &location, const Dtk_anchor_type &inAnchorType) |
Sets the location point of the Dtk_Annotation. More... | |
Dtk_ErrorStatus | SetOffset (const Dtk_Double64 &inOffset) |
Sets the offset of the Dtk_DatumTarget. More... | |
void | SetOptionnalBottomTextLeader (const Dtk_LeaderPtr &inLeader) |
Sets the optionnal Leader of the Bottom Text. More... | |
void | SetOptionnalTopTextLeader (const Dtk_LeaderPtr &inLeader) |
Sets the optionnal Leader of the Top Text. More... | |
Dtk_ErrorStatus | SetParameterValue (const DatumTargetValueEnum &inValueEnum, Dtk_Val inValue) |
Sets the value associated to DatumTargetValueEnum . More... | |
Dtk_ErrorStatus | SetRotationAngle (const Dtk_Double64 &inRotationAngle) |
Sets the annotation angle using the annotation base. More... | |
Dtk_ErrorStatus | SwapTexts () |
Swaps the Dtk_DatumTarget texts. More... | |
Dtk_CompositeText & | TopText () |
Retrieves the top text - get/set -. More... | |
const Dtk_CompositeText & | TopText () const |
Retrieves the top text - read only -. More... | |
Dtk_ErrorStatus | Transform (const Dtk_transfo &inTransfo) |
Applies a transformation matrix to the entity. //! More... | |
void | Translate (const Dtk_dir &inTranslationDir) |
Translates the Dtk_ReferenceBlock - internal use only -. More... | |
Protected Types | |
enum | { _typeID = DTK_TYPE_2D_ENTITY } |
enum | { _typeID = DTK_TYPE_ENTITY } |
enum | { _typeID = DTK_TYPE_ANNOTATION } |
enum | { _typeID = DTK_TYPE_DATUM_TARGET } |
Protected Member Functions | |
void | _Copy (const Dtk_2dEntity &s) |
void | _copy (const Dtk_Entity &s) |
void | _copy (const Dtk_Object &s) |
void | _init () |
void | _reset () |
virtual Dtk_Object * | Clone () |
Dtk_DatumTarget () | |
Dtk_DatumTarget (const Dtk_DatumTarget &inToBeCopied) | |
Dtk_DatumTarget (Dtk_CompositeText inTopText, Dtk_CompositeText inBottomText, const Dtk_pnt &inLocationPnt, const Dtk_InfoPtr &inInfos, Dtk_tab< Dtk_LeaderPtr > inLeadersArray=Dtk_tab< Dtk_LeaderPtr >(), const Dtk_Double64 &inAngle=0.0, const Dtk_Double64 &inOffSet=0.0, const Dtk_bool &inHasFrame=DTK_TRUE, const Dtk_anchor_type &inAnchorType=DTK_ANCHOR_BOTTOM_LEFT, const Dtk_justication_type &inJustificationType=DTK_JUSTIFY_LEFT) | |
Dtk_DatumTarget (Dtk_DatumTarget &&inToBeMoved) DTK_NOEXCEPT | |
~Dtk_DatumTarget () | |
Destructor. More... | |
Protected Attributes | |
Dtk_Handle * | _Private |
unsigned long | count_ |
Friends | |
class | Dtk_SmartPtr< Dtk_DatumTarget > |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Destructor.
|
protectedinherited |
|
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.
|
inherited |
Adds some additionnal geometries to the Dtk_2dEntity.
inAdditionnalGeometries | The geometries to be added |
|
inherited |
Adds an additionnal geometry to the Dtk_2dEntity.
inAdditionnalGeometry | The geometry to be added |
|
inherited |
Adds some additionnal texts to the Dtk_2dEntity.
inAddtionnalTexts | The texts to be added |
|
inherited |
Adds a leader to the Dtk_Annotation.
leader | The leader to be added |
Dtk_CompositeText& Dtk_DatumTarget::BottomText | ( | ) |
const Dtk_CompositeText& Dtk_DatumTarget::BottomText | ( | ) | const |
|
protectedvirtual |
Implements Dtk_Annotation.
|
static |
Base constructor.
|
static |
Copy constructor.
inToBeCopied | Object to copy. |
|
static |
Full featured constructor.
inTopText | Top text |
inBottomText | Bottom text |
inLocationPnt | The Dtk_DatumTarget location |
inInfos | Dtk_DatumTarget infos |
inLeadersArray | Leaders array |
inAngle | Angle |
inOffSet | Offset |
inHasFrame | DTK_TRUE if the Dtk_DatumTarget has frame |
inAnchorType | Dtk_DatumTarget anchor type |
inJustificationType | Justification type |
|
static |
\MoveConstructor{inToBeMoved}
|
static |
|
static |
|
static |
void Dtk_DatumTarget::DisableFrame | ( | ) |
Disables the frame status.
|
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 |
void Dtk_DatumTarget::EnableFrame | ( | ) |
Enables the frame status.
|
inherited |
|
virtual |
Implements Dtk_Annotation.
|
inherited |
Retrieves the additionnal geometries of the Dtk_2dEntity.
|
inherited |
Retrieves the additionnal texts of the Dtk_2dEntity.
Dtk_ErrorStatus Dtk_DatumTarget::GetAnchorPoints | ( | Dtk_pnt(&) | outTabPnts[DTK_NB_ANCHOR_TYPES] | ) |
Processes all the Dtk_DatumTarget anchor points.
outTabPnts | The resulting anchor point array. |
|
virtual |
Processes all the Dtk_DatumTarget anchor points.
outTabPnts | The resulting anchor point array. |
Implements Dtk_Annotation.
Dtk_DatumTarget::DatumTargetMovableStatusEnum Dtk_DatumTarget::GetDatumTargetMovableStatus | ( | ) | const |
Gets the Movable status of the Dtk_DatumTarget.
Dtk_tab<Dtk_CurvePtr>& Dtk_DatumTarget::GetDatumTargetMovableStatusRelatedGeom | ( | ) | const |
Gets the geometry related to the Movable status of the Dtk_DatumTarget.
Dtk_DatumTarget::DatumTargetTypeEnum Dtk_DatumTarget::GetDatumTargetType | ( | ) | const |
Gets the type of the Dtk_DatumTarget.
const Dtk_Frame& Dtk_DatumTarget::GetFrame | ( | ) | const |
Dtk_tab< Dtk_EntityPtr > Dtk_DatumTarget::GetGeometries | ( | ) | const |
Retrieves the Dtk_DatumTarget geometries - frame -.
|
inherited |
Get Internal UniqueID.
|
inherited |
Gets the i'th leader.
inPos | The leader position - 0 indexed - |
|
virtualinherited |
Get the annoation location point.
|
inherited |
Gets the location anchor type - read only -.
|
inherited |
Retrieves the number of leaders.
|
inherited |
Gets the annotation offset - read only -.
const Dtk_LeaderPtr& Dtk_DatumTarget::GetOptionnalBottomTextLeader | ( | ) | const |
Retrieves optionnal Leader of the Bottom Text.
const Dtk_LeaderPtr& Dtk_DatumTarget::GetOptionnalTopTextLeader | ( | ) | const |
Retrieves optionnal Leader of the Top Text.
Dtk_ErrorStatus Dtk_DatumTarget::GetParameterValue | ( | const DatumTargetValueEnum & | inValueEnum, |
Dtk_Val & | outValue | ||
) |
Gets the value associated to DatumTargetValueEnum .
outValue | Get the value associated to inValueEnum |
|
inherited |
Gets the text rotation angle giving a reference base.
inXAxis | The reference X Axis - default value = (1,0,0) - |
inYAxis | The reference Y Axis - default value = (0,1,0) - |
|
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.
|
inherited |
Get the X Axis - read only -.
|
inherited |
Get the Y Axis - read only -.
const Dtk_bool& Dtk_DatumTarget::HasFrame | ( | ) | const |
Retrieves the frame status - read only -.
|
inherited |
|
virtualinherited |
Dtk_DatumTarget& Dtk_DatumTarget::operator= | ( | const Dtk_DatumTarget & | inToBeAssigned | ) |
Assignment Operator.
inToBeAssigned | Object to copy. |
Dtk_DatumTarget& Dtk_DatumTarget::operator= | ( | Dtk_DatumTarget && | inToBeMoved | ) |
\MoveOp{inToBeMoved}
|
virtualinherited |
Reimplemented in Dtk_OffsetSurface.
Dtk_Oriented2dBBox Dtk_DatumTarget::ProcessBoundingBox | ( | ) | const |
Dtk_pnt Dtk_DatumTarget::ProcessCenterPoint | ( | ) | const |
Retrieves the center point - read only -.
Dtk_Double64 Dtk_DatumTarget::ProcessRadius | ( | ) | const |
Processes the Dtk_DatumTarget radius.
|
virtual |
Reverses the text The text anchor type is replaced by the opposed one and the text orientation is reversed.
Reimplemented from Dtk_Annotation.
|
virtual |
Sets the Dtk_DatumTarget anchor point.
inNewLocation | The new location point. |
inLocationAnchorType | The anchor type related to the new location. |
Implements Dtk_Annotation.
|
inherited |
Get the justification type - read only -.
void Dtk_DatumTarget::SetDatumTargetMovable | ( | const DatumTargetMovableStatusEnum | inMovableStatus, |
Dtk_tab< Dtk_CurvePtr > | inMovableGeom | ||
) |
Sets the Movable status of the Dtk_DatumTarget.
inMovableStatus | The Dtk_DatumTarget Movable status |
inMovableGeom | The geometry related to the Movable status |
void Dtk_DatumTarget::SetDatumTargetType | ( | const DatumTargetTypeEnum | inType | ) |
Sets the type of the Dtk_DatumTarget.
inType | The Dtk_DatumTarget type |
void Dtk_DatumTarget::SetFrame | ( | Dtk_Frame | inFrame | ) |
|
virtual |
Sets the location point of the Dtk_DatumTarget.
The location point is related to the anchor type
inLocation | the location point |
Implements Dtk_Annotation.
|
inherited |
Sets the location point of the Dtk_Annotation.
The location point is related to the anchor type
location | the location point |
inAnchorType | The anchor type related to the new location. |
|
virtual |
Sets the offset of the Dtk_DatumTarget.
The Offset is used to process bounding frames.
inOffset | The offset |
Implements Dtk_Annotation.
void Dtk_DatumTarget::SetOptionnalBottomTextLeader | ( | const Dtk_LeaderPtr & | inLeader | ) |
Sets the optionnal Leader of the Bottom Text.
inLeader | The Dtk_LeaderPtr |
void Dtk_DatumTarget::SetOptionnalTopTextLeader | ( | const Dtk_LeaderPtr & | inLeader | ) |
Sets the optionnal Leader of the Top Text.
inLeader | The Dtk_LeaderPtr |
Dtk_ErrorStatus Dtk_DatumTarget::SetParameterValue | ( | const DatumTargetValueEnum & | inValueEnum, |
Dtk_Val | inValue | ||
) |
Sets the value associated to DatumTargetValueEnum .
inValue | Set the inValue associated to the inValueEnum |
|
virtual |
Sets the annotation angle using the annotation base.
inRotationAngle | The rotation angle to be set |
Reimplemented from Dtk_Annotation.
Dtk_ErrorStatus Dtk_DatumTarget::SwapTexts | ( | ) |
Swaps the Dtk_DatumTarget texts.
Dtk_CompositeText& Dtk_DatumTarget::TopText | ( | ) |
const Dtk_CompositeText& Dtk_DatumTarget::TopText | ( | ) | const |
|
virtual |
Applies a transformation matrix to the entity. //!
inTransfo | The transformation matrix to apply. |
Implements Dtk_Annotation.
void Dtk_DatumTarget::Translate | ( | const Dtk_dir & | inTranslationDir | ) |
Translates the Dtk_ReferenceBlock - internal use only -.
inTranslationDir | the translation vector. |
|
friend |
|
protected |
|
protectedinherited |