Open CASCADE Technology  6.9.0
Public Member Functions | Protected Attributes

BOPDS_PaveBlock Class Reference

The class BOPDS_PaveBlock is to store the information about pave block on an edge. Two adjacent paves on edge make up pave block. More...

#include <BOPDS_PaveBlock.hxx>

Inheritance diagram for BOPDS_PaveBlock:
Inheritance graph
[legend]

Public Member Functions

 BOPDS_PaveBlock ()
 Empty contructor. More...
 
 BOPDS_PaveBlock (const BOPCol_BaseAllocator &theAllocator)
 Contructor <theAllocator> - the allocator to manage the memory. More...
 
void SetPave1 (const BOPDS_Pave &thePave)
 Modifier Sets the first pave <thePave> More...
 
const BOPDS_PavePave1 () const
 Selector Returns the first pave. More...
 
void SetPave2 (const BOPDS_Pave &thePave)
 Modifier Sets the second pave <thePave> More...
 
const BOPDS_PavePave2 () const
 Selector Returns the second pave. More...
 
void SetEdge (const Standard_Integer theEdge)
 Modifier Sets the index of edge of pave block <theEdge> More...
 
Standard_Integer Edge () const
 Selector Returns the index of edge of pave block. More...
 
Standard_Boolean HasEdge () const
 Query Returns true if the pave block has edge. More...
 
Standard_Boolean HasEdge (Standard_Integer &theEdge) const
 Query Returns true if the pave block has edge Returns the index of edge <theEdge> More...
 
void SetOriginalEdge (const Standard_Integer theEdge)
 Modifier Sets the index of original edge of the pave block <theEdge> More...
 
Standard_Integer OriginalEdge () const
 Selector Returns the index of original edge of pave block. More...
 
Standard_Boolean IsSplitEdge () const
 Query Returns true if the edge is equal to the original edge of the pave block. More...
 
void Range (Standard_Real &theT1, Standard_Real &theT2) const
 Selector Returns the parametric range <theT1,theT2> of the pave block. More...
 
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> More...
 
void Indices (Standard_Integer &theIndex1, Standard_Integer &theIndex2) const
 Selector Returns the pave indices <theIndex1,theIndex2> of the pave block. More...
 
Standard_Boolean IsToUpdate () const
 Query Returns true if the pave block contains extra paves. More...
 
void AppendExtPave (const BOPDS_Pave &theLP)
 Modifier Appends extra paves <theLP> More...
 
void AppendExtPave1 (const BOPDS_Pave &thePave)
 Modifier Appends extra pave <thePave> More...
 
const BOPDS_ListOfPaveExtPaves () const
 Selector Returns the extra paves. More...
 
BOPDS_ListOfPaveChangeExtPaves ()
 Selector / Modifier Returns the extra paves. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
Standard_Boolean HasShrunkData () const
 Query Returns true if the pave block contains the shrunk data. More...
 
void Dump () const
 
- Public Member Functions inherited from MMgt_TShared
virtual void Delete () const
 Memory deallocator for transient classes. 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 const
Handle_Standard_Type & 
DynamicType () const
 Returns a type information object about this object. More...
 
Standard_Boolean IsInstance (const 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 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...
 
virtual Handle_Standard_Transient This () const
 Returns a Handle which references this object. Must never be called to objects created in stack. More...
 
Standard_Integer GetRefCount () const
 Get the reference counter of this object. More...
 

Protected Attributes

BOPCol_BaseAllocator myAllocator
 
Standard_Integer myEdge
 
Standard_Integer myOriginalEdge
 
BOPDS_Pave myPave1
 
BOPDS_Pave myPave2
 
BOPDS_ListOfPave myExtPaves
 
Standard_Real myTS1
 
Standard_Real myTS2
 
Bnd_Box myShrunkBox
 
BOPCol_MapOfInteger myMFence
 

Detailed Description

The class BOPDS_PaveBlock is to store the information about pave block on an edge. Two adjacent paves on edge make up pave block.

Constructor & Destructor Documentation

BOPDS_PaveBlock::BOPDS_PaveBlock ( )

Empty contructor.

BOPDS_PaveBlock::BOPDS_PaveBlock ( const BOPCol_BaseAllocator theAllocator)

Contructor <theAllocator> - the allocator to manage the memory.

Member Function Documentation

void BOPDS_PaveBlock::AppendExtPave ( const BOPDS_Pave theLP)

Modifier Appends extra paves <theLP>

void BOPDS_PaveBlock::AppendExtPave1 ( const BOPDS_Pave thePave)

Modifier Appends extra pave <thePave>

BOPDS_ListOfPave& BOPDS_PaveBlock::ChangeExtPaves ( )

Selector / Modifier Returns the extra paves.

Standard_Boolean BOPDS_PaveBlock::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 BOPDS_PaveBlock::Dump ( ) const
Standard_Integer BOPDS_PaveBlock::Edge ( ) const

Selector Returns the index of edge of pave block.

const BOPDS_ListOfPave& BOPDS_PaveBlock::ExtPaves ( ) const

Selector Returns the extra paves.

Standard_Boolean BOPDS_PaveBlock::HasEdge ( ) const

Query Returns true if the pave block has edge.

Standard_Boolean BOPDS_PaveBlock::HasEdge ( Standard_Integer theEdge) const

Query Returns true if the pave block has edge Returns the index of edge <theEdge>

Standard_Boolean BOPDS_PaveBlock::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>

Standard_Boolean BOPDS_PaveBlock::HasShrunkData ( ) const

Query Returns true if the pave block contains the shrunk data.

void BOPDS_PaveBlock::Indices ( Standard_Integer theIndex1,
Standard_Integer theIndex2 
) const

Selector Returns the pave indices <theIndex1,theIndex2> of the pave block.

Standard_Boolean BOPDS_PaveBlock::IsSplitEdge ( ) const

Query Returns true if the edge is equal to the original edge of the pave block.

Standard_Boolean BOPDS_PaveBlock::IsToUpdate ( ) const

Query Returns true if the pave block contains extra paves.

Standard_Integer BOPDS_PaveBlock::OriginalEdge ( ) const

Selector Returns the index of original edge of pave block.

const BOPDS_Pave& BOPDS_PaveBlock::Pave1 ( ) const

Selector Returns the first pave.

const BOPDS_Pave& BOPDS_PaveBlock::Pave2 ( ) const

Selector Returns the second pave.

void BOPDS_PaveBlock::Range ( Standard_Real theT1,
Standard_Real theT2 
) const

Selector Returns the parametric range <theT1,theT2> of the pave block.

void BOPDS_PaveBlock::SetEdge ( const Standard_Integer  theEdge)

Modifier Sets the index of edge of pave block <theEdge>

void BOPDS_PaveBlock::SetOriginalEdge ( const Standard_Integer  theEdge)

Modifier Sets the index of original edge of the pave block <theEdge>

void BOPDS_PaveBlock::SetPave1 ( const BOPDS_Pave thePave)

Modifier Sets the first pave <thePave>

void BOPDS_PaveBlock::SetPave2 ( const BOPDS_Pave thePave)

Modifier Sets the second pave <thePave>

void BOPDS_PaveBlock::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 BOPDS_PaveBlock::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.

void BOPDS_PaveBlock::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.

Field Documentation

BOPCol_BaseAllocator BOPDS_PaveBlock::myAllocator
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

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