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

ModelingAlgorithms
TKPrim
BRepSweep


BRepSweep_Trsf Class Reference

This class is inherited from NumLinearRegularSweep
to implement the simple swept primitives built
moving a Shape with a Trsf. It often is possible
to build the constructed subshapes by a simple
move of the generating subshapes (shared topology
and geometry). So two ways of construction are
proposed :

.

#include <BRepSweep_Trsf.hxx>

Inheritance diagram for BRepSweep_Trsf:

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 void Delete ()
virtual Standard_EXPORT ~BRepSweep_Trsf ()
Standard_EXPORT void Init ()
 ends the construction of the swept primitive
calling the virtual geometric functions that can't
be called in the initialize.

Standard_EXPORT Standard_Boolean Process (const TopoDS_Shape &aGenS, const Sweep_NumShape &aDirV)
 function called to analize the way of construction
of the shapes generated by aGenS and aDirV.

virtual Standard_EXPORT TopoDS_Shape MakeEmptyVertex (const TopoDS_Shape &aGenV, const Sweep_NumShape &aDirV)=0
 Builds the vertex addressed by [aGenV,aDirV], with its
geometric part, but without subcomponents.
.
virtual Standard_EXPORT TopoDS_Shape MakeEmptyDirectingEdge (const TopoDS_Shape &aGenV, const Sweep_NumShape &aDirE)=0
 Builds the edge addressed by [aGenV,aDirE], with its
geometric part, but without subcomponents.
.
virtual Standard_EXPORT TopoDS_Shape MakeEmptyGeneratingEdge (const TopoDS_Shape &aGenE, const Sweep_NumShape &aDirV)=0
 Builds the edge addressed by [aGenE,aDirV], with its
geometric part, but without subcomponents.
.
virtual Standard_EXPORT void SetParameters (const TopoDS_Shape &aNewFace, TopoDS_Shape &aNewVertex, const TopoDS_Shape &aGenF, const TopoDS_Shape &aGenV, const Sweep_NumShape &aDirV)=0
 Sets the parameters of the new vertex on the new
face. The new face and new vertex where generated
from aGenF, aGenV and aDirV .
.
virtual Standard_EXPORT void SetDirectingParameter (const TopoDS_Shape &aNewEdge, TopoDS_Shape &aNewVertex, const TopoDS_Shape &aGenV, const Sweep_NumShape &aDirE, const Sweep_NumShape &aDirV)=0
 Sets the parameter of the new vertex on the new
edge. The new edge and new vertex where generated
from aGenV aDirE, and aDirV.
.
virtual Standard_EXPORT void SetGeneratingParameter (const TopoDS_Shape &aNewEdge, TopoDS_Shape &aNewVertex, const TopoDS_Shape &aGenE, const TopoDS_Shape &aGenV, const Sweep_NumShape &aDirV)=0
 Sets the parameter of the new vertex on the new
edge. The new edge and new vertex where generated
from aGenE, aGenV and aDirV .
.
virtual Standard_EXPORT TopoDS_Shape MakeEmptyFace (const TopoDS_Shape &aGenS, const Sweep_NumShape &aDirS)=0
 Builds the face addressed by [aGenS,aDirS], with
its geometric part, but without subcomponents. The
couple aGenS, aDirS can be a "generating face and <br> a directing vertex" or "a generating edge and a <br> directing edge".
.
virtual Standard_EXPORT void SetPCurve (const TopoDS_Shape &aNewFace, TopoDS_Shape &aNewEdge, const TopoDS_Shape &aGenF, const TopoDS_Shape &aGenE, const Sweep_NumShape &aDirV, const TopAbs_Orientation orien)=0
 Sets the PCurve for a new edge on a new face. The
new edge and the new face were generated using
aGenF, aGenE and aDirV.
.
virtual Standard_EXPORT void SetGeneratingPCurve (const TopoDS_Shape &aNewFace, TopoDS_Shape &aNewEdge, const TopoDS_Shape &aGenE, const Sweep_NumShape &aDirE, const Sweep_NumShape &aDirV, const TopAbs_Orientation orien)=0
 Sets the PCurve for a new edge on a new face. The
new edge and the new face were generated using
aGenE, aDirE and aDirV.
.
virtual Standard_EXPORT void SetDirectingPCurve (const TopoDS_Shape &aNewFace, TopoDS_Shape &aNewEdge, const TopoDS_Shape &aGenE, const TopoDS_Shape &aGenV, const Sweep_NumShape &aDirE, const TopAbs_Orientation orien)=0
 Sets the PCurve for a new edge on a new face. The
