Open CASCADE Technology
7.3.0
|
The class BOPDS_CommonBlock is to store the information about pave blocks that have geometrical coincidence (in terms of a tolerance) with:
a) other pave block(s);
b) face(s).
First pave block in the common block (real pave block) is always a pave block with the minimal index of the original edge.
More...
#include <BOPDS_CommonBlock.hxx>
Public Member Functions | |
BOPDS_CommonBlock () | |
Empty contructor. More... | |
BOPDS_CommonBlock (const Handle< NCollection_BaseAllocator > &theAllocator) | |
Contructor <theAllocator> - the allocator to manage the memory. More... | |
void | AddPaveBlock (const Handle< BOPDS_PaveBlock > &aPB) |
Modifier Adds the pave block <aPB> to the list of pave blocks of the common block. More... | |
void | SetPaveBlocks (const BOPDS_ListOfPaveBlock &aLPB) |
Modifier Adds the list of pave blocks <aLPB> to the list of pave blocks of the common block. More... | |
void | AddFace (const Standard_Integer aF) |
Modifier Adds the index of the face <aF> to the list of indices of faces of the common block. More... | |
void | SetFaces (const TColStd_ListOfInteger &aLF) |
Modifier Sets the list of indices of faces <aLF> of the common block. More... | |
void | AppendFaces (TColStd_ListOfInteger &aLF) |
Modifier Appends the list of indices of faces <aLF> to the list of indices of faces of the common block (the input list is emptied) More... | |
const BOPDS_ListOfPaveBlock & | PaveBlocks () const |
Selector Returns the list of pave blocks of the common block. More... | |
const TColStd_ListOfInteger & | Faces () const |
Selector Returns the list of indices of faces of the common block. More... | |
const Handle< BOPDS_PaveBlock > & | PaveBlock1 () const |
Selector Returns the first pave block of the common block. More... | |
Handle< BOPDS_PaveBlock > & | PaveBlockOnEdge (const Standard_Integer theIndex) |
Selector Returns the pave block that belongs to the edge with index <theIx> More... | |
Standard_Boolean | IsPaveBlockOnFace (const Standard_Integer theIndex) const |
Query Returns true if the common block contains a pave block that belongs to the face with index <theIx> More... | |
Standard_Boolean | IsPaveBlockOnEdge (const Standard_Integer theIndex) const |
Query Returns true if the common block contains a pave block that belongs to the edge with index <theIx> More... | |
Standard_Boolean | Contains (const Handle< BOPDS_PaveBlock > &thePB) const |
Query Returns true if the common block contains a pave block that is equal to <thePB> More... | |
Standard_Boolean | Contains (const Standard_Integer theF) const |
Query Returns true if the common block contains the face with index equal to <theF> More... | |
void | SetEdge (const Standard_Integer theEdge) |
Modifier Assign the index <theEdge> as the edge index to all pave blocks of the common block. More... | |
Standard_Integer | Edge () const |
Selector Returns the index of the edge of all pave blocks of the common block. More... | |
void | Dump () const |
void | SetRealPaveBlock (const Handle< BOPDS_PaveBlock > &thePB) |
Moves the pave blocks in the list to make the given pave block to be the first. It will be representative for the whole group. More... | |
Public Member Functions inherited from Standard_Transient | |
Standard_Transient () | |
Empty constructor. More... | |
Standard_Transient (const Standard_Transient &) | |
Copy constructor – does nothing. More... | |
Standard_Transient & | operator= (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_Transient * | This () 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... | |
Protected Attributes | |
BOPDS_ListOfPaveBlock | myPaveBlocks |
TColStd_ListOfInteger | myFaces |
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... | |
The class BOPDS_CommonBlock is to store the information about pave blocks that have geometrical coincidence (in terms of a tolerance) with:
a) other pave block(s);
b) face(s).
First pave block in the common block (real pave block) is always a pave block with the minimal index of the original edge.
BOPDS_CommonBlock::BOPDS_CommonBlock | ( | ) |
Empty contructor.
BOPDS_CommonBlock::BOPDS_CommonBlock | ( | const Handle< NCollection_BaseAllocator > & | theAllocator | ) |
Contructor <theAllocator> - the allocator to manage the memory.
void BOPDS_CommonBlock::AddFace | ( | const Standard_Integer | aF | ) |
Modifier Adds the index of the face <aF> to the list of indices of faces of the common block.
void BOPDS_CommonBlock::AddPaveBlock | ( | const Handle< BOPDS_PaveBlock > & | aPB | ) |
Modifier Adds the pave block <aPB> to the list of pave blocks of the common block.
void BOPDS_CommonBlock::AppendFaces | ( | TColStd_ListOfInteger & | aLF | ) |
Modifier Appends the list of indices of faces <aLF> to the list of indices of faces of the common block (the input list is emptied)
Standard_Boolean BOPDS_CommonBlock::Contains | ( | const Handle< BOPDS_PaveBlock > & | thePB | ) | const |
Query Returns true if the common block contains a pave block that is equal to <thePB>
Standard_Boolean BOPDS_CommonBlock::Contains | ( | const Standard_Integer | theF | ) | const |
Query Returns true if the common block contains the face with index equal to <theF>
void BOPDS_CommonBlock::Dump | ( | ) | const |
Standard_Integer BOPDS_CommonBlock::Edge | ( | ) | const |
Selector Returns the index of the edge of all pave blocks of the common block.
const TColStd_ListOfInteger& BOPDS_CommonBlock::Faces | ( | ) | const |
Selector Returns the list of indices of faces of the common block.
Standard_Boolean BOPDS_CommonBlock::IsPaveBlockOnEdge | ( | const Standard_Integer | theIndex | ) | const |
Query Returns true if the common block contains a pave block that belongs to the edge with index <theIx>
Standard_Boolean BOPDS_CommonBlock::IsPaveBlockOnFace | ( | const Standard_Integer | theIndex | ) | const |
Query Returns true if the common block contains a pave block that belongs to the face with index <theIx>
const Handle< BOPDS_PaveBlock >& BOPDS_CommonBlock::PaveBlock1 | ( | ) | const |
Selector Returns the first pave block of the common block.
Handle< BOPDS_PaveBlock >& BOPDS_CommonBlock::PaveBlockOnEdge | ( | const Standard_Integer | theIndex | ) |
Selector Returns the pave block that belongs to the edge with index <theIx>
const BOPDS_ListOfPaveBlock& BOPDS_CommonBlock::PaveBlocks | ( | ) | const |
Selector Returns the list of pave blocks of the common block.
void BOPDS_CommonBlock::SetEdge | ( | const Standard_Integer | theEdge | ) |
Modifier Assign the index <theEdge> as the edge index to all pave blocks of the common block.
void BOPDS_CommonBlock::SetFaces | ( | const TColStd_ListOfInteger & | aLF | ) |
Modifier Sets the list of indices of faces <aLF> of the common block.
void BOPDS_CommonBlock::SetPaveBlocks | ( | const BOPDS_ListOfPaveBlock & | aLPB | ) |
Modifier Adds the list of pave blocks <aLPB> to the list of pave blocks of the common block.
void BOPDS_CommonBlock::SetRealPaveBlock | ( | const Handle< BOPDS_PaveBlock > & | thePB | ) |
Moves the pave blocks in the list to make the given pave block to be the first. It will be representative for the whole group.
|
protected |
|
protected |