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

ModelingAlgorithms
TKFeat
LocOpe


LocOpe_Builder Class Reference

Provides a basic tool to implement local
topological operations.
.

#include <LocOpe_Builder.hxx>


Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)
Standard_EXPORT LocOpe_Builder ()
 Empty constructor.
.
Standard_EXPORT LocOpe_Builder (const TopoDS_Shape &S)
 Creates a builder for local operations on <s>.
.
Standard_EXPORT LocOpe_Builder (const TopoDS_Shape &S, const TopoDS_Shape &Tool)
 Creates a builder for local operations between <s>
and <tool>.
.
Standard_EXPORT void Init (const TopoDS_Shape &S)
 Initializes a builder for local operations on <s>.
.
Standard_EXPORT void Init (const TopoDS_Shape &S, const TopoDS_Shape &Tool)
 Initializes a builder for local operations between
<s> and <tool>.
.
Standard_EXPORT void Perform (const TopoDS_Shape &Tool, const TopTools_ListOfShape &L, const Standard_Boolean Fuse)
 Performs the local operation on the formerly given
shape. <l> defines a set of faces of the
shape. The whole tool is used. The list may not be
empty. The boolean <fuse> gives the type of
operation. If set to Standard_True, the operation
is a fusion. If set to Standard_False, the
operation is a cutting one.

The Perform process stops just before constructing
any result in order to authorize the selection of
parts of the tool. After a call to Perform, it is
possible to call BuilPartsOfTool, then
RemovePart/ActivatePart to select valid parts, and
it is necessary to call PerformResult to get any
result.
.
Standard_EXPORT void Perform (const TopTools_ListOfShape &LShape, const TopTools_ListOfShape &LTool, const Standard_Boolean Fuse)
 Performs the local operation on the formerly given
shape and tool. <lshape> defines a set of faces
of the shape. <ltool> defines a set of faces of
the tool. The boolean <fuse> gives the type of
operation. If set to Standard_True, the operation
is a fusion. If set to Standard_False, the
operation is a cutting one. If <lshape> (resp.
<ltool>) is empty, the whole shape (resp. tool) is
used.

The Perform process stops just before constructing
any result in order to authorize the selection of
parts of the tool. After a call to Perform, it is
possible to call BuilPartsOfTool, then
RemovePart/ActivatePart to select valid parts, and
it is necessary to call PerformResult to get any
result.
.
Standard_EXPORT void BuildPartsOfTool ()
 Builds every valid parts of the tool.
.
Standard_EXPORT const TopTools_ListOfShape & PartsOfTool () const
 Returns the list of the parts of tool. Each of
this part is a TopoDS_Shell.
.
Standard_EXPORT void RemovePart (const TopoDS_Shape &S)
 Removes <s> from the list of valid parts of tool.
.
Standard_EXPORT void ActivatePart (const TopoDS_Shape &S)
 Removes <s> from the list of invalid parts of
tool. By default, all parts of tool are valid for
the local operation.
.
Standard_EXPORT void PerformResult ()
 Invalidates the given parts of tools if any, and
performs the result of the local operation.
.
Standard_Boolean IsDone () const
 Returns Standard_True if the operation has been
successfuly done.
.
Standard_Boolean IsInvDone () const
 Returns Standard_True if the Invalidate Parts
operation has been successfuly done.
.
const TopoDS_Shape & ResultingShape () const
 Returns the result of the operation.
.
const TopoDS_Shape & OriginalShape () const
 Returns the shape on which the operation is defined.
.
const TopoDS_Shape & Tool () const
 Returns the "tool" used to perform the local operation.
.
const Handle_BOP_HistoryCollector & History () const
Standard_EXPORT void InvalidateParts ()
Standard_EXPORT const TopTools_ListOfShape & Edges () const
Standard_EXPORT const TopTools_ListOfShape & TgtEdges () const

Private Attributes

