OCC Main Page | ModelingAlgorithms | Toolkits | Packages | Class Hierarchy | Data Structures | File List | Data Fields | Globals

ModelingAlgorithms
TKBO
BOP


BOP_Builder Class Reference

#include <BOP_Builder.hxx>

Inheritance diagram for BOP_Builder:

Inheritance graph
[legend]

Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)
Standard_EXPORT void SetShapes (const TopoDS_Shape &aS1, const TopoDS_Shape &aS2)
 Set shapes (arguments) to perform BO
.
Standard_EXPORT void SetOperation (const BOP_Operation anOp)
 Set type of the BO to perform

.
Standard_EXPORT void SetManifoldFlag (const Standard_Boolean aFlag)
 Set the flag to allow the result
be manifold or non-manifold (not used)
.
Standard_EXPORT const TopoDS_Shape & Shape1 () const
 Selector
.
Standard_EXPORT const TopoDS_Shape & Shape2 () const
 Selector
.
Standard_EXPORT BOP_Operation Operation () const
 Selector

.
Standard_EXPORT Standard_Boolean ManifoldFlag () const
 Selector

.
Standard_EXPORT Standard_Boolean IsDone () const
 Selector

.
Standard_EXPORT Standard_Integer ErrorStatus () const
 Selector
.
Standard_EXPORT const TopoDS_Shape & Result () const
 Returns the result of the BO

.
virtual Standard_EXPORT void Do ()
 Does the BO from the beggining to the end,
i.e. create new DataStructure, DSFiller,
compute all interferences, compute states,
build result etc
.
virtual Standard_EXPORT void DoWithFiller (const BOPTools_DSFiller &aDSF)
 Does the BO using existing Filler to the end

.
virtual Standard_EXPORT void BuildResult ()
 Constructs the final result of the BO

.
virtual Standard_EXPORT void Destroy ()
 Destructor

.
virtual Standard_EXPORT ~BOP_Builder ()
Standard_EXPORT const TopTools_ListOfShape & Modified (const TopoDS_Shape &aS) const
 Returns the list of shapes modified from the shape aS

.
Standard_EXPORT Standard_Boolean IsDeleted (const TopoDS_Shape &aS) const
 Returns TRUE if the result does not contain the shape aS

.
Standard_EXPORT const TopTools_ListOfShape & SectionEdges () const
 Returns the list of shapes that are parts of BO "Section"
for given arguments.
For Internal usage

.
virtual Standard_EXPORT void SetHistoryCollector (const Handle(BOP_HistoryCollector)&theHistory)
Standard_EXPORT Handle_BOP_HistoryCollector GetHistoryCollector () const

Static Public Member Functions

static Standard_EXPORT void SortTypes (TopAbs_ShapeEnum &aType1, TopAbs_ShapeEnum &aType2)
 Sort types of shapes as integers in increasing order

.

Protected Member Functions

Standard_EXPORT BOP_Builder ()
 Empty constructor;

.
Standard_EXPORT void FillModified ()
 Fill the list of shapes modified from the shape aS.
For Internal usage

.
Standard_EXPORT void FillModified (const TopoDS_Shape &aS, const TopTools_ListOfShape &aL)
 Fill the list of shapes modified from the shape aS.
For Internal usage

.
Standard_EXPORT void FillModified (const TopoDS_Shape &aE, const TopoDS_Shape &aSp)
 Fill the list of shapes modified from the shape aS
For Internal usage

.

Protected Attributes

TopoDS_Shape myShape1
TopoDS_Shape myShape2
BOP_Operation myOperation
Standard_Boolean myManifoldFlag
Standard_Boolean myIsDone
Standard_Integer myErrorStatus
TopoDS_Shape myResult
Standard_Integer myDraw
BOPTools_PDSFiller myDSFiller
TopTools_IndexedMapOfShape myResultMap
TopTools_IndexedDataMapOfShapeListOfShape myModifiedMap
TopTools_ListOfShape myEmptyList
TopTools_ListOfShape mySectionEdges
Handle_BOP_HistoryCollector myHistory

Constructor & Destructor Documentation

virtual Standard_EXPORT BOP_Builder::~BOP_Builder (   )  [inline, virtual]
 

Standard_EXPORT BOP_Builder::BOP_Builder (   )  [protected]
 


Member Function Documentation

virtual Standard_EXPORT void BOP_Builder::BuildResult (   )  [virtual]
 

Reimplemented in BOP_EmptyBuilder, BOP_ShellShell, BOP_ShellSolid, BOP_SolidSolid, BOP_WireShell, BOP_WireSolid, and BOP_WireWire.

virtual Standard_EXPORT void BOP_Builder::Destroy (   )  [virtual]
 

Reimplemented in BOP_EmptyBuilder, BOP_Section, BOP_ShellShell, BOP_ShellSolid, BOP_SolidSolid, BOP_WireShell, BOP_WireSolid, and BOP_WireWire.

virtual Standard_EXPORT void BOP_Builder::Do (   )  [virtual]
 

Reimplemented in BOP_EmptyBuilder, BOP_Section, BOP_ShellSolid, BOP_WireShell, BOP_WireSolid, and BOP_WireWire.

