Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions
TopOpeBRepDS_HDataStructure Class Reference

#include <TopOpeBRepDS_HDataStructure.hxx>

Inheritance diagram for TopOpeBRepDS_HDataStructure:
Inheritance graph
[legend]

Public Member Functions

 TopOpeBRepDS_HDataStructure ()
 
void AddAncestors (const TopoDS_Shape &S)
 
void AddAncestors (const TopoDS_Shape &S, const TopAbs_ShapeEnum T1, const TopAbs_ShapeEnum T2)
 Update the data structure with shapes of type T1 containing a subshape of type T2 which is stored in the DS. Used by the previous one.
 
void ChkIntg ()
 Check the integrity of the DS.
 
const TopOpeBRepDS_DataStructureDS () const
 
TopOpeBRepDS_DataStructureChangeDS ()
 
int NbSurfaces () const
 
int NbCurves () const
 
int NbPoints () const
 
const TopOpeBRepDS_SurfaceSurface (const int I) const
 Returns the surface of index .
 
TopOpeBRepDS_CurveIterator SurfaceCurves (const int I) const
 Returns an iterator on the curves on the surface .
 
const TopOpeBRepDS_CurveCurve (const int I) const
 Returns the Curve of index .
 
TopOpeBRepDS_CurveChangeCurve (const int I)
 Returns the Curve of index .
 
TopOpeBRepDS_PointIterator CurvePoints (const int I) const
 Returns an iterator on the points on the curve .
 
const TopOpeBRepDS_PointPoint (const int I) const
 Returns the point of index .
 
int NbShapes () const
 
const TopoDS_ShapeShape (const int I, const bool FindKeep=true) const
 Returns the shape of index in the DS.
 
int Shape (const TopoDS_Shape &S, const bool FindKeep=true) const
 Returns the index of shape in the DS returns 0 if is not in the DS.
 
bool HasGeometry (const TopoDS_Shape &S) const
 Returns True if has new geometries.
 
bool HasShape (const TopoDS_Shape &S, const bool FindKeep=true) const
 Returns True if has new geometries (SOLID,FACE,EDGE) or if (SHELL,WIRE) has sub-shape (FACE,EDGE) with new geometries.
 
bool HasSameDomain (const TopoDS_Shape &S, const bool FindKeep=true) const
 Returns True if share a geometrical domain with some other shapes.
 
NCollection_List< TopoDS_Shape >::Iterator SameDomain (const TopoDS_Shape &S) const
 Returns an iterator on the SameDomain shapes attached to the shape .
 
TopOpeBRepDS_Config SameDomainOrientation (const TopoDS_Shape &S) const
 Returns orientation of shape compared with its reference shape.
 
int SameDomainReference (const TopoDS_Shape &S) const
 Returns orientation of shape compared with its reference shape.
 
TopOpeBRepDS_SurfaceIterator SolidSurfaces (const TopoDS_Shape &S) const
 Returns an iterator on the surfaces attached to the solid .
 
TopOpeBRepDS_SurfaceIterator SolidSurfaces (const int I) const
 Returns an iterator on the surfaces attached to the solid .
 
TopOpeBRepDS_CurveIterator FaceCurves (const TopoDS_Shape &F) const
 Returns an iterator on the curves attached to the face <F>.
 
TopOpeBRepDS_CurveIterator FaceCurves (const int I) const
 Returns an iterator on the curves attached to the face .
 
TopOpeBRepDS_PointIterator EdgePoints (const TopoDS_Shape &E) const
 Returns an iterator on the points attached to the edge <E>.
 
int MakeCurve (const TopOpeBRepDS_Curve &C1, TopOpeBRepDS_Curve &C2)
 
void RemoveCurve (const int iC)
 
int NbGeometry (const TopOpeBRepDS_Kind K) const
 
int NbTopology (const TopOpeBRepDS_Kind K) const
 
int NbTopology () const
 
bool EdgesSameParameter () const
 returns True if all the edges stored as shapes in the DS are SameParameter, otherwise False.
 
void SortOnParameter (const NCollection_List< occ::handle< TopOpeBRepDS_Interference > > &L1, NCollection_List< occ::handle< TopOpeBRepDS_Interference > > &L2) const
 
void SortOnParameter (NCollection_List< occ::handle< TopOpeBRepDS_Interference > > &L) const
 
