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

ModelingData
TKGeomBase
gce


gce_MakeLin2d Class Reference

This class implements the following algorithms used
to create Lin2d from gp.

* Create a Lin2d parallel to another and passing
through a point.
* Create a Lin2d parallel to another at the distance
Dist.
* Create a Lin2d passing through 2 points.
* Create a Lin2d from its axis (Ax1 from gp).
* Create a Lin2d from a point and a direction.
* Create a Lin2d from its equation.
.

#include <gce_MakeLin2d.hxx>

Inheritance diagram for gce_MakeLin2d:

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_MakeLin2d (const gp_Ax2d &A)
 Creates a line located with A.
.
Standard_EXPORT gce_MakeLin2d (const gp_Pnt2d &P, const gp_Dir2d &V)
 is the location point (origin) of the line and
<v> is the direction of the line.

Standard_EXPORT gce_MakeLin2d (const Standard_Real A, const Standard_Real B, const Standard_Real C)
 Creates the line from the equation A*X + B*Y + C = 0.0
the status is "NullAxis"if Sqrt(A*A + B*B) <= Resolution from gp.
.
Standard_EXPORT gce_MakeLin2d (const gp_Lin2d &Lin, const Standard_Real Dist)
 Make a Lin2d from gp <thelin> parallel to another
Lin2d <lin> at a distance <dist>.
If Dist is greater than zero the result is on the
right of the Line <lin>, else the result is on the
left of the Line <lin>.
.
Standard_EXPORT gce_MakeLin2d (const gp_Lin2d &Lin, const gp_Pnt2d &Point)
 Make a Lin2d from gp <thelin> parallel to another
Lin2d <lin> and passing through a Pnt2d <point>.
.
Standard_EXPORT gce_MakeLin2d (const gp_Pnt2d &P1, const gp_Pnt2d &P2)
 Make a Lin2d from gp <thelin> passing through 2
Pnt2d <p1>,<p2>.
It returns false if <p1> and <p2> are confused.
Warning
If an error occurs (that is, when IsDone returns
false), the Status function returns:
- gce_NullAxis if Sqrt(A*A + B*B) is less
than or equal to gp::Resolution(), or
- gce_ConfusedPoints if points P1 and P2 are coincident.
.
Standard_EXPORT gp_Lin2d Value () const
 Returns the constructed line.
Exceptions StdFail_NotDone if no line is constructed.
.
Standard_EXPORT gp_Lin2d Operator () const
Standard_EXPORT operator gp_Lin2d () const

Private Attributes

gp_Lin2d TheLin2d

Constructor & Destructor Documentation

Standard_EXPORT gce_MakeLin2d::gce_MakeLin2d const gp_Ax2d &  A  ) 
 

Standard_EXPORT gce_MakeLin2d::gce_MakeLin2d const gp_Pnt2d &  P,
const gp_Dir2d &  V
 

Standard_EXPORT gce_MakeLin2d::gce_MakeLin2d const Standard_Real  A,
const Standard_Real  B,
const Standard_Real  C
 

Standard_EXPORT gce_MakeLin2d::gce_MakeLin2d const gp_Lin2d &  Lin,
const Standard_Real  Dist
 

Standard_EXPORT gce_MakeLin2d::gce_MakeLin2d const gp_Lin2d &  Lin,
const gp_Pnt2d &  Point
 

Standard_EXPORT gce_MakeLin2d::gce_MakeLin2d const gp_Pnt2d &  P1,
const gp_Pnt2d &  P2
 


Member Function Documentation

Standard_EXPORT gp_Lin2d gce_MakeLin2d::Operator  )  const
 

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

Reimplemented from gce_Root.

Standard_EXPORT gce_MakeLin2d::operator gp_Lin2d  )  const
 

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

Reimplemented from gce_Root.

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

Reimplemented from gce_Root.

Standard_EXPORT gp_Lin2d gce_MakeLin2d::Value  )  const
 


Field Documentation

gp_Lin2d gce_MakeLin2d::TheLin2d [private]
 


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