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

ModelingAlgorithms
TKShHealing
ShapeBuild


ShapeBuild_ReShape Class Reference

Rebuilds a Shape by making pre-defined substitutions on some
of its components
.

#include <ShapeBuild_ReShape.hxx>


Public Member Functions

Standard_EXPORT ShapeBuild_ReShape ()
 Returns an empty Reshape
.
virtual Standard_EXPORT TopoDS_Shape Apply (const TopoDS_Shape &shape, const TopAbs_ShapeEnum until, const Standard_Integer buildmode)
 Applies the substitutions requests to a shape

<until> gives the level of type until which requests are taken
into account. For subshapes of the type <until> no rebuild
and futher exploring are done.
ACTUALLY, NOT IMPLEMENTED BELOW TopAbs_FACE

<buildmode> says how to do on a SOLID,SHELL ... if one of its
sub-shapes has been changed:
0: at least one Replace or Remove -> COMPOUND, else as such
1: at least one Remove (Replace are ignored) -> COMPOUND
2: Replace and Remove are both ignored
If Replace/Remove are ignored or absent, the result as same
type as the starting shape
.
virtual Standard_EXPORT TopoDS_Shape Apply (const TopoDS_Shape &shape, const TopAbs_ShapeEnum until=TopAbs_SHAPE)
 Applies the substitutions requests to a shape.

<until> gives the level of type until which requests are taken
into account. For subshapes of the type <until> no rebuild
and futher exploring are done.
.
virtual Standard_EXPORT Standard_Integer Status (const TopoDS_Shape &shape, TopoDS_Shape &newsh, const Standard_Boolean last=Standard_False)
 Returns a complete substitution status for a shape
0 : not recorded, <newsh> = original <shape>
< 0: to be removed, <newsh> is NULL
> 0: to be replaced, <newsh> is a new item
If <last> is False, returns status and new shape recorded in
the map directly for the shape, if True and status > 0 then
recursively searches for the last status and new shape.
.
Standard_EXPORT Standard_Boolean Status (const ShapeExtend_Status status) const
 Queries the status of last call to Apply(shape,enum)
OK : no (sub)shapes replaced or removed
DONE1: source (starting) shape replaced
DONE2: source (starting) shape removed
DONE3: some subshapes replaced
DONE4: some subshapes removed
FAIL1: some replacements not done because of bad type of subshape
.
Standard_EXPORT const Handle (Standard_Type)&DynamicType() const


Constructor & Destructor Documentation

Standard_EXPORT ShapeBuild_ReShape::ShapeBuild_ReShape  ) 
 


Member Function Documentation

virtual Standard_EXPORT TopoDS_Shape ShapeBuild_ReShape::Apply const TopoDS_Shape &  shape,
const TopAbs_ShapeEnum  until = TopAbs_SHAPE
[virtual]
 

virtual Standard_EXPORT TopoDS_Shape ShapeBuild_ReShape::Apply const TopoDS_Shape &  shape,
const TopAbs_ShapeEnum  until,
const Standard_Integer  buildmode
[virtual]
 

Standard_EXPORT const ShapeBuild_ReShape::Handle Standard_Type   )  const
 

Standard_EXPORT Standard_Boolean ShapeBuild_ReShape::Status const ShapeExtend_Status  status  )  const
 

virtual Standard_EXPORT Standard_Integer ShapeBuild_ReShape::Status const TopoDS_Shape &  shape,
TopoDS_Shape &  newsh,
const Standard_Boolean  last = Standard_False
[virtual]
 


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