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

ModelingData
TKGeomBase
GCE2d


GCE2d_MakeCircle Class Reference

This class implements the following algorithms used
to create Cirlec from Geom2d.

* Create a Circle parallel to another and passing
though a point.
* Create a Circle parallel to another at the distance
Dist.
* Create a Circle passing through 3 points.
* Create a Circle with its center and the normal of its
plane and its radius.
* Create a Circle with its axis and radius.
.

#include <GCE2d_MakeCircle.hxx>

Inheritance diagram for GCE2d_MakeCircle:

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 GCE2d_MakeCircle (const gp_Circ2d &C)
 creates a circle from a non persistent one.

Standard_EXPORT GCE2d_MakeCircle (const gp_Ax2d &A, const Standard_Real Radius, const Standard_Boolean Sense=Standard_True)
 A is the "XAxis" of the circle which defines the origin
of parametrization.
It is not forbidden to create a circle with Radius = 0.0
The status is "NegativeRadius" if Radius < 0.
.
Standard_EXPORT GCE2d_MakeCircle (const gp_Ax22d &A, const Standard_Real Radius)
 A is the local coordinate system of the circle which defines
the origin of parametrization.
It is not forbidden to create a circle with Radius = 0.0
The status is "NegativeRadius" if Radius < 0.
.
Standard_EXPORT GCE2d_MakeCircle (const gp_Circ2d &Circ, const Standard_Real Dist)
 Make a Circle from Geom2d <thecirc> parallel to another
Circ <circ> with a distance <dist>.
If Dist is greater than zero the result is enclosing
the circle <circ>, else the result is enclosed by the
circle <circ>.
.
Standard_EXPORT GCE2d_MakeCircle (const gp_Circ2d &Circ, const gp_Pnt2d &Point)
 Make a Circle from Geom2d <thecirc> parallel to another
Circ <circ> and passing through a Pnt <point>.
.
Standard_EXPORT GCE2d_MakeCircle (const gp_Pnt2d &P1, const gp_Pnt2d &P2, const gp_Pnt2d &P3)
 Make a Circ from gp <thecirc> passing through 3
Pnt2d <p1>,<p2>,<p3>.
.
Standard_EXPORT GCE2d_MakeCircle (const gp_Pnt2d &P, const Standard_Real Radius, const Standard_Boolean Sense=Standard_True)
 Make a Circ from geom2d <thecirc> by its center an radius.
.
Standard_EXPORT GCE2d_MakeCircle (const gp_Pnt2d &Center, const gp_Pnt2d &Point, const Standard_Boolean Sense=Standard_True)
 Makes a Circle from geom2d <thecirc> with its center
and a point giving the radius.
If Sense is true the local coordinate system of
the solution is direct and non direct in the other case.
Warning
The MakeCircle class does not prevent the
construction of a circle with a null radius.
If an error occurs (that is, when IsDone returns
false), the Status function returns:
- gce_NegativeRadius if Radius is less than 0.0, or
- gce_IntersectionError if points P1, P2 and P3
are collinear and the three are not coincident.
.

Standard_EXPORT const Handle_Geom2d_Circle & Value () const
 Returns the constructed circle.
Exceptions StdFail_NotDone if no circle is constructed.
.
Standard_EXPORT const Handle_Geom2d_Circle & Operator () const
Standard_EXPORT operator Handle_Geom2d_Circle () const

Private Attributes

Handle_Geom2d_Circle TheCircle

Constructor & Destructor Documentation

Standard_EXPORT GCE2d_MakeCircle::GCE2d_MakeCircle const gp_Circ2d &  C  ) 
 

Standard_EXPORT GCE2d_MakeCircle::GCE2d_MakeCircle const gp_Ax2d &  A,
const Standard_Real  Radius,
const Standard_Boolean  Sense = Standard_True
 

Standard_EXPORT GCE2d_MakeCircle::GCE2d_MakeCircle const gp_Ax22d &  A,
const Standard_Real  Radius
 

Standard_EXPORT GCE2d_MakeCircle::GCE2d_MakeCircle const gp_Circ2d &  Circ,
const Standard_Real  Dist
 

Standard_EXPORT GCE2d_MakeCircle::GCE2d_MakeCircle const gp_Circ2d &  Circ,
const gp_Pnt2d &  Point
 

Standard_EXPORT GCE2d_MakeCircle::GCE2d_MakeCircle const gp_Pnt2d &  P1,
const gp_Pnt2d &  P2,
const gp_Pnt2d &  P3
 

Standard_EXPORT GCE2d_MakeCircle::GCE2d_MakeCircle const gp_Pnt2d &  P,
const Standard_Real  Radius,
const Standard_Boolean  Sense = Standard_True
 

Standard_EXPORT GCE2d_MakeCircle::GCE2d_MakeCircle const gp_Pnt2d &  Center,
const gp_Pnt2d &  Point,
const Standard_Boolean  Sense = Standard_True
 


Member Function Documentation

Standard_EXPORT const Handle_Geom2d_Circle& GCE2d_MakeCircle::Operator  )  const
 

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

Reimplemented from GCE2d_Root.

Standard_EXPORT GCE2d_MakeCircle::operator Handle_Geom2d_Circle  )  const
 

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

Reimplemented from GCE2d_Root.

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

Reimplemented from GCE2d_Root.

Standard_EXPORT const Handle_Geom2d_Circle& GCE2d_MakeCircle::Value  )  const
 


Field Documentation

Handle_Geom2d_Circle GCE2d_MakeCircle::TheCircle [private]
 


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