void MinMaxOnParameter (const NCollection_List< occ::handle< TopOpeBRepDS_Interference > > &L, double &Min, double &Max) const
 
bool ScanInterfList (NCollection_List< occ::handle< TopOpeBRepDS_Interference > >::Iterator &IT, const TopOpeBRepDS_Point &PDS) const
 Search, among a list of interferences accessed by the iterator <IT>, a geometry <G> whose 3D point is identical to the 3D point of the TheDSPoint <PDS>. returns True if such an interference has been found, False else. if True, iterator It points (by the Value() method) on the first interference accessing an identical 3D point.
 
bool GetGeometry (NCollection_List< occ::handle< TopOpeBRepDS_Interference > >::Iterator &IT, const TopOpeBRepDS_Point &PDS, int &G, TopOpeBRepDS_Kind &K) const
 Get the geometry of a DS point <PDS>. Search for it with ScanInterfList (previous method). if found, set <G,K> to the geometry,kind of the interference found. returns the value of ScanInterfList().
 
void StoreInterference (const occ::handle< TopOpeBRepDS_Interference > &I, NCollection_List< occ::handle< TopOpeBRepDS_Interference > > &LI, const TCollection_AsciiString &str="")
 Add interference to list .
 
void StoreInterference (const occ::handle< TopOpeBRepDS_Interference > &I, const TopoDS_Shape &S, const TCollection_AsciiString &str="")
 Add interference to list of interference of shape .
 
void StoreInterference (const occ::handle< TopOpeBRepDS_Interference > &I, const int IS, const TCollection_AsciiString &str="")
 Add interference to list of interference of shape <IS>.
 
void StoreInterferences (const NCollection_List< occ::handle< TopOpeBRepDS_Interference > > &LI, const TopoDS_Shape &S, const TCollection_AsciiString &str="")
 
void StoreInterferences (const NCollection_List< occ::handle< TopOpeBRepDS_Interference > > &LI, const int IS, const TCollection_AsciiString &str="")
 
void ClearStoreInterferences (const NCollection_List< occ::handle< TopOpeBRepDS_Interference > > &LI, const TopoDS_Shape &S, const TCollection_AsciiString &str="")
 
void ClearStoreInterferences (const NCollection_List< occ::handle< TopOpeBRepDS_Interference > > &LI, const int IS, const TCollection_AsciiString &str="")
 
- 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

- Public Types inherited from Standard_Transient
typedef void base_type
 Returns a type descriptor about this object.
 
- Static Public Member Functions inherited from Standard_Transient
static constexpr const charget_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.
 

Constructor & Destructor Documentation

◆ TopOpeBRepDS_HDataStructure()

TopOpeBRepDS_HDataStructure::TopOpeBRepDS_HDataStructure ( )

Member Function Documentation

◆ AddAncestors() [1/2]

void TopOpeBRepDS_HDataStructure::AddAncestors ( const TopoDS_Shape & S)

◆ AddAncestors() [2/2]

void TopOpeBRepDS_HDataStructure::AddAncestors ( const TopoDS_Shape & S,
const TopAbs_ShapeEnum T1,
const TopAbs_ShapeEnum T2 )

Update the data structure with shapes of type T1 containing a subshape of type T2 which is stored in the DS. Used by the previous one.

◆ ChangeCurve()

TopOpeBRepDS_Curve & TopOpeBRepDS_HDataStructure::ChangeCurve ( const int I)

Returns the Curve of index .

◆ ChangeDS()

TopOpeBRepDS_DataStructure & TopOpeBRepDS_HDataStructure::ChangeDS ( )

◆ ChkIntg()

void TopOpeBRepDS_HDataStructure::ChkIntg ( )

Check the integrity of the DS.

◆ ClearStoreInterferences() [1/2]

void TopOpeBRepDS_HDataStructure::ClearStoreInterferences ( const NCollection_List< occ::handle< TopOpeBRepDS_Interference > > & LI,
const int IS,
const TCollection_AsciiString & str = "" )

◆ ClearStoreInterferences() [2/2]

void TopOpeBRepDS_HDataStructure::ClearStoreInterferences ( const NCollection_List< occ::handle< TopOpeBRepDS_Interference > > & LI,
const TopoDS_Shape & S,
const TCollection_AsciiString & str = "" )

