Open CASCADE Technology  7.2.0
Public Member Functions

XCAFDimTolObjects_DimensionObject Class Reference

object to store dimension More...

#include <XCAFDimTolObjects_DimensionObject.hxx>

Inheritance diagram for XCAFDimTolObjects_DimensionObject:
Inheritance graph
[legend]

Public Member Functions

 XCAFDimTolObjects_DimensionObject ()
 
 XCAFDimTolObjects_DimensionObject (const Handle< XCAFDimTolObjects_DimensionObject > &theObj)
 
void SetQualifier (const XCAFDimTolObjects_DimensionQualifier theQualifier)
 
XCAFDimTolObjects_DimensionQualifier GetQualifier () const
 
Standard_Boolean HasQualifier () const
 
void SetType (const XCAFDimTolObjects_DimensionType theTyupe)
 
XCAFDimTolObjects_DimensionType GetType () const
 
Standard_Real GetValue () const
 
Handle< TColStd_HArray1OfReal > GetValues () const
 
void SetValue (const Standard_Real theValue)
 
void SetValues (const Handle< TColStd_HArray1OfReal > &theValue)
 
Standard_Boolean IsDimWithRange () const
 
void SetUpperBound (const Standard_Real theUpperBound)
 
void SetLowerBound (const Standard_Real theLowerBound)
 
Standard_Real GetUpperBound () const
 
Standard_Real GetLowerBound () const
 
Standard_Boolean IsDimWithPlusMinusTolerance () const
 
Standard_Boolean SetUpperTolValue (const Standard_Real theUperTolValue)
 
Standard_Boolean SetLowerTolValue (const Standard_Real theLowerTolValue)
 
Standard_Real GetUpperTolValue () const
 
Standard_Real GetLowerTolValue () const
 
Standard_Boolean IsDimWithClassOfTolerance () const
 
void SetClassOfTolerance (const Standard_Boolean theHole, const XCAFDimTolObjects_DimensionFormVariance theFormVariance, const XCAFDimTolObjects_DimensionGrade theGrade)
 
Standard_Boolean GetClassOfTolerance (Standard_Boolean &theHole, XCAFDimTolObjects_DimensionFormVariance &theFormVariance, XCAFDimTolObjects_DimensionGrade &theGrade) const
 
void SetNbOfDecimalPlaces (const Standard_Integer theL, const Standard_Integer theR)
 
void GetNbOfDecimalPlaces (Standard_Integer &theL, Standard_Integer &theR) const
 
XCAFDimTolObjects_DimensionModifiersSequence GetModifiers () const
 
void SetModifiers (const XCAFDimTolObjects_DimensionModifiersSequence &theModifiers)
 
void AddModifier (const XCAFDimTolObjects_DimensionModif theModifier)
 
TopoDS_Edge GetPath () const
 
void SetPath (const TopoDS_Edge &thePath)
 
Standard_Boolean GetDirection (gp_Dir &theDir) const
 
Standard_Boolean SetDirection (const gp_Dir &theDir)
 
Handle< TColgp_HArray1OfPnt > GetPoints () const
 
void SetPointTextAttach (const gp_Pnt &thePntText)
 
const gp_PntGetPointTextAttach () const
 
Standard_Boolean HasTextPoint () const
 
void SetPlane (const gp_Ax2 &thePlane)
 
const gp_Ax2GetPlane () const
 
Standard_Boolean HasPlane () const
 
Standard_Boolean HasPoint () const
 Returns true, if connection point exists (for dimesional_size), if connection point for first shape exists (for dimensional_location) More...
 
Standard_Boolean HasPoint2 () const
 
void SetPoint (const gp_Pnt thePnt)
 Set connection point (for dimesional_size), Set connection point for first shape (for dimensional_location) More...
 
void SetPoint2 (const gp_Pnt thePnt)
 
gp_Pnt GetPoint () const
 Get connection point (for dimesional_size), Get connection point for first shape (for dimensional_location) More...
 
gp_Pnt GetPoint2 () const
 
