This is the Roughness class. More...
Inheritance diagram for Dtk_Roughness:Public Types | |
| enum | ApplyToEnum { ApplyToSpecifiedSurface = 0, ApplyToSurroundingSurfaces, ApplyToBasicSurface, ApplyToAllSurfaces } |
| enum | ObtentionTypeEnum { ObtentionTypeNotDefined = 0, ObtentionTypeMachiningMandatory, ObtentionTypeMachiningForbidden } |
| enum | RoughModeEnum { ModeNone = 0, ModeMultiDirectional, ModeCircular, ModeRadial, ModeParticular, ModeWithAngles, ModeParallel, ModePerpendicular } |
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... | |
| void | AddAssociatedGeometries (Dtk_tab< Dtk_EntityPtr > inAssociatedGeometries) |
| Add Geometries associated to whole Dtk_Roughness. 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 |
| 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_Annotation anchor points. More... | |
| Dtk_ErrorStatus | GetAnchorPoints (Dtk_pnt(&outTabPnts)[DTK_NB_ANCHOR_TYPES]) const |
| Processes all the Dtk_Annotation anchor points. More... | |
| Dtk_Text | GetBottomLeftText () const |
| Gets the bottom-left text - read only -. More... | |
| Dtk_Text | GetBottomRightText () const |
| Gets the bottom-right text - read only -. More... | |
| Dtk_Text | GetCutOff () const |
| Gets the CutOff text - read only -. More... | |
| Dtk_tab< Dtk_EntityPtr > | GetGeometries () const |
| Retrieves the Dtk_Roughness geometries. More... | |
| const Dtk_ID & | GetID () const |
| Get Internal UniqueID. More... | |
| Dtk_Int32 | GetInvertText () const |
| Gets text is invert or not. 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_Text | GetMiddleLeftText () const |
| Gets the middle-left text - read only -. More... | |
| Dtk_Text | GetMiddleRightText () const |
| Gets the middle-right text - 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_Text | GetOtherRequirement () const |
| Gets the OtherRequirement text - read only -. More... | |
| Dtk_Oriented2dBBox | GetOuterBoundingBox (const Dtk_bool inIncludeSymbolGeometry) const |
| 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... | |
| RoughModeEnum | GetRoughMode () const |
| Gets the rough mode - read only -. More... | |
| ApplyToEnum | GetRoughnessApplyTo () const |
| Gets the apply-to type - read only -. More... | |
| ObtentionTypeEnum | GetRoughnessType () const |
| Gets the obtention type - read only -. More... | |
| virtual Dtk_Size_t | GetSize () const |
| void | GetSymbolColor (Dtk_Int32 &outColorId) const |
| get the color of the Symbol More... | |
| Dtk_Text | GetTopLeftText () const |
| Gets the top-left text - read only -. More... | |
| Dtk_Text | GetTopRightText () const |
| Gets the top-right text - read only -. More... | |
| 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 () |
| Dtk_Roughness & | operator= (const Dtk_Roughness &in) |
| Copy assignment operator. More... | |
| virtual void | PrepareTransfo () |
| void | ProcessSymbolInfos (Dtk_tab< Dtk_pnt > &outPnts, Dtk_Double64 &outCircleRadius) const |
| Process the Roughness Symbol Informations as shown in the picture below. More... | |
| virtual Dtk_ErrorStatus | Reverse () |
| Reverses the Dtk_Annotation. More... | |
| Dtk_Text | rough_mode_to_Dtk_Text () const |
| Converts the rough mode into a Dtk_Text - used to Dtk_Symbol conversion -. More... | |
| Dtk_ErrorStatus | SetAnchorPoint (const Dtk_pnt &inNewLocation, const Dtk_anchor_type &inLocationAnchorType) |
| Sets the Dtk_Roughness anchor point. More... | |
| SetAsDeprecated ("Undefined", "Use Dtk_TextStyle::Justification()") Dtk_justication_type GetJustification() const | |
| Get the justification type - read only -. More... | |
| Dtk_ErrorStatus | SetBottomLeftText (Dtk_Text inText) |
| Sets the bottom-left text. More... | |
| Dtk_ErrorStatus | SetBottomRightText (Dtk_Text inText) |
| Sets the bottom-right text. More... | |
| Dtk_ErrorStatus | SetCutOff (Dtk_Text inText) |
| Sets the CutOff text. More... | |
| void | SetInvertText (Dtk_Int32 inValue=DTK_FALSE) |
| Sets text are invert. More... | |
| Dtk_ErrorStatus | SetLocation (const Dtk_pnt &inLocation) |
| 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... | |
| Dtk_ErrorStatus | SetMiddleLeftText (Dtk_Text inText) |
| Sets the middle-left text. More... | |
| Dtk_ErrorStatus | SetMiddleRightText (Dtk_Text inText) |
| Sets the middle-right text. More... | |
| Dtk_ErrorStatus | SetOffset (const Dtk_Double64 &inOffset) |
| Sets the offset of the Dtk_Annotation. More... | |
| Dtk_ErrorStatus | SetOtherRequirement (Dtk_Text inText) |
| Sets the OtherRequirement text. More... | |
| Dtk_ErrorStatus | SetRotationAngle (const Dtk_Double64 &angle) |
| Sets the annotation angle using the annotation base. More... | |
| Dtk_ErrorStatus | SetRoughMode (Dtk_Text inRoughModeText) |
| Sets the rough mode. More... | |
| Dtk_ErrorStatus | SetRoughnessApplyTo (const ApplyToEnum &inApplyTo) |
| Sets the apply-to type. More... | |
| Dtk_ErrorStatus | SetRoughnessType (const ObtentionTypeEnum &inObtentionType) |
| Sets the obtention type. More... | |
| void | SetSymbolColor (Dtk_Int32 inColorId) const |
| set the color of the Symbol More... | |
| Dtk_ErrorStatus | SetTopLeftText (Dtk_Text inText) |
| Sets the top-left text. More... | |
| Dtk_ErrorStatus | SetTopRightText (Dtk_Text inText) |
| Sets the top-right text. 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... | |
Static Public Member Functions | |
| static Dtk_RoughnessPtr | Create () |
| Calls default constructor to allocate a new object. More... | |
| static Dtk_RoughnessPtr | Create (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... | |
| static Dtk_RoughnessPtr | Create (const Dtk_pnt &inLocationPnt, Dtk_Text inTopLeftText=Dtk_Text(), Dtk_Text inMiddleLeftText=Dtk_Text(), Dtk_Text inBottomLeftText=Dtk_Text(), Dtk_Text inTopRightText=Dtk_Text(), Dtk_Text inMiddleRightText=Dtk_Text(), Dtk_Text inBottomRightText=Dtk_Text(), const ObtentionTypeEnum &inObtentionType=ObtentionTypeNotDefined, const ApplyToEnum &inApplyToType=ApplyToSpecifiedSurface, const Dtk_InfoPtr &inInfos=NULL, 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... | |
| static Dtk_RoughnessPtr | Create (const Dtk_Roughness &in) |
| Calls copy constructor to allocate a new object. More... | |
| static Dtk_RoughnessPtr | Create (Dtk_Roughness &&in) |
| Calls move constructor to allocate a new object. More... | |
| static Dtk_Roughness * | 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 } |
| enum | { _typeID = DTK_TYPE_ROUGHNESS } |
Protected Attributes | |
| Dtk_Handle * | _Private |
| unsigned long | count_ |
This is the Roughness class.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Destructor.
|
protectedinherited |
|
protectedinherited |
|
protected |
|
protectedinherited |
|
protected |
|
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 |
| void Dtk_Roughness::AddAssociatedGeometries | ( | Dtk_tab< Dtk_EntityPtr > | inAssociatedGeometries | ) |
Add Geometries associated to whole Dtk_Roughness.
| inAssociatedGeometries | The Geometries associated to the Dtk_Roughness. |
|
inherited |
Adds a leader to the Dtk_Annotation.
| leader | The leader to be added |
|
protectedvirtual |
Implements Dtk_Annotation.
|
static |
Calls default constructor to allocate a new object.
|
static |
Full featured constructor.
| inLocationPnt | Location point |
| inInfos | Roughness infos |
| inLeadersArray | Leaders array |
| inAngle | Angle |
| inOffSet | Offset |
| inAnchorType | Roughness anchor type |
| inJustificationType | Justification type |
|
static |
Full featured constructor.
| inLocationPnt | Location point |
| inTopLeftText | Top left text |
| inMiddleLeftText | Middle left text |
| inBottomLeftText | Bottom left text |
| inTopRightText | Top right text |
| inMiddleRightText | Middle right text |
| inBottomRightText | Bottom right text |
| inObtentionType | Obtention type |
| inApplyToType | ApplyTo type |
| inInfos | Roughness infos |
| inLeadersArray | Leaders array |
| inAngle | Angle |
| inOffSet | Offset |
| inAnchorType | Roughness anchor type |
| inJustificationType | Justification type |
|
static |
Calls copy constructor to allocate a new object.
| in | Object to copy from. |
|
static |
Calls move constructor to allocate a new object.
| in | Object to move from. |
|
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 |
|
virtual |
|
inherited |
Retrieves the additionnal geometries of the Dtk_2dEntity.
|
inherited |
Retrieves the additionnal texts of the Dtk_2dEntity.
| Dtk_ErrorStatus Dtk_Roughness::GetAnchorPoints | ( | Dtk_pnt(&) | outTabPnts[DTK_NB_ANCHOR_TYPES] | ) |
Processes all the Dtk_Annotation anchor points.
| outTabPnts | The resulting anchor point array. |
|
virtual |
Processes all the Dtk_Annotation anchor points.
| outTabPnts | The resulting anchor point array. |
Implements Dtk_Annotation.
| Dtk_Text Dtk_Roughness::GetBottomLeftText | ( | ) | const |
| Dtk_Text Dtk_Roughness::GetBottomRightText | ( | ) | const |
| Dtk_Text Dtk_Roughness::GetCutOff | ( | ) | const |
| Dtk_tab< Dtk_EntityPtr > Dtk_Roughness::GetGeometries | ( | ) | const |
Retrieves the Dtk_Roughness geometries.
|
inherited |
Get Internal UniqueID.
| Dtk_Int32 Dtk_Roughness::GetInvertText | ( | ) | const |
Gets text is invert or not.
|
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 -.
| Dtk_Text Dtk_Roughness::GetMiddleLeftText | ( | ) | const |
| Dtk_Text Dtk_Roughness::GetMiddleRightText | ( | ) | const |
|
inherited |
Retrieves the number of leaders.
|
inherited |
Gets the annotation offset - read only -.
| Dtk_Text Dtk_Roughness::GetOtherRequirement | ( | ) | const |
Gets the OtherRequirement text - read only -.
| Dtk_Oriented2dBBox Dtk_Roughness::GetOuterBoundingBox | ( | const Dtk_bool | inIncludeSymbolGeometry | ) | const |
|
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) - |
| RoughModeEnum Dtk_Roughness::GetRoughMode | ( | ) | const |
| ApplyToEnum Dtk_Roughness::GetRoughnessApplyTo | ( | ) | const |
| ObtentionTypeEnum Dtk_Roughness::GetRoughnessType | ( | ) | const |
|
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.
| void Dtk_Roughness::GetSymbolColor | ( | Dtk_Int32 & | outColorId | ) | const |
get the color of the Symbol
| outColor | : the color of the symbol. |
| Dtk_Text Dtk_Roughness::GetTopLeftText | ( | ) | const |
| Dtk_Text Dtk_Roughness::GetTopRightText | ( | ) | const |
|
inherited |
Get the X Axis - read only -.
|
inherited |
Get the Y Axis - read only -.
|
inherited |
| Dtk_Roughness& Dtk_Roughness::operator= | ( | const Dtk_Roughness & | in | ) |
Copy assignment operator.
| in | Object to copy from. |
|
virtualinherited |
Reimplemented in Dtk_OffsetSurface.
| void Dtk_Roughness::ProcessSymbolInfos | ( | Dtk_tab< Dtk_pnt > & | outPnts, |
| Dtk_Double64 & | outCircleRadius | ||
| ) | const |
Process the Roughness Symbol Informations as shown in the picture below.
| outPnts | The reference points processed. |
| outCircleRadius | The circle radius processed. |
|
virtualinherited |
Reverses the Dtk_Annotation.
Reimplemented in Dtk_DatumTarget.
| Dtk_Text Dtk_Roughness::rough_mode_to_Dtk_Text | ( | ) | const |
Converts the rough mode into a Dtk_Text - used to Dtk_Symbol conversion -.
|
virtual |
Sets the Dtk_Roughness 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 -.
| Dtk_ErrorStatus Dtk_Roughness::SetBottomLeftText | ( | Dtk_Text | inText | ) |
Sets the bottom-left text.
| inText | The new text. |
| Dtk_ErrorStatus Dtk_Roughness::SetBottomRightText | ( | Dtk_Text | inText | ) |
Sets the bottom-right text.
| inText | The new text. |
| Dtk_ErrorStatus Dtk_Roughness::SetCutOff | ( | Dtk_Text | inText | ) |
Sets the CutOff text.
| inText | The new CutOff text. |
|
virtual |
Sets the location point of the Dtk_Annotation.
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. |
| Dtk_ErrorStatus Dtk_Roughness::SetMiddleLeftText | ( | Dtk_Text | inText | ) |
Sets the middle-left text.
| inText | The new text. |
| Dtk_ErrorStatus Dtk_Roughness::SetMiddleRightText | ( | Dtk_Text | inText | ) |
Sets the middle-right text.
| inText | The new text. |
|
virtual |
Sets the offset of the Dtk_Annotation.
The Offset is used to process bounding frames.
| inOffset | The offset |
Implements Dtk_Annotation.
| Dtk_ErrorStatus Dtk_Roughness::SetOtherRequirement | ( | Dtk_Text | inText | ) |
Sets the OtherRequirement text.
| inText | The new OtherRequirement text. |
|
virtual |
Sets the annotation angle using the annotation base.
| inRotationAngle | The rotation angle to be set |
Reimplemented from Dtk_Annotation.
| Dtk_ErrorStatus Dtk_Roughness::SetRoughMode | ( | Dtk_Text | inRoughModeText | ) |
Sets the rough mode.
| inRoughMode | The new rough mode - in Text form -. |
| Dtk_ErrorStatus Dtk_Roughness::SetRoughnessApplyTo | ( | const ApplyToEnum & | inApplyTo | ) |
Sets the apply-to type.
| inApplyTo | The new apply-to type. |
| Dtk_ErrorStatus Dtk_Roughness::SetRoughnessType | ( | const ObtentionTypeEnum & | inObtentionType | ) |
Sets the obtention type.
| inObtentionType | The obtention type. |
| void Dtk_Roughness::SetSymbolColor | ( | Dtk_Int32 | inColorId | ) | const |
set the color of the Symbol
| inColor | : the color of the symbol. |
| Dtk_ErrorStatus Dtk_Roughness::SetTopLeftText | ( | Dtk_Text | inText | ) |
Sets the top-left text.
| inText | The new text. |
| Dtk_ErrorStatus Dtk_Roughness::SetTopRightText | ( | Dtk_Text | inText | ) |
Sets the top-right text.
| inText | The new text. |
|
virtual |
Applies a transformation matrix to the entity. //!
| inTransfo | The transformation matrix to apply. |
Implements Dtk_Annotation.
| void Dtk_Roughness::Translate | ( | const Dtk_dir & | inTranslationDir | ) |
Translates the Dtk_ReferenceBlock - internal use only -.
| inTranslationDir | the translation vector. |
|
protected |
|
protectedinherited |