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

ModelingAlgorithms
TKTopAlgo
BRepBuilderAPI


BRepBuilderAPI_ModifyShape Class Reference

Implements the methods of MakeShape for the
constant topology modifications. The methods are
implemented when the modification uses a Modifier
from BRepTools. Some of them have to be redefined
if the modification is implemented with another
tool (see Transform from BRepBuilderAPI for example).
The BRepBuilderAPI package provides the following
frameworks to perform modifications of this sort:
- BRepBuilderAPI_Copy to produce the copy of a shape,
- BRepBuilderAPI_Transform and
BRepBuilderAPI_GTransform to apply a geometric
transformation to a shape,
- BRepBuilderAPI_NurbsConvert to convert the
whole geometry of a shape into NURBS geometry,
- BRepOffsetAPI_DraftAngle to build a tapered shape.
.

#include <BRepBuilderAPI_ModifyShape.hxx>

Inheritance diagram for BRepBuilderAPI_ModifyShape:

Inheritance graph
[legend]

Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)
virtual Standard_EXPORT const
TopTools_ListOfShape & 
Modified (const TopoDS_Shape &S)
 Returns the list of shapes modified from the shape
<s>.
.
virtual Standard_EXPORT const
TopoDS_Shape & 
ModifiedShape (const TopoDS_Shape &S) const
 Returns the modified shape corresponding to <s>.
S can correspond to the entire initial shape or to its subshape.
Exceptions
Standard_NoSuchObject if S is not the initial shape or
a subshape of the initial shape to which the
transformation has been applied. Raises NoSuchObject from Standard
if S is not the initial shape or a sub-shape
of the initial shape.
.

Protected Member Functions

Standard_EXPORT BRepBuilderAPI_ModifyShape ()
 Empty constructor.
.
Standard_EXPORT BRepBuilderAPI_ModifyShape (const TopoDS_Shape &S)
 Initializes the modifier with the Shape <s>, and
set the field <myinitialshape> to <s>.
.
Standard_EXPORT BRepBuilderAPI_ModifyShape (const Handle(BRepTools_Modification)&M)
 Set the field <mymodification> with <m>.
.
Standard_EXPORT BRepBuilderAPI_ModifyShape (const TopoDS_Shape &S, const Handle(BRepTools_Modification)&M)
 Initializes the modifier with the Shape <s>, and
set the field <myinitialshape> to <s>, and set the
field <mymodification> with <m>, the performs the
modification.
.
Standard_EXPORT void DoModif (const TopoDS_Shape &S)
 Performs the previously given modification on the
shape <s>.
.
Standard_EXPORT void DoModif (const Handle(BRepTools_Modification)&M)
 Performs the modification <m> on a previously
given shape.
.
Standard_EXPORT void DoModif (const TopoDS_Shape &S, const Handle(BRepTools_Modification)&M)
 Performs the modification <m> on the shape <s>.
.

Protected Attributes

BRepTools_Modifier myModifier
TopoDS_Shape myInitialShape
Handle_BRepTools_Modification myModification

Private Member Functions

Standard_EXPORT void DoModif ()

Constructor & Destructor Documentation

Standard_EXPORT BRepBuilderAPI_ModifyShape::BRepBuilderAPI_ModifyShape  )  [protected]
 

Standard_EXPORT BRepBuilderAPI_ModifyShape::BRepBuilderAPI_ModifyShape const TopoDS_Shape &  S  )  [protected]
 

Standard_EXPORT BRepBuilderAPI_ModifyShape::BRepBuilderAPI_ModifyShape const Handle(BRepTools_Modification)&  M  )  [protected]
 

Standard_EXPORT BRepBuilderAPI_ModifyShape::BRepBuilderAPI_ModifyShape const TopoDS_Shape &  S,
const Handle(BRepTools_Modification)&  M
[protected]
 


Member Function Documentation

Standard_EXPORT void BRepBuilderAPI_ModifyShape::DoModif  )  [private]
 

Standard_EXPORT void BRepBuilderAPI_ModifyShape::DoModif const TopoDS_Shape &  S,
const Handle(BRepTools_Modification)&  M
[protected]
 

Standard_EXPORT void BRepBuilderAPI_ModifyShape::DoModif const Handle(BRepTools_Modification)&  M  )  [protected]
 

Standard_EXPORT void BRepBuilderAPI_ModifyShape::DoModif const TopoDS_Shape &  S  )  [protected]
 

virtual Standard_EXPORT const TopTools_ListOfShape& BRepBuilderAPI_ModifyShape::Modified const TopoDS_Shape &  S  )  [virtual]
 

Reimplemented from BRepBuilderAPI_MakeShape.

Reimplemented in BRepBuilderAPI_GTransform, BRepBuilderAPI_Transform, and BRepOffsetAPI_DraftAngle.

virtual Standard_EXPORT const TopoDS_Shape& BRepBuilderAPI_ModifyShape::ModifiedShape const TopoDS_Shape &  S  )  const [virtual]
 

Reimplemented in BRepBuilderAPI_GTransform, and BRepBuilderAPI_Transform.

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

Reimplemented from BRepBuilderAPI_MakeShape.

Reimplemented in BRepBuilderAPI_Copy, BRepBuilderAPI_GTransform, BRepBuilderAPI_NurbsConvert, BRepBuilderAPI_Transform, and BRepOffsetAPI_DraftAngle.

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

Reimplemented from BRepBuilderAPI_MakeShape.

Reimplemented in BRepBuilderAPI_Copy, BRepBuilderAPI_GTransform, BRepBuilderAPI_NurbsConvert, BRepBuilderAPI_Transform, and BRepOffsetAPI_DraftAngle.

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

Reimplemented from BRepBuilderAPI_MakeShape.

Reimplemented in BRepBuilderAPI_Copy, BRepBuilderAPI_GTransform, BRepBuilderAPI_NurbsConvert, BRepBuilderAPI_Transform, and BRepOffsetAPI_DraftAngle.


Field Documentation

TopoDS_Shape BRepBuilderAPI_ModifyShape::myInitialShape [protected]
 

Handle_BRepTools_Modification BRepBuilderAPI_ModifyShape::myModification [protected]
 

BRepTools_Modifier BRepBuilderAPI_ModifyShape::myModifier [protected]
 


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