void SetPresentation (const TopoDS_Shape &thePresentation, const Handle< TCollection_HAsciiString > &thePresentationName)
 Set graphical presentation for object. More...
 
TopoDS_Shape GetPresentation () const
 Returns graphical presentation of the object. More...
 
Handle< TCollection_HAsciiStringGetPresentationName () const
 Returns graphical presentation of the object. More...
 
Standard_Boolean HasDescriptions () const
 Returns true, if the object has descriptions. More...
 
Standard_Integer NbDescriptions () const
 Returns number of descriptions. More...
 
Handle< TCollection_HAsciiStringGetDescription (const Standard_Integer theNumber) const
 Returns description with the given number. More...
 
Handle< TCollection_HAsciiStringGetDescriptionName (const Standard_Integer theNumber) const
 Returns name of description with the given number. More...
 
void RemoveDescription (const Standard_Integer theNumber)
 Remove description with the given number. More...
 
void AddDescription (const Handle< TCollection_HAsciiString > theDescription, const Handle< TCollection_HAsciiString > theName)
 Add new description. More...
 
- Public Member Functions inherited from Standard_Transient
 Standard_Transient ()
 Empty constructor. More...
 
 Standard_Transient (const Standard_Transient &)
 Copy constructor – does nothing. More...
 
Standard_Transientoperator= (const Standard_Transient &)
 Assignment operator, needed to avoid copying reference counter. More...
 
virtual ~Standard_Transient ()
 Destructor must be virtual. More...
 
virtual void Delete () const
 Memory deallocator for transient classes. More...
 
virtual const opencascade::handle< Standard_Type > & DynamicType () const
 Returns a type descriptor about this object. More...
 
Standard_Boolean IsInstance (const opencascade::handle< Standard_Type > &theType) const
 Returns a true value if this is an instance of Type. More...
 
Standard_Boolean IsInstance (const Standard_CString theTypeName) const
 Returns a true value if this is an instance of TypeName. More...
 
Standard_Boolean 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. More...
 
