OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    XCAFDimTolObjects_GeomToleranceObject Class Reference

    Access object to store dimension and tolerance. More...

    #include <XCAFDimTolObjects_GeomToleranceObject.hxx>

    Inheritance diagram for XCAFDimTolObjects_GeomToleranceObject:

    Public Member Functions

     XCAFDimTolObjects_GeomToleranceObject ()
     XCAFDimTolObjects_GeomToleranceObject (const occ::handle< XCAFDimTolObjects_GeomToleranceObject > &theObj)
    occ::handle< TCollection_HAsciiStringGetSemanticName () const
     Returns semantic name.
    void SetSemanticName (const occ::handle< TCollection_HAsciiString > &theName)
     Sets semantic name.
    void SetType (const XCAFDimTolObjects_GeomToleranceType theType)
     Sets type of the object.
    XCAFDimTolObjects_GeomToleranceType GetType () const
     Returns type of the object.
    void SetTypeOfValue (const XCAFDimTolObjects_GeomToleranceTypeValue theTypeOfValue)
     Sets type of tolerance value.
    XCAFDimTolObjects_GeomToleranceTypeValue GetTypeOfValue () const
     Returns type of tolerance value.
    void SetValue (const double theValue)
     Sets tolerance value.
    double GetValue () const
     Returns tolerance value.
    void SetMaterialRequirementModifier (const XCAFDimTolObjects_GeomToleranceMatReqModif theMatReqModif)
     Sets material requirement of the tolerance.
    XCAFDimTolObjects_GeomToleranceMatReqModif GetMaterialRequirementModifier () const
     Returns material requirement of the tolerance.
    void SetZoneModifier (const XCAFDimTolObjects_GeomToleranceZoneModif theZoneModif)
     Sets tolerance zone.
    XCAFDimTolObjects_GeomToleranceZoneModif GetZoneModifier () const
     Returns tolerance zone.
    void SetValueOfZoneModifier (const double theValue)
     Sets value associated with tolerance zone.
    double GetValueOfZoneModifier () const
     Returns value associated with tolerance zone.
    void SetModifiers (const NCollection_Sequence< XCAFDimTolObjects_GeomToleranceModif > &theModifiers)
     Sets new sequence of tolerance modifiers.
    void AddModifier (const XCAFDimTolObjects_GeomToleranceModif theModifier)
     Adds a tolerance modifier to the sequence of modifiers.
    NCollection_Sequence< XCAFDimTolObjects_GeomToleranceModifGetModifiers () const
     Returns a sequence of modifiers of the tolerance.
    void SetMaxValueModifier (const double theModifier)
     Sets the maximal upper tolerance value for tolerance with modifiers.
    double GetMaxValueModifier () const
     Returns the maximal upper tolerance.
    void SetAxis (const gp_Ax2 &theAxis)
    gp_Ax2 GetAxis () const
    bool HasAxis () const
    void SetPlane (const gp_Ax2 &thePlane)
     Sets annotation plane.
    const gp_Ax2GetPlane () const
     Returns annotation plane.
    void SetPoint (const gp_Pnt &thePnt)
     Sets reference point.
    const gp_PntGetPoint () const
     Returns reference point.
    void SetPointTextAttach (const gp_Pnt &thePntText)
     Sets text position.
    const gp_PntGetPointTextAttach () const
     Returns the text position.
    bool HasPlane () const
     Returns True if the object has annotation plane.
    bool HasPoint () const
     Returns True if reference point is specified.
    bool HasPointText () const
     Returns True if text position is specified.
    void SetPresentation (const TopoDS_Shape &thePresentation, const occ::handle< TCollection_HAsciiString > &thePresentationName)
     Set graphical presentation for object.
    TopoDS_Shape GetPresentation () const
     Returns graphical presentation of the object.
    occ::handle< TCollection_HAsciiStringGetPresentationName () const
     Returns graphical presentation of the object.
    bool HasAffectedPlane () const
    XCAFDimTolObjects_ToleranceZoneAffectedPlane GetAffectedPlaneType () const
    void SetAffectedPlaneType (const XCAFDimTolObjects_ToleranceZoneAffectedPlane theType)
    void SetAffectedPlane (const gp_Pln &thePlane)
     Sets affected plane.
    void SetAffectedPlane (const gp_Pln &thePlane, const XCAFDimTolObjects_ToleranceZoneAffectedPlane theType)
     Sets affected plane.
    const gp_PlnGetAffectedPlane () const
     Returns affected plane.
    void DumpJson (Standard_OStream &theOStream, int theDepth=-1) const
     Dumps the content of me into the stream.
    Public Member Functions inherited from Standard_Transient
     Standard_Transient ()
     Empty constructor.
     Standard_Transient (const Standard_Transient &)
     Copy constructor – does nothing.
    Standard_Transientoperator= (const Standard_Transient &)
     Assignment operator, needed to avoid copying reference counter.
    virtual ~Standard_Transient ()=default
     Destructor must be virtual.
    virtual const opencascade::handle< Standard_Type > & DynamicType () const
     Returns a type descriptor about this object.
    bool IsInstance (const opencascade::handle< Standard_Type > &theType) const
     Returns a true value if this is an instance of Type.
    bool IsInstance (const char *const theTypeName) const
     Returns a true value if this is an instance of TypeName.
    bool IsKind (const opencascade::handle< Standard_Type > &theType) const
     Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
    bool IsKind (const char *const theTypeName) const
     Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism.
    Standard_TransientThis () const
     Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero.
    int GetRefCount () const noexcept
     Get the reference counter of this object.
    void IncrementRefCounter () noexcept
     Increments the reference counter of this object. Uses relaxed memory ordering since incrementing only requires atomicity, not synchronization with other memory operations.
    int DecrementRefCounter () noexcept
     Decrements the reference counter of this object; returns the decremented value. Uses release ordering for the decrement to ensure all writes to the object are visible before the count reaches zero. An acquire fence is added only when the count reaches zero, ensuring proper synchronization before deletion. This is more efficient than using acq_rel for every decrement.
    virtual void Delete () const
     Memory deallocator for transient classes.

    Additional Inherited Members

    typedef void base_type
     Returns a type descriptor about this object.
    static constexpr const char * get_type_name ()
     Returns a type descriptor about this object.
    static const opencascade::handle< Standard_Type > & get_type_descriptor ()
     Returns type descriptor of Standard_Transient class.

    Detailed Description

    Access object to store dimension and tolerance.

    Constructor & Destructor Documentation

    ◆ XCAFDimTolObjects_GeomToleranceObject() [1/2]

    XCAFDimTolObjects_GeomToleranceObject::XCAFDimTolObjects_GeomToleranceObject ( )

    ◆ XCAFDimTolObjects_GeomToleranceObject() [2/2]

    XCAFDimTolObjects_GeomToleranceObject::XCAFDimTolObjects_GeomToleranceObject ( const occ::handle< XCAFDimTolObjects_GeomToleranceObject > & theObj)

    Member Function Documentation

    ◆ AddModifier()

    void XCAFDimTolObjects_GeomToleranceObject::AddModifier ( const XCAFDimTolObjects_GeomToleranceModif theModifier)

    Adds a tolerance modifier to the sequence of modifiers.

    ◆ DumpJson()

    void XCAFDimTolObjects_GeomToleranceObject::DumpJson ( Standard_OStream & theOStream,
    int theDepth = -1 ) const

    Dumps the content of me into the stream.

    ◆ GetAffectedPlane()

    const gp_Pln & XCAFDimTolObjects_GeomToleranceObject::GetAffectedPlane ( ) const
    inline

    Returns affected plane.

    ◆ GetAffectedPlaneType()

    XCAFDimTolObjects_ToleranceZoneAffectedPlane XCAFDimTolObjects_GeomToleranceObject::GetAffectedPlaneType ( ) const
    inline

    ◆ GetAxis()

    gp_Ax2 XCAFDimTolObjects_GeomToleranceObject::GetAxis ( ) const

    ◆ GetMaterialRequirementModifier()

    XCAFDimTolObjects_GeomToleranceMatReqModif XCAFDimTolObjects_GeomToleranceObject::GetMaterialRequirementModifier ( ) const

    Returns material requirement of the tolerance.

    ◆ GetMaxValueModifier()

    double XCAFDimTolObjects_GeomToleranceObject::GetMaxValueModifier ( ) const

    Returns the maximal upper tolerance.

    ◆ GetModifiers()

    NCollection_Sequence< XCAFDimTolObjects_GeomToleranceModif > XCAFDimTolObjects_GeomToleranceObject::GetModifiers ( ) const

    Returns a sequence of modifiers of the tolerance.

    ◆ GetPlane()

    const gp_Ax2 & XCAFDimTolObjects_GeomToleranceObject::GetPlane ( ) const
    inline

    Returns annotation plane.

    ◆ GetPoint()

    const gp_Pnt & XCAFDimTolObjects_GeomToleranceObject::GetPoint ( ) const
    inline

    Returns reference point.

    ◆ GetPointTextAttach()

    const gp_Pnt & XCAFDimTolObjects_GeomToleranceObject::GetPointTextAttach ( ) const
    inline

    Returns the text position.

    ◆ GetPresentation()

    TopoDS_Shape XCAFDimTolObjects_GeomToleranceObject::GetPresentation ( ) const
    inline

    Returns graphical presentation of the object.

    ◆ GetPresentationName()

    occ::handle< TCollection_HAsciiString > XCAFDimTolObjects_GeomToleranceObject::GetPresentationName ( ) const
    inline

    Returns graphical presentation of the object.

    ◆ GetSemanticName()

    occ::handle< TCollection_HAsciiString > XCAFDimTolObjects_GeomToleranceObject::GetSemanticName ( ) const

    Returns semantic name.

    ◆ GetType()

    XCAFDimTolObjects_GeomToleranceType XCAFDimTolObjects_GeomToleranceObject::GetType ( ) const

    Returns type of the object.

    ◆ GetTypeOfValue()

    XCAFDimTolObjects_GeomToleranceTypeValue XCAFDimTolObjects_GeomToleranceObject::GetTypeOfValue ( ) const

    Returns type of tolerance value.

    ◆ GetValue()

    double XCAFDimTolObjects_GeomToleranceObject::GetValue ( ) const

    Returns tolerance value.

    ◆ GetValueOfZoneModifier()

    double XCAFDimTolObjects_GeomToleranceObject::GetValueOfZoneModifier ( ) const

    Returns value associated with tolerance zone.

    ◆ GetZoneModifier()

    XCAFDimTolObjects_GeomToleranceZoneModif XCAFDimTolObjects_GeomToleranceObject::GetZoneModifier ( ) const

    Returns tolerance zone.

    ◆ HasAffectedPlane()

    bool XCAFDimTolObjects_GeomToleranceObject::HasAffectedPlane ( ) const
    inline

    ◆ HasAxis()

    bool XCAFDimTolObjects_GeomToleranceObject::HasAxis ( ) const

    ◆ HasPlane()

    bool XCAFDimTolObjects_GeomToleranceObject::HasPlane ( ) const
    inline

    Returns True if the object has annotation plane.

    ◆ HasPoint()

    bool XCAFDimTolObjects_GeomToleranceObject::HasPoint ( ) const
    inline

    Returns True if reference point is specified.

    ◆ HasPointText()

    bool XCAFDimTolObjects_GeomToleranceObject::HasPointText ( ) const
    inline

    Returns True if text position is specified.

    ◆ SetAffectedPlane() [1/2]

    void XCAFDimTolObjects_GeomToleranceObject::SetAffectedPlane ( const gp_Pln & thePlane)
    inline

    Sets affected plane.

    ◆ SetAffectedPlane() [2/2]

    void XCAFDimTolObjects_GeomToleranceObject::SetAffectedPlane ( const gp_Pln & thePlane,
    const XCAFDimTolObjects_ToleranceZoneAffectedPlane theType )
    inline

    Sets affected plane.

    ◆ SetAffectedPlaneType()

    void XCAFDimTolObjects_GeomToleranceObject::SetAffectedPlaneType ( const XCAFDimTolObjects_ToleranceZoneAffectedPlane theType)
    inline

    ◆ SetAxis()

    void XCAFDimTolObjects_GeomToleranceObject::SetAxis ( const gp_Ax2 & theAxis)

    ◆ SetMaterialRequirementModifier()

    void XCAFDimTolObjects_GeomToleranceObject::SetMaterialRequirementModifier ( const XCAFDimTolObjects_GeomToleranceMatReqModif theMatReqModif)

    Sets material requirement of the tolerance.

    ◆ SetMaxValueModifier()

    void XCAFDimTolObjects_GeomToleranceObject::SetMaxValueModifier ( const double theModifier)

    Sets the maximal upper tolerance value for tolerance with modifiers.

    ◆ SetModifiers()

    void XCAFDimTolObjects_GeomToleranceObject::SetModifiers ( const NCollection_Sequence< XCAFDimTolObjects_GeomToleranceModif > & theModifiers)

    Sets new sequence of tolerance modifiers.

    ◆ SetPlane()

    void XCAFDimTolObjects_GeomToleranceObject::SetPlane ( const gp_Ax2 & thePlane)
    inline

    Sets annotation plane.

    ◆ SetPoint()

    void XCAFDimTolObjects_GeomToleranceObject::SetPoint ( const gp_Pnt & thePnt)
    inline

    Sets reference point.

    ◆ SetPointTextAttach()

    void XCAFDimTolObjects_GeomToleranceObject::SetPointTextAttach ( const gp_Pnt & thePntText)
    inline

    Sets text position.

    ◆ SetPresentation()

    void XCAFDimTolObjects_GeomToleranceObject::SetPresentation ( const TopoDS_Shape & thePresentation,
    const occ::handle< TCollection_HAsciiString > & thePresentationName )
    inline

    Set graphical presentation for object.

    ◆ SetSemanticName()

    void XCAFDimTolObjects_GeomToleranceObject::SetSemanticName ( const occ::handle< TCollection_HAsciiString > & theName)

    Sets semantic name.

    ◆ SetType()

    void XCAFDimTolObjects_GeomToleranceObject::SetType ( const XCAFDimTolObjects_GeomToleranceType theType)

    Sets type of the object.

    ◆ SetTypeOfValue()

    void XCAFDimTolObjects_GeomToleranceObject::SetTypeOfValue ( const XCAFDimTolObjects_GeomToleranceTypeValue theTypeOfValue)

    Sets type of tolerance value.

    ◆ SetValue()

    void XCAFDimTolObjects_GeomToleranceObject::SetValue ( const double theValue)

    Sets tolerance value.

    ◆ SetValueOfZoneModifier()

    void XCAFDimTolObjects_GeomToleranceObject::SetValueOfZoneModifier ( const double theValue)

    Sets value associated with tolerance zone.

    ◆ SetZoneModifier()

    void XCAFDimTolObjects_GeomToleranceObject::SetZoneModifier ( const XCAFDimTolObjects_GeomToleranceZoneModif theZoneModif)

    Sets tolerance zone.


    The documentation for this class was generated from the following file: