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

ModelingAlgorithms
TKPrim
BRepSweep


BRepSweep_Translation Class Reference

Provides an algorithm to build object by
translation sweep.
.

#include <BRepSweep_Translation.hxx>

Inheritance diagram for BRepSweep_Translation:

Inheritance graph
[legend]

Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)
Standard_EXPORT BRepSweep_Translation (const TopoDS_Shape &S, const Sweep_NumShape &N, const TopLoc_Location &L, const gp_Vec &V, const Standard_Boolean C, const Standard_Boolean Canonize=Standard_True)
 Creates a topology by translating <s> with the
vector <v>. If C is true S Sucomponents are
copied. If Canonize is true then generated surfaces
are attempted to be canonized in simple types
.
virtual Standard_EXPORT void Delete ()
virtual Standard_EXPORT ~BRepSweep_Translation ()
Standard_EXPORT TopoDS_Shape MakeEmptyVertex (const TopoDS_Shape &aGenV, const Sweep_NumShape &aDirV)
 Builds the vertex addressed by [aGenV,aDirV], with its
geometric part, but without subcomponents.
.
Standard_EXPORT TopoDS_Shape MakeEmptyDirectingEdge (const TopoDS_Shape &aGenV, const Sweep_NumShape &aDirE)
 Builds the edge addressed by [aGenV,aDirE], with its
geometric part, but without subcomponents.
.
Standard_EXPORT TopoDS_Shape MakeEmptyGeneratingEdge (const TopoDS_Shape &aGenE, const Sweep_NumShape &aDirV)
 Builds the edge addressed by [aGenE,aDirV], with its
geometric part, but without subcomponents.
.
Standard_EXPORT void SetParameters (const TopoDS_Shape &aNewFace, TopoDS_Shape &aNewVertex, const TopoDS_Shape &aGenF, const TopoDS_Shape &aGenV, const Sweep_NumShape &aDirV)
 Sets the parameters of the new vertex on the new
face. The new face and new vertex where generated
from aGenF, aGenV and aDirV .
.
Standard_EXPORT void SetDirectingParameter (const TopoDS_Shape &aNewEdge, TopoDS_Shape &aNewVertex, const TopoDS_Shape &aGenV, const Sweep_NumShape &aDirE, const Sweep_NumShape &aDirV)
 Sets the parameter of the new vertex on the new
edge. The new edge and new vertex where generated
from aGenV aDirE, and aDirV.
.
Standard_EXPORT void SetGeneratingParameter (const TopoDS_Shape &aNewEdge, TopoDS_Shape &aNewVertex, const TopoDS_Shape &aGenE, const TopoDS_Shape &aGenV, const Sweep_NumShape &aDirV)
 Sets the parameter of the new vertex on the new
edge. The new edge and new vertex where generated
from aGenE, aGenV and aDirV .
.
Standard_EXPORT TopoDS_Shape MakeEmptyFace (const TopoDS_Shape &aGenS, const Sweep_NumShape &aDirS)
 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".
.
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)
 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.
.
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)
 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.
.
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)
 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.
.
Standard_EXPORT TopAbs_Orientation DirectSolid (const TopoDS_Shape &aGenS, const Sweep_NumShape &aDirS)
 Returns the Orientation of the shell in the solid
generated by the face aGenS with the edge aDirS.
It is REVERSED if the surface is swept in the
direction of the normal.
.
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
 Returns true if aNewSubShape (addressed by
aSubGenS and aDirS) must be added in aNewShape
(addressed by aGenS and aDirS).
.
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
 Returns true if aNewSubShape (addressed by
aGenS and aSubDirS) must be added in aNewShape
(addressed by aGenS and aDirS).
.
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
 In some particular cases the topology of a
generated face must be composed of independant
closed wires, in this case this function returns
true.
Here it always returns false.
.
Standard_EXPORT Standard_Boolean HasShape (const TopoDS_Shape &aGenS, const Sweep_NumShape &aDirS) const
 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.
.
Standard_EXPORT Standard_Boolean IsInvariant (const TopoDS_Shape &aGenS) const
 Returns always false because here the
transformation is a translation.
.
Standard_EXPORT gp_Vec Vec () const
 Returns the Vector of the Prism, if it is an infinite
prism the Vec is unitar.
.

Private Attributes

gp_Vec myVec
Standard_Boolean myCanonize

Constructor & Destructor Documentation

Standard_EXPORT BRepSweep_Translation::BRepSweep_Translation const TopoDS_Shape &  S,
const Sweep_NumShape N,
const TopLoc_Location &  L,
const gp_Vec &  V,
const Standard_Boolean  C,
const Standard_Boolean  Canonize = Standard_True
 

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


Member Function Documentation

virtual Standard_EXPORT void BRepSweep_Translation::Delete  )  [virtual]
 

Reimplemented from BRepSweep_Trsf.

Standard_EXPORT TopAbs_Orientation BRepSweep_Translation::DirectSolid const TopoDS_Shape &  aGenS,
const Sweep_NumShape aDirS
[virtual]
 

Implements BRepSweep_NumLinearRegularSweep.

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

Implements BRepSweep_Trsf.

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

Implements BRepSweep_Trsf.

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

Implements BRepSweep_Trsf.

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

Implements BRepSweep_Trsf.

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

Implements BRepSweep_Trsf.

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

Implements BRepSweep_Trsf.

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

Implements BRepSweep_Trsf.

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

Implements BRepSweep_Trsf.

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

Reimplemented from BRepSweep_Trsf.

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

Reimplemented from BRepSweep_Trsf.

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

Reimplemented from BRepSweep_Trsf.

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

Implements BRepSweep_Trsf.

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

Implements BRepSweep_Trsf.

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

Implements BRepSweep_Trsf.

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

Implements BRepSweep_Trsf.

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

Implements BRepSweep_Trsf.

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

Implements BRepSweep_Trsf.

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

Implements BRepSweep_Trsf.

Standard_EXPORT gp_Vec BRepSweep_Translation::Vec  )  const
 


Field Documentation

Standard_Boolean BRepSweep_Translation::myCanonize [private]
 

gp_Vec BRepSweep_Translation::myVec [private]
 


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