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

ModelingData
TKGeomBase
gce


gce_MakeCylinder Class Reference

This class implements the following algorithms used
to create a Cylinder from gp.
* Create a Cylinder coaxial to another and passing
through a point.
* Create a Cylinder coaxial to another at a distance
<dist>.
* Create a Cylinder with 3 points.
* Create a Cylinder by its axis and radius.
* Create a cylinder by its circular base.
.

#include <gce_MakeCylinder.hxx>

Inheritance diagram for gce_MakeCylinder:

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 gce_MakeCylinder (const gp_Ax2 &A2, const Standard_Real Radius)
 <a2> is the local cartesian coordinate system of <me>.
The status is "NegativeRadius" if R < 0.0

Standard_EXPORT gce_MakeCylinder (const gp_Cylinder &Cyl, const gp_Pnt &Point)
 Makes a Cylinder from gp <thecylinder> coaxial to another
Cylinder <cylinder> and passing through a Pnt <point>.
.
Standard_EXPORT gce_MakeCylinder (const gp_Cylinder &Cyl, const Standard_Real Dist)
 Makes a Cylinder from gp <thecylinder> coaxial to another
Cylinder <cylinder> at the distance <dist> which can
be greater or lower than zero.
The radius of the result is the absolute value of the
radius of <cyl> plus <dist>
.
Standard_EXPORT gce_MakeCylinder (const gp_Pnt &P1, const gp_Pnt &P2, const gp_Pnt &P3)
 Makes a Cylinder from gp <thecylinder> with 3 points
<p1>,<p2>,<p3>.
Its axis is <p1p2> and its radius is the distance
between <p3> and <p1p2>
.
Standard_EXPORT gce_MakeCylinder (const gp_Ax1 &Axis, const Standard_Real Radius)
 Makes a Cylinder by its axis <axis> and radius <radius>.
.
Standard_EXPORT gce_MakeCylinder (const gp_Circ &Circ)
 Makes a Cylinder by its circular base.
Warning
If an error occurs (that is, when IsDone returns
false), the Status function returns:
- gce_NegativeRadius if:
- Radius is less than 0.0, or
- Dist is negative and has an absolute value
which is greater than the radius of Cyl; or
- gce_ConfusedPoints if points P1 and P2 are coincident.
.
Standard_EXPORT const gp_Cylinder & Value () const
 Returns the constructed cylinder.
Exceptions StdFail_NotDone if no cylinder is constructed.
.
Standard_EXPORT const gp_Cylinder & Operator () const
Standard_EXPORT operator gp_Cylinder () const

Private Attributes

gp_Cylinder TheCylinder

Constructor & Destructor Documentation

Standard_EXPORT gce_MakeCylinder::gce_MakeCylinder const gp_Ax2 &  A2,
const Standard_Real  Radius
 

Standard_EXPORT gce_MakeCylinder::gce_MakeCylinder const gp_Cylinder &  Cyl,
const gp_Pnt &  Point
 

Standard_EXPORT gce_MakeCylinder::gce_MakeCylinder const gp_Cylinder &  Cyl,
const Standard_Real  Dist
 

Standard_EXPORT gce_MakeCylinder::gce_MakeCylinder const gp_Pnt &  P1,
const gp_Pnt &  P2,
const gp_Pnt &  P3
 

Standard_EXPORT gce_MakeCylinder::gce_MakeCylinder const gp_Ax1 &  Axis,
const Standard_Real  Radius
 

Standard_EXPORT gce_MakeCylinder::gce_MakeCylinder const gp_Circ &  Circ  ) 
 


Member Function Documentation

Standard_EXPORT const gp_Cylinder& gce_MakeCylinder::Operator  )  const
 

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

Reimplemented from gce_Root.

Standard_EXPORT gce_MakeCylinder::operator gp_Cylinder  )  const
 

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

Reimplemented from gce_Root.

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

Reimplemented from gce_Root.

Standard_EXPORT const gp_Cylinder& gce_MakeCylinder::Value  )  const
 


Field Documentation

gp_Cylinder gce_MakeCylinder::TheCylinder [private]
 


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