new edge and the new face were generated using
aGenE, aDirE and aGenV.
.
virtual Standard_EXPORT Standard_Boolean GGDShapeIsToAdd (const TopoDS_Shape &aNewShape, const TopoDS_Shape &aNewSubShape, const TopoDS_Shape &aGenS, const TopoDS_Shape &aSubGenS, const Sweep_NumShape &aDirS) const =0
 Returns true if aNewSubShape (addressed by
aSubGenS and aDirS) must be added in aNewShape
(addressed by aGenS and aDirS).
.
virtual Standard_EXPORT Standard_Boolean GDDShapeIsToAdd (const TopoDS_Shape &aNewShape, const TopoDS_Shape &aNewSubShape, const TopoDS_Shape &aGenS, const Sweep_NumShape &aDirS, const Sweep_NumShape &aSubDirS) const =0
 Returns true if aNewSubShape (addressed by
aGenS and aSubDirS) must be added in aNewShape
(addressed by aGenS and aDirS).
.
virtual Standard_EXPORT Standard_Boolean SeparatedWires (const TopoDS_Shape &aNewShape, const TopoDS_Shape &aNewSubShape, const TopoDS_Shape &aGenS, const TopoDS_Shape &aSubGenS, const Sweep_NumShape &aDirS) const =0
 In some particular cases the topology of a
generated face must be composed of independant
closed wires, in this case this function returns
true.
.
virtual Standard_EXPORT Standard_Boolean HasShape (const TopoDS_Shape &aGenS, const Sweep_NumShape &aDirS) const =0
 Returns true if aDirS and aGenS addresses a
resulting Shape. In some specific cases the shape
can be geometrically inexsistant, then this
function returns false.
.
virtual Standard_EXPORT Standard_Boolean IsInvariant (const TopoDS_Shape &aGenS) const =0
 Returns true if the geometry of aGenS is not
modified by the trsf of the BRepSweep Trsf.
.
Standard_EXPORT void SetContinuity (const TopoDS_Shape &aGenS, const Sweep_NumShape &aDirS)
 Called to propagate the continuity of every vertex
between two edges of the generating wire aGenS on
the generated edge and faces.
.

Protected Member Functions

Standard_EXPORT BRepSweep_Trsf (const BRep_Builder &aBuilder, const TopoDS_Shape &aGenShape, const Sweep_NumShape &aDirWire, const TopLoc_Location &aLocation, const Standard_Boolean aCopy)
 Initialize the Trsf BrepSweep, if aCopy is true
the basis elements are shared as often as
possible, else everything is copied.

.

Protected Attributes

TopLoc_Location myLocation
Standard_Boolean myCopy

Constructor & Destructor Documentation

virtual Standard_EXPORT BRepSweep_Trsf::~BRepSweep_Trsf  )  [inline, virtual]
 

Standard_EXPORT BRepSweep_Trsf::BRepSweep_Trsf const BRep_Builder &  aBuilder,
const TopoDS_Shape &  aGenShape,
const Sweep_NumShape aDirWire,
const TopLoc_Location &  aLocation,
const Standard_Boolean  aCopy
[protected]
 


Member Function Documentation

virtual Standard_EXPORT void BRepSweep_Trsf::Delete  )  [virtual]
 

Reimplemented from BRepSweep_NumLinearRegularSweep.

Reimplemented in BRepSweep_Translation.

virtual Standard_EXPORT Standard_Boolean BRepSweep_Trsf::GDDShapeIsToAdd const TopoDS_Shape &  aNewShape,
const TopoDS_Shape &  aNewSubShape,
const TopoDS_Shape &  aGenS,
const Sweep_NumShape aDirS,
const Sweep_NumShape aSubDirS
const [pure virtual]
 

Implements BRepSweep_NumLinearRegularSweep.

Implemented in BRepSweep_Rotation, and BRepSweep_Translation.

virtual Standard_EXPORT Standard_Boolean BRepSweep_Trsf::GGDShapeIsToAdd const TopoDS_Shape &  aNewShape,
const TopoDS_Shape &  aNewSubShape,
const TopoDS_Shape &  aGenS,
const TopoDS_Shape &  aSubGenS,
const Sweep_NumShape aDirS
const [pure virtual]
 

Implements BRepSweep_NumLinearRegularSweep.

Implemented in BRepSweep_Rotation, and BRepSweep_Translation.

virtual Standard_EXPORT Standard_Boolean BRepSweep_Trsf::HasShape const TopoDS_Shape &  aGenS,
const Sweep_NumShape aDirS
const [pure virtual]
 

Implements BRepSweep_NumLinearRegularSweep.

Implemented in BRepSweep_Rotation, and BRepSweep_Translation.

Standard_EXPORT void BRepSweep_Trsf::Init  ) 
 

virtual Standard_EXPORT Standard_Boolean BRepSweep_Trsf::IsInvariant const TopoDS_Shape &  aGenS  )  const [pure virtual]
 

Implemented in BRepSweep_Rotation, and BRepSweep_Translation.

virtual Standard_EXPORT TopoDS_Shape BRepSweep_Trsf::MakeEmptyDirectingEdge const TopoDS_Shape &  aGenV,
const Sweep_NumShape aDirE
[pure virtual]
 

Implements BRepSweep_NumLinearRegularSweep.

Implemented in BRepSweep_Rotation, and BRepSweep_Translation.

virtual Standard_EXPORT TopoDS_Shape BRepSweep_Trsf::MakeEmptyFace const TopoDS_Shape &  aGenS,
const Sweep_NumShape aDirS
[pure virtual]
 

Implements BRepSweep_NumLinearRegularSweep.

Implemented in BRepSweep_Rotation, and BRepSweep_Translation.