Standard_Boolean IsKind (const Standard_CString 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. More...
 
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. More...
 
Standard_Integer GetRefCount () const
 Get the reference counter of this object. More...
 
void IncrementRefCounter () const
 Increments the reference counter of this object. More...
 
Standard_Integer DecrementRefCounter () const
 Decrements the reference counter of this object; returns the decremented value. More...
 

Additional Inherited Members

- Public Types inherited from Standard_Transient
typedef void base_type
 Returns a type descriptor about this object. More...
 
- Static Public Member Functions inherited from Standard_Transient
static const char * get_type_name ()
 Returns a type descriptor about this object. More...
 
static const opencascade::handle< Standard_Type > & get_type_descriptor ()
 Returns type descriptor of Standard_Transient class. More...
 

Detailed Description

object to store dimension

Constructor & Destructor Documentation

◆ XCAFDimTolObjects_DimensionObject() [1/2]

XCAFDimTolObjects_DimensionObject::XCAFDimTolObjects_DimensionObject ( )

◆ XCAFDimTolObjects_DimensionObject() [2/2]

XCAFDimTolObjects_DimensionObject::XCAFDimTolObjects_DimensionObject ( const Handle< XCAFDimTolObjects_DimensionObject > &  theObj)

Member Function Documentation

◆ AddDescription()

void XCAFDimTolObjects_DimensionObject::AddDescription ( const Handle< TCollection_HAsciiString theDescription,
const Handle< TCollection_HAsciiString theName 
)
inline

Add new description.

◆ AddModifier()

void XCAFDimTolObjects_DimensionObject::AddModifier ( const XCAFDimTolObjects_DimensionModif  theModifier)

◆ GetClassOfTolerance()

Standard_Boolean XCAFDimTolObjects_DimensionObject::GetClassOfTolerance ( Standard_Boolean theHole,
XCAFDimTolObjects_DimensionFormVariance theFormVariance,
XCAFDimTolObjects_DimensionGrade theGrade 
) const

◆ GetDescription()

Handle< TCollection_HAsciiString > XCAFDimTolObjects_DimensionObject::GetDescription ( const Standard_Integer  theNumber) const
inline

Returns description with the given number.

◆ GetDescriptionName()

Handle< TCollection_HAsciiString > XCAFDimTolObjects_DimensionObject::GetDescriptionName ( const Standard_Integer  theNumber) const
inline

Returns name of description with the given number.

◆ GetDirection()

Standard_Boolean XCAFDimTolObjects_DimensionObject::GetDirection ( gp_Dir theDir) const

◆ GetLowerBound()

Standard_Real XCAFDimTolObjects_DimensionObject::GetLowerBound ( ) const

◆ GetLowerTolValue()

Standard_Real XCAFDimTolObjects_DimensionObject::GetLowerTolValue ( ) const

◆ GetModifiers()

XCAFDimTolObjects_DimensionModifiersSequence XCAFDimTolObjects_DimensionObject::GetModifiers ( ) const

◆ GetNbOfDecimalPlaces()

void XCAFDimTolObjects_DimensionObject::GetNbOfDecimalPlaces ( Standard_Integer theL,
Standard_Integer theR 
) const

◆ GetPath()

TopoDS_Edge XCAFDimTolObjects_DimensionObject::GetPath ( ) const

◆ GetPlane()

const gp_Ax2& XCAFDimTolObjects_DimensionObject::GetPlane ( ) const
inline

◆ GetPoint()

gp_Pnt XCAFDimTolObjects_DimensionObject::GetPoint ( ) const
inline

Get connection point (for dimesional_size), Get connection point for first shape (for dimensional_location)

◆ GetPoint2()

gp_Pnt XCAFDimTolObjects_DimensionObject::GetPoint2 ( ) const
inline

◆ GetPoints()

Handle< TColgp_HArray1OfPnt > XCAFDimTolObjects_DimensionObject::GetPoints ( ) const

◆ GetPointTextAttach()

const gp_Pnt& XCAFDimTolObjects_DimensionObject::GetPointTextAttach ( ) const
inline

◆ GetPresentation()

TopoDS_Shape XCAFDimTolObjects_DimensionObject::GetPresentation ( ) const
inline

Returns graphical presentation of the object.

◆ GetPresentationName()

Handle< TCollection_HAsciiString > XCAFDimTolObjects_DimensionObject::GetPresentationName ( ) const
inline

Returns graphical presentation of the object.

◆ GetQualifier()

XCAFDimTolObjects_DimensionQualifier XCAFDimTolObjects_DimensionObject::GetQualifier ( ) const

◆ GetType()

XCAFDimTolObjects_DimensionType XCAFDimTolObjects_DimensionObject::GetType ( ) const

◆ GetUpperBound()

Standard_Real XCAFDimTolObjects_DimensionObject::GetUpperBound ( ) const

◆ GetUpperTolValue()

Standard_Real XCAFDimTolObjects_DimensionObject::GetUpperTolValue ( ) const

◆ GetValue()

Standard_Real XCAFDimTolObjects_DimensionObject::GetValue ( ) const

◆ GetValues()

Handle< TColStd_HArray1OfReal > XCAFDimTolObjects_DimensionObject::GetValues ( ) const

◆ HasDescriptions()

Standard_Boolean XCAFDimTolObjects_DimensionObject::HasDescriptions ( ) const
inline

Returns true, if the object has descriptions.

◆ HasPlane()

Standard_Boolean XCAFDimTolObjects_DimensionObject::HasPlane ( ) const
inline

◆ HasPoint()

Standard_Boolean XCAFDimTolObjects_DimensionObject::HasPoint ( ) const
inline

Returns true, if connection point exists (for dimesional_size), if connection point for first shape exists (for dimensional_location)

◆ HasPoint2()

Standard_Boolean XCAFDimTolObjects_DimensionObject::HasPoint2 ( ) const
inline

◆ HasQualifier()

Standard_Boolean XCAFDimTolObjects_DimensionObject::HasQualifier ( ) const

◆ HasTextPoint()

Standard_Boolean XCAFDimTolObjects_DimensionObject::HasTextPoint ( ) const
inline

◆ IsDimWithClassOfTolerance()

Standard_Boolean XCAFDimTolObjects_DimensionObject::IsDimWithClassOfTolerance ( ) const

◆ IsDimWithPlusMinusTolerance()

Standard_Boolean XCAFDimTolObjects_DimensionObject::IsDimWithPlusMinusTolerance ( ) const

◆ IsDimWithRange()

Standard_Boolean XCAFDimTolObjects_DimensionObject::IsDimWithRange ( ) const

◆ NbDescriptions()

Standard_Integer XCAFDimTolObjects_DimensionObject::NbDescriptions ( ) const
inline

Returns number of descriptions.

◆ RemoveDescription()

void XCAFDimTolObjects_DimensionObject::RemoveDescription ( const Standard_Integer  theNumber)

Remove description with the given number.

◆ SetClassOfTolerance()

void XCAFDimTolObjects_DimensionObject::SetClassOfTolerance ( const Standard_Boolean  theHole,
const XCAFDimTolObjects_DimensionFormVariance  theFormVariance,
const XCAFDimTolObjects_DimensionGrade  theGrade 
)

◆ SetDirection()

Standard_Boolean XCAFDimTolObjects_DimensionObject::SetDirection ( const gp_Dir theDir)

◆ SetLowerBound()

void XCAFDimTolObjects_DimensionObject::SetLowerBound ( const Standard_Real  theLowerBound)

◆ SetLowerTolValue()

Standard_Boolean XCAFDimTolObjects_DimensionObject::SetLowerTolValue ( const Standard_Real  theLowerTolValue)

◆ SetModifiers()

void XCAFDimTolObjects_DimensionObject::SetModifiers ( const XCAFDimTolObjects_DimensionModifiersSequence theModifiers)

◆ SetNbOfDecimalPlaces()

void XCAFDimTolObjects_DimensionObject::SetNbOfDecimalPlaces ( const Standard_Integer  theL,
const Standard_Integer  theR 
)

◆ SetPath()

void XCAFDimTolObjects_DimensionObject::SetPath ( const TopoDS_Edge thePath)

◆ SetPlane()

void XCAFDimTolObjects_DimensionObject::SetPlane ( const gp_Ax2 thePlane)
inline

◆ SetPoint()

void XCAFDimTolObjects_DimensionObject::SetPoint ( const gp_Pnt  thePnt)
inline

Set connection point (for dimesional_size), Set connection point for first shape (for dimensional_location)

◆ SetPoint2()

void XCAFDimTolObjects_DimensionObject::SetPoint2 ( const gp_Pnt  thePnt)
inline

◆ SetPointTextAttach()

void XCAFDimTolObjects_DimensionObject::SetPointTextAttach ( const gp_Pnt thePntText)
inline

◆ SetPresentation()

void XCAFDimTolObjects_DimensionObject::SetPresentation ( const TopoDS_Shape thePresentation,
const Handle< TCollection_HAsciiString > &  thePresentationName 
)
inline

Set graphical presentation for object.

◆ SetQualifier()

void XCAFDimTolObjects_DimensionObject::SetQualifier ( const XCAFDimTolObjects_DimensionQualifier  theQualifier)

◆ SetType()

void XCAFDimTolObjects_DimensionObject::SetType ( const XCAFDimTolObjects_DimensionType  theTyupe)

◆ SetUpperBound()

void XCAFDimTolObjects_DimensionObject::SetUpperBound ( const Standard_Real  theUpperBound)

◆ SetUpperTolValue()

Standard_Boolean XCAFDimTolObjects_DimensionObject::SetUpperTolValue ( const Standard_Real  theUperTolValue)

◆ SetValue()

void XCAFDimTolObjects_DimensionObject::SetValue ( const Standard_Real  theValue)

◆ SetValues()

void XCAFDimTolObjects_DimensionObject::SetValues ( const Handle< TColStd_HArray1OfReal > &  theValue)

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