virtual Standard_EXPORT void BOP_Builder::DoWithFiller (  const BOPTools_DSFiller &  aDSF  )  [virtual]
 

Reimplemented in BOP_EmptyBuilder, BOP_Section, BOP_ShellShell, BOP_ShellSolid, BOP_SolidSolid, BOP_WireShell, BOP_WireSolid, and BOP_WireWire.

Standard_EXPORT Standard_Integer BOP_Builder::ErrorStatus (   )  const
 

Standard_EXPORT void BOP_Builder::FillModified (  const TopoDS_Shape &  aE,
const TopoDS_Shape &  aSp
)  [protected]
 

Standard_EXPORT void BOP_Builder::FillModified (  const TopoDS_Shape &  aS,
const TopTools_ListOfShape &  aL
)  [protected]
 

Standard_EXPORT void BOP_Builder::FillModified (   )  [protected]
 

Standard_EXPORT Handle_BOP_HistoryCollector BOP_Builder::GetHistoryCollector (   )  const
 

Standard_EXPORT Standard_Boolean BOP_Builder::IsDeleted (  const TopoDS_Shape &  aS  )  const
 

Standard_EXPORT Standard_Boolean BOP_Builder::IsDone (   )  const
 

Standard_EXPORT Standard_Boolean BOP_Builder::ManifoldFlag (   )  const
 

Standard_EXPORT const TopTools_ListOfShape& BOP_Builder::Modified (  const TopoDS_Shape &  aS  )  const
 

Standard_EXPORT BOP_Operation BOP_Builder::Operation (   )  const
 

void BOP_Builder::operator delete (  void *  anAddress  )  [inline]
 

Reimplemented in BOP_EmptyBuilder, BOP_Section, BOP_ShellShell, BOP_ShellSolid, BOP_SolidSolid, BOP_WireShape, BOP_WireShell, BOP_WireSolid, and BOP_WireWire.

void* BOP_Builder::operator new (  size_t  size  )  [inline]
 

Reimplemented in BOP_EmptyBuilder, BOP_Section, BOP_ShellShell, BOP_ShellSolid, BOP_SolidSolid, BOP_WireShape, BOP_WireShell, BOP_WireSolid, and BOP_WireWire.

void* BOP_Builder::operator new (  size_t  ,
void *  anAddress
)  [inline]
 

Reimplemented in BOP_EmptyBuilder, BOP_Section, BOP_ShellShell, BOP_ShellSolid, BOP_SolidSolid, BOP_WireShape, BOP_WireShell, BOP_WireSolid, and BOP_WireWire.

Standard_EXPORT const TopoDS_Shape& BOP_Builder::Result (   )  const
 

Standard_EXPORT const TopTools_ListOfShape& BOP_Builder::SectionEdges (   )  const
 

virtual Standard_EXPORT void BOP_Builder::SetHistoryCollector (  const Handle(BOP_HistoryCollector)&  theHistory  )  [virtual]
 

Reimplemented in BOP_Section, BOP_ShellSolid, BOP_SolidSolid, and BOP_WireSolid.

Standard_EXPORT void BOP_Builder::SetManifoldFlag (  const Standard_Boolean  aFlag  ) 
 

Standard_EXPORT void BOP_Builder::SetOperation (  const BOP_Operation  anOp  ) 
 

Standard_EXPORT void BOP_Builder::SetShapes (  const TopoDS_Shape &  aS1,
const TopoDS_Shape &  aS2
) 
 

Standard_EXPORT const TopoDS_Shape& BOP_Builder::Shape1 (   )  const
 

Standard_EXPORT const TopoDS_Shape& BOP_Builder::Shape2 (   )  const
 

static Standard_EXPORT void BOP_Builder::SortTypes (  TopAbs_ShapeEnum &  aType1,
TopAbs_ShapeEnum &  aType2
)  [static]
 


Field Documentation

Standard_Integer BOP_Builder::myDraw [protected]
 

BOPTools_PDSFiller BOP_Builder::myDSFiller [protected]
 

TopTools_ListOfShape BOP_Builder::myEmptyList [protected]
 

Standard_Integer BOP_Builder::myErrorStatus [protected]
 

Handle_BOP_HistoryCollector BOP_Builder::myHistory [protected]
 

Standard_Boolean BOP_Builder::myIsDone [protected]
 

Standard_Boolean BOP_Builder::myManifoldFlag [protected]
 

TopTools_IndexedDataMapOfShapeListOfShape BOP_Builder::myModifiedMap [protected]
 

BOP_Operation BOP_Builder::myOperation [protected]
 

TopoDS_Shape BOP_Builder::myResult [protected]
 

TopTools_IndexedMapOfShape BOP_Builder::myResultMap [protected]
 

TopTools_ListOfShape BOP_Builder::mySectionEdges [protected]
 

TopoDS_Shape BOP_Builder::myShape1 [protected]
 

TopoDS_Shape BOP_Builder::myShape2 [protected]
 


The documentation for this class was generated from the following file:
Generated on Mon Aug 25 13:40:38 2008 for OpenCASCADE by  doxygen 1.4.1