◆ Curve()

const TopOpeBRepDS_Curve & TopOpeBRepDS_HDataStructure::Curve ( const int I) const

Returns the Curve of index .

◆ CurvePoints()

TopOpeBRepDS_PointIterator TopOpeBRepDS_HDataStructure::CurvePoints ( const int I) const

Returns an iterator on the points on the curve .

◆ DS()

const TopOpeBRepDS_DataStructure & TopOpeBRepDS_HDataStructure::DS ( ) const

◆ EdgePoints()

TopOpeBRepDS_PointIterator TopOpeBRepDS_HDataStructure::EdgePoints ( const TopoDS_Shape & E) const

Returns an iterator on the points attached to the edge <E>.

◆ EdgesSameParameter()

bool TopOpeBRepDS_HDataStructure::EdgesSameParameter ( ) const

returns True if all the edges stored as shapes in the DS are SameParameter, otherwise False.

◆ FaceCurves() [1/2]

TopOpeBRepDS_CurveIterator TopOpeBRepDS_HDataStructure::FaceCurves ( const int I) const

Returns an iterator on the curves attached to the face .

◆ FaceCurves() [2/2]

TopOpeBRepDS_CurveIterator TopOpeBRepDS_HDataStructure::FaceCurves ( const TopoDS_Shape & F) const

Returns an iterator on the curves attached to the face <F>.

◆ GetGeometry()

bool TopOpeBRepDS_HDataStructure::GetGeometry ( NCollection_List< occ::handle< TopOpeBRepDS_Interference > >::Iterator & IT,
const TopOpeBRepDS_Point & PDS,
int & G,
TopOpeBRepDS_Kind & K ) const

Get the geometry of a DS point <PDS>. Search for it with ScanInterfList (previous method). if found, set <G,K> to the geometry,kind of the interference found. returns the value of ScanInterfList().

◆ HasGeometry()

bool TopOpeBRepDS_HDataStructure::HasGeometry ( const TopoDS_Shape & S) const

Returns True if has new geometries.

◆ HasSameDomain()

bool TopOpeBRepDS_HDataStructure::HasSameDomain ( const TopoDS_Shape & S,
const bool FindKeep = true ) const

Returns True if share a geometrical domain with some other shapes.

◆ HasShape()

bool TopOpeBRepDS_HDataStructure::HasShape ( const TopoDS_Shape & S,
const bool FindKeep = true ) const

Returns True if has new geometries (SOLID,FACE,EDGE) or if (SHELL,WIRE) has sub-shape (FACE,EDGE) with new geometries.

◆ MakeCurve()

int TopOpeBRepDS_HDataStructure::MakeCurve ( const TopOpeBRepDS_Curve & C1,
TopOpeBRepDS_Curve & C2 )

◆ MinMaxOnParameter()

void TopOpeBRepDS_HDataStructure::MinMaxOnParameter ( const NCollection_List< occ::handle< TopOpeBRepDS_Interference > > & L,
double & Min,
double & Max ) const

◆ NbCurves()

int TopOpeBRepDS_HDataStructure::NbCurves ( ) const

◆ NbGeometry()

int TopOpeBRepDS_HDataStructure::NbGeometry ( const TopOpeBRepDS_Kind K) const

◆ NbPoints()

int TopOpeBRepDS_HDataStructure::NbPoints ( ) const

◆ NbShapes()

int TopOpeBRepDS_HDataStructure::NbShapes ( ) const

◆ NbSurfaces()

int TopOpeBRepDS_HDataStructure::NbSurfaces ( ) const

◆ NbTopology() [1/2]

int TopOpeBRepDS_HDataStructure::NbTopology ( ) const

◆ NbTopology() [2/2]

int TopOpeBRepDS_HDataStructure::NbTopology ( const TopOpeBRepDS_Kind K) const

◆ Point()

const TopOpeBRepDS_Point & TopOpeBRepDS_HDataStructure::Point ( const int I) const

Returns the point of index .

◆ RemoveCurve()

void TopOpeBRepDS_HDataStructure::RemoveCurve ( const int iC)

◆ SameDomain()

NCollection_List< TopoDS_Shape >::Iterator TopOpeBRepDS_HDataStructure::SameDomain ( const TopoDS_Shape & S) const

