Version: 6.3.1
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes

ShHealOper_CloseContour Class Reference

Class ShHealOper_CloseContour.

#include <ShHealOper_CloseContour.hxx>

Inheritance diagram for ShHealOper_CloseContour:
Inheritance graph

Public Member Functions

Standard_EXPORT ShHealOper_CloseContour ()
Standard_EXPORT ShHealOper_CloseContour (const TopoDS_Shape &theShape)
virtual Standard_EXPORT void Init (const TopoDS_Shape &theShape)
Standard_EXPORT Standard_Boolean Perform (const TopTools_SequenceOfShape &theSeqEdges, const Standard_Boolean theModeVertex=Standard_False, const Standard_Boolean theModeFixGapsCurves=Standard_True)
Standard_EXPORT Standard_Boolean Perform (const TopoDS_Wire &theWire, const Standard_Boolean theModeVertex=Standard_False, const Standard_Boolean theModeFixGapsCurves=Standard_True)
void SetTolerance (const Standard_Real theTolerance)
Standard_Real GetTolerance ()
void SetMaxTolerance (const Standard_Real theMaxTolerance)
Standard_Real GetMaxTolerance ()
void SetModeVertex (const Standard_Boolean theModeVertex)
Standard_Boolean GetModeVertex ()
const TopoDS_Shape & GetResultShape () const
Standard_Boolean GetModifiedShape (const TopoDS_Shape &theOldShape, TopoDS_Shape &theNewShape) const
Standard_Boolean IsDone () const
void SetContext (Handle(ShapeBuild_ReShape)&theContext)
 Handle (ShapeBuild_ReShape) Context()
Standard_Integer GetErrorStatus ()

Protected Member Functions

 Handle (ShapeBuild_ReShape) myContext

Protected Attributes

TopoDS_Shape myInitShape
TopoDS_Shape myResultShape
Standard_Boolean myDone
ShHealOper_Error myErrorStatus

Private Member Functions

void build (Handle(ShapeExtend_WireData)&theSewd)
Standard_Boolean fixGaps (const Handle(ShapeExtend_WireData)&theWire, const TopTools_SequenceOfShape &theCommonFaces)
Standard_Boolean checkOneFace (const Handle(ShapeExtend_WireData)&theSewd, TopTools_SequenceOfShape &theCommonFaces) const
void buildEdge (const TopoDS_Edge &aE1, const TopoDS_Edge &aE2, const TopTools_SequenceOfShape &theCommonFaces)
void updateWire (Handle(ShapeExtend_WireData)&sbwd)

Private Attributes

Standard_Boolean myModeVertex
Standard_Boolean myModeFixGapsCurves
Standard_Real myMaxTolerance
Standard_Real myTolerance
TopTools_IndexedDataMapOfShapeListOfShape myMapEdgesFace
TopTools_SequenceOfShape myFreeEdges

Constructor & Destructor Documentation

Standard_EXPORT ShHealOper_CloseContour.ShHealOper_CloseContour ( )
ShHealOper_CloseContour::ShHealOper_CloseContour ( const TopoDS_Shape &  theShape)

References Init().


Member Function Documentation

void ShHealOper_CloseContour::Init ( const TopoDS_Shape &  theShape) [virtual]

Reimplemented from ShHealOper_Tool.

References myMapEdgesFace, myMaxTolerance, and myTolerance.

Standard_Boolean ShHealOper_CloseContour::Perform ( const TopTools_SequenceOfShape &  theSeqEdges,
const Standard_Boolean  theModeVertex = Standard_False,
const Standard_Boolean  theModeFixGapsCurves = Standard_True 
)
Standard_Boolean ShHealOper_CloseContour::Perform ( const TopoDS_Wire &  theWire,
const Standard_Boolean  theModeVertex = Standard_False,
const Standard_Boolean  theModeFixGapsCurves = Standard_True 
)
void ShHealOper_CloseContour.SetTolerance ( const Standard_Real  theTolerance)

References myTolerance.

Standard_Real ShHealOper_CloseContour.GetTolerance ( )

References myTolerance.

void ShHealOper_CloseContour.SetMaxTolerance ( const Standard_Real  theMaxTolerance)

References myMaxTolerance.

Standard_Real ShHealOper_CloseContour.GetMaxTolerance ( )

References myMaxTolerance.

void ShHealOper_CloseContour.SetModeVertex ( const Standard_Boolean  theModeVertex)

References myModeVertex.

Standard_Boolean ShHealOper_CloseContour.GetModeVertex ( )

References myModeVertex.

void ShHealOper_CloseContour::build ( Handle(ShapeExtend_WireData)&  theSewd) [private]
Standard_Boolean ShHealOper_CloseContour::fixGaps ( const Handle(ShapeExtend_WireData)&  theWire,
const TopTools_SequenceOfShape &  theCommonFaces 
) [private]
Standard_Boolean ShHealOper_CloseContour::checkOneFace ( const Handle(ShapeExtend_WireData)&  theSewd,
TopTools_SequenceOfShape &  theCommonFaces 
) const [private]
void ShHealOper_CloseContour::buildEdge ( const TopoDS_Edge &  aE1,
const TopoDS_Edge &  aE2,
const TopTools_SequenceOfShape &  theCommonFaces 
) [private]
void ShHealOper_CloseContour::updateWire ( Handle(ShapeExtend_WireData)&  sbwd) [private]
const TopoDS_Shape& ShHealOper_Tool.GetResultShape ( ) const [inherited]
Standard_Boolean ShHealOper_Tool.GetModifiedShape ( const TopoDS_Shape &  theOldShape,
TopoDS_Shape &  theNewShape 
) const [inherited]
Standard_Boolean ShHealOper_Tool.IsDone ( ) const [inherited]
void ShHealOper_Tool.SetContext ( Handle(ShapeBuild_ReShape)&  theContext) [inherited]
ShHealOper_Tool.Handle ( ShapeBuild_ReShape  ) [inherited]
ShHealOper_Tool.Handle ( ShapeBuild_ReShape  ) [protected, inherited]
Standard_Integer ShHealOper_Tool.GetErrorStatus ( ) [inherited]

Field Documentation

Standard_Boolean ShHealOper_CloseContour.myModeVertex [private]
Standard_Boolean ShHealOper_CloseContour.myModeFixGapsCurves [private]
Standard_Real ShHealOper_CloseContour.myMaxTolerance [private]
Standard_Real ShHealOper_CloseContour.myTolerance [private]
TopTools_IndexedDataMapOfShapeListOfShape ShHealOper_CloseContour.myMapEdgesFace [private]
TopTools_SequenceOfShape ShHealOper_CloseContour.myFreeEdges [private]
TopoDS_Shape ShHealOper_Tool.myInitShape [protected, inherited]
TopoDS_Shape ShHealOper_Tool.myResultShape [protected, inherited]
Standard_Boolean ShHealOper_Tool.myDone [protected, inherited]
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS