Open CASCADE Technology 6.6.0
|
The class BOPDS_PaveBlock is to store
the information about pave block on an edge.
Two adjacent paves on edge make up pave block.
#include <BOPDS_PaveBlock.hxx>
Public Member Functions | |
BOPDS_PaveBlock () | |
Empty contructor | |
BOPDS_PaveBlock (const BOPCol_BaseAllocator &theAllocator) | |
Contructor <theAllocator> - the allocator to manage the memory | |
void | SetPave1 (const BOPDS_Pave &thePave) |
Modifier Sets the first pave <thePave> | |
const BOPDS_Pave & | Pave1 () const |
Selector Returns the first pave | |
void | SetPave2 (const BOPDS_Pave &thePave) |
Modifier Sets the second pave <thePave> | |
const BOPDS_Pave & | Pave2 () const |
Selector Returns the second pave | |
void | SetEdge (const Standard_Integer theEdge) |
Modifier Sets the index of edge of pave block <theEdge> | |
Standard_Integer | Edge () const |
Selector Returns the index of edge of pave block | |
Standard_Boolean | HasEdge () const |
Query Returns true if the pave block has edge | |
Standard_Boolean | HasEdge (Standard_Integer &theEdge) const |
Query Returns true if the pave block has edge Returns the index of edge <theEdge> | |
void | SetOriginalEdge (const Standard_Integer theEdge) |
Modifier Sets the index of original edge of the pave block <theEdge> | |
Standard_Integer | OriginalEdge () const |
Selector Returns the index of original edge of pave block | |
Standard_Boolean | IsSplitEdge () const |
Query Returns true if the edge is equal to the original edge of the pave block | |
void | Range (Standard_Real &theT1, Standard_Real &theT2) const |
Selector Returns the parametric range <theT1,theT2> of the pave block | |
Standard_Boolean | HasSameBounds (const Handle< BOPDS_PaveBlock > &theOther) const |
Query Returns true if the pave block has pave indices that equal to the pave indices of the pave block <theOther> | |
void | Indices (Standard_Integer &theIndex1, Standard_Integer &theIndex2) const |
Selector Returns the pave indices <theIndex1,theIndex2> of the pave block | |
Standard_Boolean | IsToUpdate () const |
Query Returns true if the pave block contains extra paves | |
void | AppendExtPave (const BOPDS_Pave &theLP) |
Modifier Appends extra paves <theLP> | |
void | AppendExtPave1 (const BOPDS_Pave &thePave) |
Modifier Appends extra pave <thePave> | |
const BOPDS_ListOfPave & | ExtPaves () const |
Selector Returns the extra paves | |
BOPDS_ListOfPave & | ChangeExtPaves () |
Selector / Modifier Returns the extra paves | |
void | Update (BOPDS_ListOfPaveBlock &theLPB, const Standard_Boolean theFlag=Standard_True) |
Modifier Updates the pave block. The extra paves are used to create new pave blocks <theLPB>. <theFlag> - if true, the first pave and the second pave are used to produce new pave blocks. | |
Standard_Boolean | ContainsParameter (const Standard_Real thePrm, const Standard_Real theTol) const |
Query Returns true if the extra paves contain the pave with given value of the parameter <thePrm> <theTol> - the value of the tolerance to compare | |
void | SetCommonBlock (const Handle< BOPDS_CommonBlock > &theCB) |
Modifier Sets the common block <theCB> | |
const Handle_BOPDS_CommonBlock & | CommonBlock () const |
Selector Returns the common block | |
Standard_Boolean | IsCommonBlock () const |
Query Returns true if the pave block is common block | |
Standard_Boolean | IsCommonBlockOnEdge () const |
Query Returns true if the pave block is common block that contains at least one pave block | |
Handle_BOPDS_PaveBlock | RealPaveBlock () const |
Selector Returns the real common block shrunk data | |
void | SetShrunkData (const Standard_Real theTS1, const Standard_Real theTS2, const Bnd_Box &theBox) |
Modifier Sets the shrunk data for the pave block <theTS1>, <theTS2> - shrunk range <theBox> - the bounding box | |
void | ShrunkData (Standard_Real &theTS1, Standard_Real &theTS2, Bnd_Box &theBox) const |
Selector Returns the shrunk data for the pave block <theTS1>, <theTS2> - shrunk range <theBox> - the bounding box | |
Standard_Boolean | HasShrunkData () const |
Query Returns true if the pave block contains the shrunk data | |
void | Dump () const |
Protected Attributes | |
BOPCol_BaseAllocator | myAllocator |
Standard_Integer | myEdge |
Standard_Integer | myOriginalEdge |
BOPDS_Pave | myPave1 |
BOPDS_Pave | myPave2 |
BOPDS_ListOfPave | myExtPaves |
Handle_BOPDS_CommonBlock | myCommonBlock |
Standard_Real | myTS1 |
Standard_Real | myTS2 |
Bnd_Box | myShrunkBox |
BOPCol_MapOfInteger | myMFence |
BOPDS_PaveBlock::BOPDS_PaveBlock | ( | ) |
BOPDS_PaveBlock::BOPDS_PaveBlock | ( | const BOPCol_BaseAllocator & | theAllocator | ) |
void BOPDS_PaveBlock::AppendExtPave | ( | const BOPDS_Pave & | theLP | ) |
void BOPDS_PaveBlock::AppendExtPave1 | ( | const BOPDS_Pave & | thePave | ) |
BOPDS_ListOfPave& BOPDS_PaveBlock::ChangeExtPaves | ( | ) |
const Handle_BOPDS_CommonBlock& BOPDS_PaveBlock::CommonBlock | ( | ) | const |
Standard_Boolean BOPDS_PaveBlock::ContainsParameter | ( | const Standard_Real | thePrm, |
const Standard_Real | theTol | ||
) | const |
void BOPDS_PaveBlock::Dump | ( | ) | const |
Standard_Integer BOPDS_PaveBlock::Edge | ( | ) | const |
const BOPDS_ListOfPave& BOPDS_PaveBlock::ExtPaves | ( | ) | const |
Standard_Boolean BOPDS_PaveBlock::HasEdge | ( | Standard_Integer & | theEdge | ) | const |
Standard_Boolean BOPDS_PaveBlock::HasEdge | ( | ) | const |
Standard_Boolean BOPDS_PaveBlock::HasSameBounds | ( | const Handle< BOPDS_PaveBlock > & | theOther | ) | const |
Standard_Boolean BOPDS_PaveBlock::HasShrunkData | ( | ) | const |
void BOPDS_PaveBlock::Indices | ( | Standard_Integer & | theIndex1, |
Standard_Integer & | theIndex2 | ||
) | const |
Standard_Boolean BOPDS_PaveBlock::IsCommonBlock | ( | ) | const |
Standard_Boolean BOPDS_PaveBlock::IsCommonBlockOnEdge | ( | ) | const |
Standard_Boolean BOPDS_PaveBlock::IsSplitEdge | ( | ) | const |
Standard_Boolean BOPDS_PaveBlock::IsToUpdate | ( | ) | const |
Standard_Integer BOPDS_PaveBlock::OriginalEdge | ( | ) | const |
const BOPDS_Pave& BOPDS_PaveBlock::Pave1 | ( | ) | const |
const BOPDS_Pave& BOPDS_PaveBlock::Pave2 | ( | ) | const |
void BOPDS_PaveBlock::Range | ( | Standard_Real & | theT1, |
Standard_Real & | theT2 | ||
) | const |
Handle_BOPDS_PaveBlock BOPDS_PaveBlock::RealPaveBlock | ( | ) | const |
void BOPDS_PaveBlock::SetCommonBlock | ( | const Handle< BOPDS_CommonBlock > & | theCB | ) |
void BOPDS_PaveBlock::SetEdge | ( | const Standard_Integer | theEdge | ) |
void BOPDS_PaveBlock::SetOriginalEdge | ( | const Standard_Integer | theEdge | ) |
void BOPDS_PaveBlock::SetPave1 | ( | const BOPDS_Pave & | thePave | ) |
void BOPDS_PaveBlock::SetPave2 | ( | const BOPDS_Pave & | thePave | ) |
void BOPDS_PaveBlock::SetShrunkData | ( | const Standard_Real | theTS1, |
const Standard_Real | theTS2, | ||
const Bnd_Box & | theBox | ||
) |
void BOPDS_PaveBlock::ShrunkData | ( | Standard_Real & | theTS1, |
Standard_Real & | theTS2, | ||
Bnd_Box & | theBox | ||
) | const |
void BOPDS_PaveBlock::Update | ( | BOPDS_ListOfPaveBlock & | theLPB, |
const Standard_Boolean | theFlag = Standard_True |
||
) |
BOPCol_BaseAllocator BOPDS_PaveBlock::myAllocator [protected] |
Handle_BOPDS_CommonBlock BOPDS_PaveBlock::myCommonBlock [protected] |
Standard_Integer BOPDS_PaveBlock::myEdge [protected] |
BOPDS_ListOfPave BOPDS_PaveBlock::myExtPaves [protected] |
BOPCol_MapOfInteger BOPDS_PaveBlock::myMFence [protected] |
Standard_Integer BOPDS_PaveBlock::myOriginalEdge [protected] |
BOPDS_Pave BOPDS_PaveBlock::myPave1 [protected] |
BOPDS_Pave BOPDS_PaveBlock::myPave2 [protected] |
Bnd_Box BOPDS_PaveBlock::myShrunkBox [protected] |
Standard_Real BOPDS_PaveBlock::myTS1 [protected] |
Standard_Real BOPDS_PaveBlock::myTS2 [protected] |