Standard_Boolean myDone
TopoDS_Shape myShape
TopoDS_Shape myTool
TopoDS_Shape myResult
TopTools_ListOfShape myParts
TopTools_ListOfShape myRemoved
Standard_Boolean myPdone
Standard_Boolean myPerfdone
Standard_Boolean myInvDone
Standard_Boolean myFuse
TopTools_ListOfShape myEdges
TopTools_ListOfShape myTgtEdges
BRepAlgo_TopOpe myAlgo
TopTools_MapOfShape myShapeMap
TopTools_MapOfShape myToolMap


Constructor & Destructor Documentation

Standard_EXPORT LocOpe_Builder::LocOpe_Builder  ) 
 

Standard_EXPORT LocOpe_Builder::LocOpe_Builder const TopoDS_Shape &  S  ) 
 

Standard_EXPORT LocOpe_Builder::LocOpe_Builder const TopoDS_Shape &  S,
const TopoDS_Shape &  Tool
 


Member Function Documentation

Standard_EXPORT void LocOpe_Builder::ActivatePart const TopoDS_Shape &  S  ) 
 

Standard_EXPORT void LocOpe_Builder::BuildPartsOfTool  ) 
 

const TopTools_ListOfShape & LocOpe_Builder::Edges  )  const [inline]
 

const Handle_BOP_HistoryCollector& LocOpe_Builder::History  )  const
 

Standard_EXPORT void LocOpe_Builder::Init const TopoDS_Shape &  S,
const TopoDS_Shape &  Tool
 

Standard_EXPORT void LocOpe_Builder::Init const TopoDS_Shape &  S  ) 
 

Standard_EXPORT void LocOpe_Builder::InvalidateParts  ) 
 

Standard_Boolean LocOpe_Builder::IsDone  )  const [inline]
 

Standard_Boolean LocOpe_Builder::IsInvDone  )  const [inline]
 

void LocOpe_Builder::operator delete void *  anAddress  )  [inline]
 

void* LocOpe_Builder::operator new size_t  size  )  [inline]
 

void* LocOpe_Builder::operator new size_t  ,
void *  anAddress
[inline]
 

const TopoDS_Shape & LocOpe_Builder::OriginalShape  )  const [inline]
 

Standard_EXPORT const TopTools_ListOfShape& LocOpe_Builder::PartsOfTool  )  const
 

Standard_EXPORT void LocOpe_Builder::Perform const TopTools_ListOfShape &  LShape,
const TopTools_ListOfShape &  LTool,
const Standard_Boolean  Fuse
 

Standard_EXPORT void LocOpe_Builder::Perform const TopoDS_Shape &  Tool,
const TopTools_ListOfShape &  L,
const Standard_Boolean  Fuse
 

Standard_EXPORT void LocOpe_Builder::PerformResult  ) 
 

Standard_EXPORT void LocOpe_Builder::RemovePart const TopoDS_Shape &  S  ) 
 

const TopoDS_Shape & LocOpe_Builder::ResultingShape  )  const [inline]
 

const TopTools_ListOfShape & LocOpe_Builder::TgtEdges  )  const [inline]
 

const TopoDS_Shape & LocOpe_Builder::Tool  )  const [inline]
 


Field Documentation

BRepAlgo_TopOpe LocOpe_Builder::myAlgo [private]
 

Standard_Boolean LocOpe_Builder::myDone [private]
 

TopTools_ListOfShape LocOpe_Builder::myEdges [private]
 

Standard_Boolean LocOpe_Builder::myFuse [private]
 

Standard_Boolean LocOpe_Builder::myInvDone [private]
 

TopTools_ListOfShape LocOpe_Builder::myParts [private]
 

Standard_Boolean LocOpe_Builder::myPdone [private]
 

Standard_Boolean LocOpe_Builder::myPerfdone [private]
 

TopTools_ListOfShape LocOpe_Builder::myRemoved [private]
 

TopoDS_Shape LocOpe_Builder::myResult [private]
 

TopoDS_Shape LocOpe_Builder::myShape [private]
 

TopTools_MapOfShape LocOpe_Builder::myShapeMap [private]
 

TopTools_ListOfShape LocOpe_Builder::myTgtEdges [private]
 

TopoDS_Shape LocOpe_Builder::myTool [private]
 

TopTools_MapOfShape LocOpe_Builder::myToolMap [private]
 


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