Open CASCADE Technology  6.9.0
Public Member Functions

BRepBuilderAPI_Transform Class Reference

Geometric transformation on a shape. The transformation to be applied is defined as a gp_Trsf transformation, i.e. a transformation which does not modify the underlying geometry of shapes. The transformation is applied to: More...

#include <BRepBuilderAPI_Transform.hxx>

Inheritance diagram for BRepBuilderAPI_Transform:
Inheritance graph
[legend]

Public Member Functions

 BRepBuilderAPI_Transform (const gp_Trsf &T)
 Constructs a framework for applying the geometric transformation T to a shape. Use the function Perform to define the shape to transform. More...
 
 BRepBuilderAPI_Transform (const TopoDS_Shape &S, const gp_Trsf &T, const Standard_Boolean Copy=Standard_False)
 Creates a transformation from the gp_Trsf <T>, and applies it to the shape <S>. If the transformation is direct and isometric (determinant = 1) and <Copy> = Standard_False, the resulting shape is <S> on which a new location has been set. Otherwise, the transformation is applied on a duplication of <S>. More...
 
void Perform (const TopoDS_Shape &S, const Standard_Boolean Copy=Standard_False)
 pplies the geometric transformation defined at the time of construction of this framework to the shape S. More...
 
virtual TopoDS_Shape ModifiedShape (const TopoDS_Shape &S) const
 Returns the modified shape corresponding to <S>. More...
 
virtual const
TopTools_ListOfShape
Modified (const TopoDS_Shape &S)
 Returns the list of shapes modified from the shape <S>. More...
 
- Public Member Functions inherited from BRepBuilderAPI_MakeShape
virtual void Delete ()
 
virtual ~BRepBuilderAPI_MakeShape ()
 
virtual void Build ()
 This is called by Shape(). It does nothing but may be redefined. More...
 
virtual const TopoDS_ShapeShape () const
 Returns a shape built by the shape construction algorithm. Raises exception StdFail_NotDone if the shape was not built. More...
 
 operator TopoDS_Shape () const
 
virtual const
TopTools_ListOfShape
Generated (const TopoDS_Shape &S)
 Returns the list of shapes generated from the shape <S>. More...
 
virtual Standard_Boolean IsDeleted (const TopoDS_Shape &S)
 Returns true if the shape S has been deleted. More...
 
- Public Member Functions inherited from BRepBuilderAPI_Command
virtual ~BRepBuilderAPI_Command ()
 
virtual Standard_Boolean IsDone () const
 
void Check () const
 Raises NotDone if done is false. More...
 

Additional Inherited Members

- Protected Member Functions inherited from BRepBuilderAPI_ModifyShape
 BRepBuilderAPI_ModifyShape ()
 Empty constructor. More...
 
 BRepBuilderAPI_ModifyShape (const TopoDS_Shape &S)
 Initializes the modifier with the Shape <S>, and set the field <myInitialShape> to <S>. More...
 
 BRepBuilderAPI_ModifyShape (const Handle< BRepTools_Modification > &M)
 Set the field <myModification> with <M>. More...
 
 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. More...
 
void DoModif (const TopoDS_Shape &S)
 Performs the previously given modification on the shape <S>. More...
 
void DoModif (const Handle< BRepTools_Modification > &M)
 Performs the modification <M> on a previously given shape. More...
 
void DoModif (const TopoDS_Shape &S, const Handle< BRepTools_Modification > &M)
 Performs the modification <M> on the shape <S>. More...
 
- Protected Member Functions inherited from BRepBuilderAPI_MakeShape
 BRepBuilderAPI_MakeShape ()
 
- Protected Member Functions inherited from BRepBuilderAPI_Command
 BRepBuilderAPI_Command ()
 Set done to False. More...
 
void Done ()
 Set done to true. More...
 
void NotDone ()
 Set done to false. More...
 
- Protected Attributes inherited from BRepBuilderAPI_ModifyShape
BRepTools_Modifier myModifier
 
TopoDS_Shape myInitialShape
 
Handle< BRepTools_ModificationmyModification
 
- Protected Attributes inherited from BRepBuilderAPI_MakeShape
TopoDS_Shape myShape
 
TopTools_ListOfShape myGenerated
 

Detailed Description

Geometric transformation on a shape. The transformation to be applied is defined as a gp_Trsf transformation, i.e. a transformation which does not modify the underlying geometry of shapes. The transformation is applied to:

Constructor & Destructor Documentation

BRepBuilderAPI_Transform::BRepBuilderAPI_Transform ( const gp_Trsf T)

Constructs a framework for applying the geometric transformation T to a shape. Use the function Perform to define the shape to transform.

BRepBuilderAPI_Transform::BRepBuilderAPI_Transform ( const TopoDS_Shape S,
const gp_Trsf T,
const Standard_Boolean  Copy = Standard_False 
)

Creates a transformation from the gp_Trsf <T>, and applies it to the shape <S>. If the transformation is direct and isometric (determinant = 1) and <Copy> = Standard_False, the resulting shape is <S> on which a new location has been set. Otherwise, the transformation is applied on a duplication of <S>.

Member Function Documentation

virtual const TopTools_ListOfShape& BRepBuilderAPI_Transform::Modified ( const TopoDS_Shape S)
virtual

Returns the list of shapes modified from the shape <S>.

Reimplemented from BRepBuilderAPI_ModifyShape.

virtual TopoDS_Shape BRepBuilderAPI_Transform::ModifiedShape ( const TopoDS_Shape S) const
virtual

Returns the modified shape corresponding to <S>.

Reimplemented from BRepBuilderAPI_ModifyShape.

void BRepBuilderAPI_Transform::Perform ( const TopoDS_Shape S,
const Standard_Boolean  Copy = Standard_False 
)

pplies the geometric transformation defined at the time of construction of this framework to the shape S.

  • If the transformation T is direct and isometric, in other words, if the determinant of the vectorial part of T is equal to 1., and if Copy equals false (the default value), the resulting shape is the same as the original but with a new location assigned to it.
  • In all other cases, the transformation is applied to a duplicate of S. Use the function Shape to access the result. Note: this framework can be reused to apply the same geometric transformation to other shapes. You only need to specify them by calling the function Perform again.

The documentation for this class was generated from the following file: