This is abstract Dtk_Annotation class. More...
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_Int32 | DtkDynamicType (const Dtk_Int32 &inId) |
Retrieves the dynamic entity type. More... | |
int | DtkDynamicType (const int &inId) |
virtual void | dump (FILE *file=stdout) |
Dtk_InfoPtr | get_info () const |
virtual type_detk | get_type_detk () const =0 |
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... | |
virtual Dtk_ErrorStatus | GetAnchorPoints (Dtk_pnt(&outTabPnts)[DTK_NB_ANCHOR_TYPES]) const =0 |
Processes all the Dtk_Annotation anchor points. 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... | |
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... | |
Dtk_InfoPtr & | info () |
virtual std::ostream & | operator<< (std::ostream &o) const |
Dtk_Annotation & | operator= (const Dtk_Annotation &inToBeAssigned) |
Assignment Operator. More... | |
Dtk_Annotation & | operator= (Dtk_Annotation &&inToBeMoved) DTK_NOEXCEPT |
\MoveOp{inToBeAssigned} More... | |
virtual void | PrepareTransfo () |
virtual Dtk_ErrorStatus | Reverse () |
Reverses the Dtk_Annotation. More... | |
virtual Dtk_ErrorStatus | SetAnchorPoint (const Dtk_pnt &inNewLocation, const Dtk_anchor_type &inLocationAnchorType)=0 |
Sets the Dtk_Annotation anchor point. More... | |
SetAsDeprecated ("Undefined", "Use Dtk_TextStyle::Justification()") Dtk_justication_type GetJustification() const | |
Get the justification type - read only -. More... | |
virtual Dtk_ErrorStatus | SetLocation (const Dtk_pnt &inLocation)=0 |
Sets the location point of the Dtk_Annotation. More... | |
Dtk_ErrorStatus | SetLocation (const Dtk_pnt &location, const Dtk_anchor_type &inAnchorType) |
Sets the location point of the Dtk_Annotation. More... | |
virtual Dtk_ErrorStatus | SetOffset (const Dtk_Double64 &inOffset)=0 |
Sets the offset of the Dtk_Annotation. More... | |
virtual Dtk_ErrorStatus | SetRotationAngle (const Dtk_Double64 &inRotationAngle) |
Sets the annotation angle using the annotation base. More... | |
virtual Dtk_ErrorStatus | Transform (const Dtk_transfo &inTransfo)=0 |
Applies a transformation matrix to the entity. //! More... | |
Static Public Member Functions | |
static Dtk_Annotation * | DtkDynamicCast (Dtk_Object *s) |
Performs a dynamic cast - doesn't need RTTI -. More... | |
Protected Types | |
enum | { _typeID = DTK_TYPE_2D_ENTITY } |
enum | { _typeID = DTK_TYPE_ENTITY } |
enum | { _typeID = DTK_TYPE_ANNOTATION } |
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 ()=0 |
Dtk_Annotation () | |
Base constructor. More... | |
Dtk_Annotation (const Dtk_Annotation &s) | |
Copy constructor. More... | |
Dtk_Annotation (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_anchor_type &inAnchorType=DTK_ANCHOR_BOTTOM_LEFT, const Dtk_justication_type &inJustificationType=DTK_JUSTIFY_LEFT) | |
Full featured constructor. More... | |
Dtk_Annotation (Dtk_Annotation &&s) DTK_NOEXCEPT | |
\MoveConstructor{s} More... | |
virtual | ~Dtk_Annotation () |
Destructor. More... | |
Protected Attributes | |
Dtk_Handle * | _Private |
unsigned long | count_ |
Friends | |
class | Dtk_SmartPtr< Dtk_Annotation > |
std::ostream & | operator<< (std::ostream &o, const Dtk_Annotation &d) |
This is abstract Dtk_Annotation class.
|
protectedvirtual |
Destructor.
|
protected |
Base constructor.
|
protected |
Copy constructor.
s | Object to copy. |
|
protected |
\MoveConstructor{s}
|
protected |
Full featured constructor.
inLocationPnt | Location of the Dtk_Annotation |
inInfos | Infos |
inLeadersArray | Addittional leaders array |
inAngle | Angle |
inOffSet | Offset |
inAnchorType | Annotation anchor type |
inJustificationType | Annotation justification type |
|
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 |
Dtk_ErrorStatus Dtk_Annotation::AddLeader | ( | const Dtk_LeaderPtr & | leader | ) |
Adds a leader to the Dtk_Annotation.
leader | The leader to be added |
|
protectedpure virtual |
Implements Dtk_2dEntity.
Implemented in Dtk_Region, Dtk_Symbol, Dtk_GeometricalTolerance, Dtk_Grid, Dtk_Table, Dtk_DatumTarget, Dtk_Welding, and Dtk_Roughness.
|
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 |
|
inherited |
|
pure virtual |
Implements Dtk_2dEntity.
Implemented in Dtk_Region, Dtk_Symbol, Dtk_GeometricalTolerance, Dtk_Grid, Dtk_Table, Dtk_DatumTarget, Dtk_Welding, and Dtk_Roughness.
|
inherited |
Retrieves the additionnal geometries of the Dtk_2dEntity.
|
inherited |
Retrieves the additionnal texts of the Dtk_2dEntity.
|
pure virtual |
Processes all the Dtk_Annotation anchor points.
outTabPnts | The resulting anchor point array. |
Implemented in Dtk_Region, Dtk_Symbol, Dtk_GeometricalTolerance, Dtk_Grid, Dtk_Table, Dtk_DatumTarget, Dtk_Roughness, and Dtk_Welding.
|
inherited |
Get Internal UniqueID.
Dtk_LeaderPtr Dtk_Annotation::GetLeader | ( | const Dtk_Size_t & | inPos | ) | const |
Gets the i'th leader.
inPos | The leader position - 0 indexed - |
|
virtual |
Get the annoation location point.
const Dtk_anchor_type& Dtk_Annotation::GetLocationAnchorType | ( | ) | const |
Gets the location anchor type - read only -.
Dtk_Size_t Dtk_Annotation::GetNumLeaders | ( | ) | const |
Retrieves the number of leaders.
Dtk_Double64 Dtk_Annotation::GetOffset | ( | ) | const |
Gets the annotation offset - read only -.
Dtk_Double64 Dtk_Annotation::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.
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.
Dtk_dir Dtk_Annotation::GetXAxis | ( | ) | const |
Get the X Axis - read only -.
Dtk_dir Dtk_Annotation::GetYAxis | ( | ) | const |
Get the Y Axis - read only -.
|
inherited |
|
virtualinherited |
Dtk_Annotation& Dtk_Annotation::operator= | ( | const Dtk_Annotation & | inToBeAssigned | ) |
Assignment Operator.
inToBeAssigned | Object to copy. |
Dtk_Annotation& Dtk_Annotation::operator= | ( | Dtk_Annotation && | inToBeMoved | ) |
\MoveOp{inToBeAssigned}
|
virtualinherited |
Reimplemented in Dtk_OffsetSurface.
|
virtual |
Reverses the Dtk_Annotation.
Reimplemented in Dtk_DatumTarget.
|
pure virtual |
Sets the Dtk_Annotation anchor point.
inNewLocation | The new location point. |
inLocationAnchorType | The anchor type related to the new location. |
Implemented in Dtk_Region, Dtk_Symbol, Dtk_GeometricalTolerance, Dtk_Grid, Dtk_Table, Dtk_DatumTarget, Dtk_Welding, and Dtk_Roughness.
Dtk_Annotation::SetAsDeprecated | ( | "Undefined" | , |
"Use Dtk_TextStyle::Justification()" | |||
) | const |
Get the justification type - read only -.
|
pure virtual |
Sets the location point of the Dtk_Annotation.
The location point is related to the anchor type
inLocation | the location point |
Implemented in Dtk_Region, Dtk_Symbol, Dtk_GeometricalTolerance, Dtk_Grid, Dtk_Table, Dtk_DatumTarget, Dtk_Welding, and Dtk_Roughness.
Dtk_ErrorStatus Dtk_Annotation::SetLocation | ( | const Dtk_pnt & | location, |
const Dtk_anchor_type & | inAnchorType | ||
) |
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. |
|
pure virtual |
Sets the offset of the Dtk_Annotation.
The Offset is used to process bounding frames.
inOffset | The offset |
Implemented in Dtk_Region, Dtk_Symbol, Dtk_GeometricalTolerance, Dtk_Grid, Dtk_Table, Dtk_DatumTarget, Dtk_Welding, and Dtk_Roughness.
|
virtual |
Sets the annotation angle using the annotation base.
inRotationAngle | The rotation angle to be set |
Reimplemented in Dtk_Symbol, Dtk_GeometricalTolerance, Dtk_Table, Dtk_DatumTarget, Dtk_Welding, and Dtk_Roughness.
|
pure virtual |
Applies a transformation matrix to the entity. //!
inTransfo | The transformation matrix to apply. |
Implements Dtk_2dEntity.
Implemented in Dtk_Region, Dtk_Symbol, Dtk_GeometricalTolerance, Dtk_Grid, Dtk_Table, Dtk_DatumTarget, Dtk_Welding, and Dtk_Roughness.
|
friend |
|
friend |
|
protected |
|
protectedinherited |