Returns an iterator on the SameDomain shapes attached to the shape .

◆ SameDomainOrientation()

TopOpeBRepDS_Config TopOpeBRepDS_HDataStructure::SameDomainOrientation ( const TopoDS_Shape & S) const

Returns orientation of shape compared with its reference shape.

◆ SameDomainReference()

int TopOpeBRepDS_HDataStructure::SameDomainReference ( const TopoDS_Shape & S) const

Returns orientation of shape compared with its reference shape.

◆ ScanInterfList()

bool TopOpeBRepDS_HDataStructure::ScanInterfList ( NCollection_List< occ::handle< TopOpeBRepDS_Interference > >::Iterator & IT,
const TopOpeBRepDS_Point & PDS ) const

Search, among a list of interferences accessed by the iterator <IT>, a geometry <G> whose 3D point is identical to the 3D point of the TheDSPoint <PDS>. returns True if such an interference has been found, False else. if True, iterator It points (by the Value() method) on the first interference accessing an identical 3D point.

◆ Shape() [1/2]

const TopoDS_Shape & TopOpeBRepDS_HDataStructure::Shape ( const int I,
const bool FindKeep = true ) const

Returns the shape of index in the DS.

◆ Shape() [2/2]

int TopOpeBRepDS_HDataStructure::Shape ( const TopoDS_Shape & S,
const bool FindKeep = true ) const

Returns the index of shape in the DS returns 0 if is not in the DS.

◆ SolidSurfaces() [1/2]

TopOpeBRepDS_SurfaceIterator TopOpeBRepDS_HDataStructure::SolidSurfaces ( const int I) const

Returns an iterator on the surfaces attached to the solid .

◆ SolidSurfaces() [2/2]

TopOpeBRepDS_SurfaceIterator TopOpeBRepDS_HDataStructure::SolidSurfaces ( const TopoDS_Shape & S) const

Returns an iterator on the surfaces attached to the solid .

◆ SortOnParameter() [1/2]

void TopOpeBRepDS_HDataStructure::SortOnParameter ( const NCollection_List< occ::handle< TopOpeBRepDS_Interference > > & L1,
NCollection_List< occ::handle< TopOpeBRepDS_Interference > > & L2 ) const

◆ SortOnParameter() [2/2]

void TopOpeBRepDS_HDataStructure::SortOnParameter ( NCollection_List< occ::handle< TopOpeBRepDS_Interference > > & L) const

◆ StoreInterference() [1/3]

void TopOpeBRepDS_HDataStructure::StoreInterference ( const occ::handle< TopOpeBRepDS_Interference > & I,
const int IS,
const TCollection_AsciiString & str = "" )

Add interference to list of interference of shape <IS>.

◆ StoreInterference() [2/3]

void TopOpeBRepDS_HDataStructure::StoreInterference ( const occ::handle< TopOpeBRepDS_Interference > & I,
const TopoDS_Shape & S,
const TCollection_AsciiString & str = "" )

Add interference to list of interference of shape .

◆ StoreInterference() [3/3]

void TopOpeBRepDS_HDataStructure::StoreInterference ( const occ::handle< TopOpeBRepDS_Interference > & I,
NCollection_List< occ::handle< TopOpeBRepDS_Interference > > & LI,
const TCollection_AsciiString & str = "" )

Add interference to list .

◆ StoreInterferences() [1/2]

void TopOpeBRepDS_HDataStructure::StoreInterferences ( const NCollection_List< occ::handle< TopOpeBRepDS_Interference > > & LI,
const int IS,
const TCollection_AsciiString & str = "" )

◆ StoreInterferences() [2/2]

void TopOpeBRepDS_HDataStructure::StoreInterferences ( const NCollection_List< occ::handle< TopOpeBRepDS_Interference > > & LI,
const TopoDS_Shape & S,
const TCollection_AsciiString & str = "" )

◆ Surface()

const TopOpeBRepDS_Surface & TopOpeBRepDS_HDataStructure::Surface ( const int I) const

Returns the surface of index .

◆ SurfaceCurves()

TopOpeBRepDS_CurveIterator TopOpeBRepDS_HDataStructure::SurfaceCurves ( const int I) const

Returns an iterator on the curves on the surface .


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