virtual Standard_EXPORT TopoDS_Shape BRepSweep_Trsf::MakeEmptyGeneratingEdge const TopoDS_Shape &  aGenE,
const Sweep_NumShape aDirV
[pure virtual]
 

Implements BRepSweep_NumLinearRegularSweep.

Implemented in BRepSweep_Rotation, and BRepSweep_Translation.

virtual Standard_EXPORT TopoDS_Shape BRepSweep_Trsf::MakeEmptyVertex const TopoDS_Shape &  aGenV,
const Sweep_NumShape aDirV
[pure virtual]
 

Implements BRepSweep_NumLinearRegularSweep.

Implemented in BRepSweep_Rotation, and BRepSweep_Translation.

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

Reimplemented from BRepSweep_NumLinearRegularSweep.

Reimplemented in BRepSweep_Rotation, and BRepSweep_Translation.

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

Reimplemented from BRepSweep_NumLinearRegularSweep.

Reimplemented in BRepSweep_Rotation, and BRepSweep_Translation.

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

Reimplemented from BRepSweep_NumLinearRegularSweep.

Reimplemented in BRepSweep_Rotation, and BRepSweep_Translation.

Standard_EXPORT Standard_Boolean BRepSweep_Trsf::Process const TopoDS_Shape &  aGenS,
const Sweep_NumShape aDirV
 

virtual Standard_EXPORT Standard_Boolean BRepSweep_Trsf::SeparatedWires const TopoDS_Shape &  aNewShape,
const TopoDS_Shape &  aNewSubShape,
const TopoDS_Shape &  aGenS,
const TopoDS_Shape &  aSubGenS,
const Sweep_NumShape aDirS
const [pure virtual]
 

Implements BRepSweep_NumLinearRegularSweep.

Implemented in BRepSweep_Rotation, and BRepSweep_Translation.

Standard_EXPORT void BRepSweep_Trsf::SetContinuity const TopoDS_Shape &  aGenS,
const Sweep_NumShape aDirS
[virtual]
 

Implements BRepSweep_NumLinearRegularSweep.

virtual Standard_EXPORT void BRepSweep_Trsf::SetDirectingParameter const TopoDS_Shape &  aNewEdge,
TopoDS_Shape &  aNewVertex,
const TopoDS_Shape &  aGenV,
const Sweep_NumShape aDirE,
const Sweep_NumShape aDirV
[pure virtual]
 

Implements BRepSweep_NumLinearRegularSweep.

Implemented in BRepSweep_Rotation, and BRepSweep_Translation.

virtual Standard_EXPORT void BRepSweep_Trsf::SetDirectingPCurve const TopoDS_Shape &  aNewFace,
TopoDS_Shape &  aNewEdge,
const TopoDS_Shape &  aGenE,
const TopoDS_Shape &  aGenV,
const Sweep_NumShape aDirE,
const TopAbs_Orientation  orien
[pure virtual]
 

Implements BRepSweep_NumLinearRegularSweep.

Implemented in BRepSweep_Rotation, and BRepSweep_Translation.

virtual Standard_EXPORT void BRepSweep_Trsf::SetGeneratingParameter const TopoDS_Shape &  aNewEdge,
TopoDS_Shape &  aNewVertex,
const TopoDS_Shape &  aGenE,
const TopoDS_Shape &  aGenV,
const Sweep_NumShape aDirV
[pure virtual]
 

Implements BRepSweep_NumLinearRegularSweep.

Implemented in BRepSweep_Rotation, and BRepSweep_Translation.

virtual Standard_EXPORT void BRepSweep_Trsf::SetGeneratingPCurve const TopoDS_Shape &  aNewFace,
TopoDS_Shape &  aNewEdge,
const TopoDS_Shape &  aGenE,
const Sweep_NumShape aDirE,
const Sweep_NumShape aDirV,
const TopAbs_Orientation  orien
[pure virtual]
 

Implements BRepSweep_NumLinearRegularSweep.

Implemented in BRepSweep_Rotation, and BRepSweep_Translation.

virtual Standard_EXPORT void BRepSweep_Trsf::SetParameters const TopoDS_Shape &  aNewFace,
TopoDS_Shape &  aNewVertex,
const TopoDS_Shape &  aGenF,
const TopoDS_Shape &  aGenV,
const Sweep_NumShape aDirV
[pure virtual]
 

Implements BRepSweep_NumLinearRegularSweep.

Implemented in BRepSweep_Rotation, and BRepSweep_Translation.

virtual Standard_EXPORT void BRepSweep_Trsf::SetPCurve const TopoDS_Shape &  aNewFace,
TopoDS_Shape &  aNewEdge,
const TopoDS_Shape &  aGenF,
const TopoDS_Shape &  aGenE,
const Sweep_NumShape aDirV,
const TopAbs_Orientation  orien
[pure virtual]
 

Implements BRepSweep_NumLinearRegularSweep.

Implemented in BRepSweep_Rotation, and BRepSweep_Translation.


Field Documentation

Standard_Boolean BRepSweep_Trsf::myCopy [protected]
 

TopLoc_Location BRepSweep_Trsf::myLocation [protected]
 


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