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

ModelingAlgorithms
TKShHealing
ShapeFix


ShapeFix_Root Class Reference

Root class for fixing operations
Provides context for recording changes (optional),
basic precision value and limit (minimal and
maximal) values for tolerances,
and message registrator
.

#include <ShapeFix_Root.hxx>

Inheritance diagram for ShapeFix_Root:

Inheritance graph
[legend]

Public Member Functions

Standard_EXPORT ShapeFix_Root ()
 Empty Constructor (no context is created)
.
virtual Standard_EXPORT void Set (const Handle(ShapeFix_Root)&Root)
 Copy all fields from another Root object
.
virtual Standard_EXPORT void SetContext (const Handle(ShapeBuild_ReShape)&context)
 Sets context
.
Handle_ShapeBuild_ReShape Context () const
 Returns context
.
virtual Standard_EXPORT void SetMsgRegistrator (const Handle(ShapeExtend_BasicMsgRegistrator)&msgreg)
 Sets message registrator
.
Handle_ShapeExtend_BasicMsgRegistrator MsgRegistrator () const
 Returns message registrator
.
virtual Standard_EXPORT void SetPrecision (const Standard_Real preci)
 Sets basic precision value
.
Standard_Real Precision () const
 Returns basic precision value
.
virtual Standard_EXPORT void SetMinTolerance (const Standard_Real mintol)
 Sets minimal allowed tolerance
.
Standard_Real MinTolerance () const
 Returns minimal allowed tolerance
.
virtual Standard_EXPORT void SetMaxTolerance (const Standard_Real maxtol)
 Sets maximal allowed tolerance
.
Standard_Real MaxTolerance () const
 Returns maximal allowed tolerance
.
Standard_Real LimitTolerance (const Standard_Real toler) const
 Returns tolerance limited by [myMinTol,myMaxTol]
.
Standard_EXPORT void SendMsg (const TopoDS_Shape &shape, const Message_Msg &message, const Message_Gravity gravity=Message_Info) const
 Sends a message to be attached to the shape.
Calls corresponding message of message registrator.
.
void SendMsg (const Message_Msg &message, const Message_Gravity gravity=Message_Info) const
 Sends a message to be attached to myShape.
Calls previous method.
.
void SendWarning (const TopoDS_Shape &shape, const Message_Msg &message) const
 Sends a warning to be attached to the shape.
Calls SendMsg with gravity set to Message_Warning.
.
void SendWarning (const Message_Msg &message) const
 Calls previous method for myShape.
.
void SendFail (const TopoDS_Shape &shape, const Message_Msg &message) const
 Sends a fail to be attached to the shape.
Calls SendMsg with gravity set to Message_Fail.
.
void SendFail (const Message_Msg &message) const
 Calls previous method for myShape.
.
Standard_EXPORT const Handle (Standard_Type)&DynamicType() const

Static Protected Member Functions

static Standard_Boolean NeedFix (const Standard_Integer flag, const Standard_Boolean def=Standard_True)
 Auxiliary method for work with three-position
(on/off/default) flags (modes) in ShapeFix.
.

Protected Attributes

TopoDS_Shape myShape

Private Attributes

Handle_ShapeBuild_ReShape myContext
Handle_ShapeExtend_BasicMsgRegistrator myMsgReg
Standard_Real myPrecision
Standard_Real myMinTol
Standard_Real myMaxTol

Constructor & Destructor Documentation

Standard_EXPORT ShapeFix_Root::ShapeFix_Root  ) 
 


Member Function Documentation

Handle_ShapeBuild_ReShape ShapeFix_Root::Context  )  const
 

Standard_EXPORT const ShapeFix_Root::Handle Standard_Type   )  const
 

Reimplemented in ShapeFix_ComposeShell, ShapeFix_Face, ShapeFix_FixSmallFace, ShapeFix_Shape, ShapeFix_Shell, ShapeFix_Solid, ShapeFix_SplitCommonVertex, ShapeFix_Wire, and ShapeFix_Wireframe.

Standard_Real ShapeFix_Root::LimitTolerance const Standard_Real  toler  )  const [inline]
 

Standard_Real ShapeFix_Root::MaxTolerance  )  const [inline]
 

Standard_Real ShapeFix_Root::MinTolerance  )  const [inline]
 

Handle_ShapeExtend_BasicMsgRegistrator ShapeFix_Root::MsgRegistrator  )  const
 

Standard_Boolean ShapeFix_Root::NeedFix const Standard_Integer  flag,
const Standard_Boolean  def = Standard_True
[inline, static, protected]
 

Standard_Real ShapeFix_Root::Precision  )  const [inline]
 

void ShapeFix_Root::SendFail const Message_Msg &  message  )  const [inline]
 

void ShapeFix_Root::SendFail const TopoDS_Shape &  shape,
const Message_Msg &  message
const [inline]
 

void ShapeFix_Root::SendMsg const Message_Msg &  message,
const Message_Gravity  gravity = Message_Info
const [inline]
 

Standard_EXPORT void ShapeFix_Root::SendMsg const TopoDS_Shape &  shape,
const Message_Msg &  message,
const Message_Gravity  gravity = Message_Info
const
 

void ShapeFix_Root::SendWarning const Message_Msg &  message  )  const [inline]
 

void ShapeFix_Root::SendWarning const TopoDS_Shape &  shape,
const Message_Msg &  message
const [inline]
 

virtual Standard_EXPORT void ShapeFix_Root::Set const Handle(ShapeFix_Root)&  Root  )  [virtual]
 

virtual Standard_EXPORT void ShapeFix_Root::SetContext const Handle(ShapeBuild_ReShape)&  context  )  [virtual]
 

virtual Standard_EXPORT void ShapeFix_Root::SetMaxTolerance const Standard_Real  maxtol  )  [virtual]
 

Reimplemented in ShapeFix_Face, ShapeFix_Shape, ShapeFix_Shell, and ShapeFix_Solid.

virtual Standard_EXPORT void ShapeFix_Root::SetMinTolerance const Standard_Real  mintol  )  [virtual]
 

Reimplemented in ShapeFix_Face, ShapeFix_Shape, ShapeFix_Shell, and ShapeFix_Solid.

virtual Standard_EXPORT void ShapeFix_Root::SetMsgRegistrator const Handle(ShapeExtend_BasicMsgRegistrator)&  msgreg  )  [virtual]
 

Reimplemented in ShapeFix_Face, ShapeFix_Shape, ShapeFix_Shell, and ShapeFix_Solid.

virtual Standard_EXPORT void ShapeFix_Root::SetPrecision const Standard_Real  preci  )  [virtual]
 

Reimplemented in ShapeFix_Face, ShapeFix_Shape, ShapeFix_Shell, ShapeFix_Solid, and ShapeFix_Wire.


Field Documentation

Handle_ShapeBuild_ReShape ShapeFix_Root::myContext [private]
 

Standard_Real ShapeFix_Root::myMaxTol [private]
 

Standard_Real ShapeFix_Root::myMinTol [private]
 

Handle_ShapeExtend_BasicMsgRegistrator ShapeFix_Root::myMsgReg [private]
 

Standard_Real ShapeFix_Root::myPrecision [private]
 

TopoDS_Shape ShapeFix_Root::myShape [protected]
 

Reimplemented in ShapeFix_FixSmallFace, ShapeFix_SplitCommonVertex, and ShapeFix_Wireframe.


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