Open CASCADE Technology 6.6.0
|
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:
More...
#include <BRepBuilderAPI_ModifyShape.hxx>
Public Member Functions | |
virtual const TopTools_ListOfShape & | Modified (const TopoDS_Shape &S) |
Returns the list of shapes modified from the shape <S>. | |
virtual 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 | |
BRepBuilderAPI_ModifyShape () | |
Empty constructor. | |
BRepBuilderAPI_ModifyShape (const TopoDS_Shape &S) | |
Initializes the modifier with the Shape <S>, and set the field <myInitialShape> to <S>. | |
BRepBuilderAPI_ModifyShape (const Handle< BRepTools_Modification > &M) | |
Set the field <myModification> with <M>. | |
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. | |
void | DoModif (const TopoDS_Shape &S) |
Performs the previously given modification on the shape <S>. | |
void | DoModif (const Handle< BRepTools_Modification > &M) |
Performs the modification <M> on a previously given shape. | |
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 |
BRepBuilderAPI_ModifyShape::BRepBuilderAPI_ModifyShape | ( | ) | [protected] |
BRepBuilderAPI_ModifyShape::BRepBuilderAPI_ModifyShape | ( | const TopoDS_Shape & | S | ) | [protected] |
BRepBuilderAPI_ModifyShape::BRepBuilderAPI_ModifyShape | ( | const Handle< BRepTools_Modification > & | M | ) | [protected] |
BRepBuilderAPI_ModifyShape::BRepBuilderAPI_ModifyShape | ( | const TopoDS_Shape & | S, |
const Handle< BRepTools_Modification > & | M | ||
) | [protected] |
void BRepBuilderAPI_ModifyShape::DoModif | ( | const TopoDS_Shape & | S | ) | [protected] |
void BRepBuilderAPI_ModifyShape::DoModif | ( | const TopoDS_Shape & | S, |
const Handle< BRepTools_Modification > & | M | ||
) | [protected] |
void BRepBuilderAPI_ModifyShape::DoModif | ( | const Handle< BRepTools_Modification > & | M | ) | [protected] |
virtual const TopTools_ListOfShape& BRepBuilderAPI_ModifyShape::Modified | ( | const TopoDS_Shape & | S | ) | [virtual] |
Reimplemented from BRepBuilderAPI_MakeShape.
Reimplemented in BRepBuilderAPI_Transform, BRepBuilderAPI_GTransform, and BRepOffsetAPI_DraftAngle.
virtual const TopoDS_Shape& BRepBuilderAPI_ModifyShape::ModifiedShape | ( | const TopoDS_Shape & | S | ) | const [virtual] |
Reimplemented in BRepBuilderAPI_Transform, and BRepBuilderAPI_GTransform.
Handle_BRepTools_Modification BRepBuilderAPI_ModifyShape::myModification [protected] |