Open CASCADE Technology  7.0.0
Public Member Functions | Protected Member Functions | Protected Attributes
BRepAlgo_BooleanOperation Class Reference

The abstract class BooleanOperation is the root class of Boolean operations. A BooleanOperation object stores the two shapes in preparation for the Boolean operation specified in one of the classes inheriting from this one. These include: More...

#include <BRepAlgo_BooleanOperation.hxx>

Inheritance diagram for BRepAlgo_BooleanOperation:
Inheritance graph
[legend]

Public Member Functions

virtual ~BRepAlgo_BooleanOperation ()
 
void PerformDS ()
 
void Perform (const TopAbs_State St1, const TopAbs_State St2)
 
Handle< TopOpeBRepBuild_HBuilderBuilder () const
 
const TopoDS_ShapeShape1 () const
 Returns the first shape involved in this Boolean operation. More...
 
const TopoDS_ShapeShape2 () const
 Returns the second shape involved in this Boolean operation. More...
 
virtual const TopTools_ListOfShapeModified (const TopoDS_Shape &S) override
 Returns the list of shapes modified from the shape <S>. More...
 
virtual Standard_Boolean IsDeleted (const TopoDS_Shape &S) override
 Returns true if the shape S has been deleted. More...
 
- Public Member Functions inherited from BRepBuilderAPI_MakeShape
virtual void Build ()
 This is called by Shape(). It does nothing but may be redefined. More...
 
virtual const TopoDS_ShapeShape ()
 Returns a shape built by the shape construction algorithm. Raises exception StdFail_NotDone if the shape was not built. More...
 
 operator TopoDS_Shape ()
 
virtual const TopTools_ListOfShapeGenerated (const TopoDS_Shape &S)
 Returns the list of shapes generated from the shape <S>. More...
 
- Public Member Functions inherited from BRepBuilderAPI_Command
virtual ~BRepBuilderAPI_Command ()
 
virtual Standard_Boolean IsDone () const
 
void Check () const
 Raises NotDone if done is false. More...
 

Protected Member Functions

 BRepAlgo_BooleanOperation (const TopoDS_Shape &S1, const TopoDS_Shape &S2)
 Prepares the operations for S1 and S2. More...
 
void BuilderCanWork (const Standard_Boolean B)
 
Standard_Boolean BuilderCanWork () const
 
virtual void InitParameters ()
 
- Protected Member Functions inherited from BRepBuilderAPI_MakeShape
 BRepBuilderAPI_MakeShape ()
 
- Protected Member Functions inherited from BRepBuilderAPI_Command
 BRepBuilderAPI_Command ()
 Set done to False. More...
 
void Done ()
 Set done to true. More...
 
void NotDone ()
 Set done to false. More...
 

Protected Attributes

Handle< TopOpeBRepBuild_HBuildermyHBuilder
 
TopoDS_Shape myS1
 
TopoDS_Shape myS2
 
- Protected Attributes inherited from BRepBuilderAPI_MakeShape
TopoDS_Shape myShape
 
TopTools_ListOfShape myGenerated
 

Detailed Description

The abstract class BooleanOperation is the root class of Boolean operations. A BooleanOperation object stores the two shapes in preparation for the Boolean operation specified in one of the classes inheriting from this one. These include:

Constructor & Destructor Documentation

virtual BRepAlgo_BooleanOperation::~BRepAlgo_BooleanOperation ( )
virtual
BRepAlgo_BooleanOperation::BRepAlgo_BooleanOperation ( const TopoDS_Shape S1,
const TopoDS_Shape S2 
)
protected

Prepares the operations for S1 and S2.

Member Function Documentation

Handle< TopOpeBRepBuild_HBuilder > BRepAlgo_BooleanOperation::Builder ( ) const
void BRepAlgo_BooleanOperation::BuilderCanWork ( const Standard_Boolean  B)
protected
Standard_Boolean BRepAlgo_BooleanOperation::BuilderCanWork ( ) const
protected
virtual void BRepAlgo_BooleanOperation::InitParameters ( )
protectedvirtual
virtual Standard_Boolean BRepAlgo_BooleanOperation::IsDeleted ( const TopoDS_Shape S)
overridevirtual

Returns true if the shape S has been deleted.

Reimplemented from BRepBuilderAPI_MakeShape.

virtual const TopTools_ListOfShape& BRepAlgo_BooleanOperation::Modified ( const TopoDS_Shape S)
overridevirtual

Returns the list of shapes modified from the shape <S>.

Reimplemented from BRepBuilderAPI_MakeShape.

void BRepAlgo_BooleanOperation::Perform ( const TopAbs_State  St1,
const TopAbs_State  St2 
)
void BRepAlgo_BooleanOperation::PerformDS ( )
const TopoDS_Shape& BRepAlgo_BooleanOperation::Shape1 ( ) const

Returns the first shape involved in this Boolean operation.

const TopoDS_Shape& BRepAlgo_BooleanOperation::Shape2 ( ) const

Returns the second shape involved in this Boolean operation.

Field Documentation

Handle< TopOpeBRepBuild_HBuilder > BRepAlgo_BooleanOperation::myHBuilder
protected
TopoDS_Shape BRepAlgo_BooleanOperation::myS1
protected
TopoDS_Shape BRepAlgo_BooleanOperation::myS2
protected

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