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

ModelingData
TKGeomBase
GCE2d


GCE2d_MakeSegment Class Reference

Implements construction algorithms for a line
segment in the plane. The result is a
Geom2d_TrimmedCurve curve.
A MakeSegment object provides a framework for:
- defining the construction of the line segment,
- implementing the construction algorithm, and
- consulting the results. In particular, the Value
function returns the constructed line segment.
.

#include <GCE2d_MakeSegment.hxx>

Inheritance diagram for GCE2d_MakeSegment:

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_MakeSegment (const gp_Pnt2d &P1, const gp_Pnt2d &P2)
 Make a segment of Line from the 2 points <p1> and <p2>.
Status is "ConfusedPoints" if <p1> and <p2> are confused.
.
Standard_EXPORT GCE2d_MakeSegment (const gp_Pnt2d &P1, const gp_Dir2d &V, const gp_Pnt2d &P2)
 Make a segment of Line from the point <p1> with
the direction

and ended by the projection of
<p2> on the line <P1,V>.
Status is "ConfusedPoints" if <p1> and <p2> are confused.
.

Standard_EXPORT GCE2d_MakeSegment (const gp_Lin2d &Line, const Standard_Real U1, const Standard_Real U2)
 Make a segment of Line from the line <line>
between the two parameters U1 and U2.
Status is "SameParamters" if <u1> is equal <u2>.
.
Standard_EXPORT GCE2d_MakeSegment (const gp_Lin2d &Line, const gp_Pnt2d &Point, const Standard_Real Ulast)
 Make a segment of Line from the line <line>
between the point <point> and the parameter Ulast.
It returns NullObject if <u1> is equal <u2>.
.
Standard_EXPORT GCE2d_MakeSegment (const gp_Lin2d &Line, const gp_Pnt2d &P1, const gp_Pnt2d &P2)
 Make a segment of Line from the line <line>
between the two points <p1> and <p2>.
It returns NullObject if <p1> and <p2> are confused.
Warning
If the points which limit the segment are coincident
for given points or for the projection of given points
on the line which supports the line segment (that is,
when IsDone returns false), the Status function
returns gce_ConfusedPoints. This warning only
concerns the first two constructors.
.
Standard_EXPORT const Handle_Geom2d_TrimmedCurve & Value () const
 Returns the constructed line segment.
Exceptions StdFail_NotDone if no line segment is constructed.
.
Standard_EXPORT const Handle_Geom2d_TrimmedCurve & Operator () const
Standard_EXPORT operator Handle_Geom2d_TrimmedCurve () const

Private Attributes

Handle_Geom2d_TrimmedCurve TheSegment

Constructor & Destructor Documentation

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

Standard_EXPORT GCE2d_MakeSegment::GCE2d_MakeSegment const gp_Pnt2d &  P1,
const gp_Dir2d &  V,
const gp_Pnt2d &  P2
 

Standard_EXPORT GCE2d_MakeSegment::GCE2d_MakeSegment const gp_Lin2d &  Line,
const Standard_Real  U1,
const Standard_Real  U2
 

Standard_EXPORT GCE2d_MakeSegment::GCE2d_MakeSegment const gp_Lin2d &  Line,
const gp_Pnt2d &  Point,
const Standard_Real  Ulast
 

Standard_EXPORT GCE2d_MakeSegment::GCE2d_MakeSegment const gp_Lin2d &  Line,
const gp_Pnt2d &  P1,
const gp_Pnt2d &  P2
 


Member Function Documentation

Standard_EXPORT const Handle_Geom2d_TrimmedCurve& GCE2d_MakeSegment::Operator  )  const
 

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

Reimplemented from GCE2d_Root.

Standard_EXPORT GCE2d_MakeSegment::operator Handle_Geom2d_TrimmedCurve  )  const
 

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

Reimplemented from GCE2d_Root.

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

Reimplemented from GCE2d_Root.

Standard_EXPORT const Handle_Geom2d_TrimmedCurve& GCE2d_MakeSegment::Value  )  const
 


Field Documentation

Handle_Geom2d_TrimmedCurve GCE2d_MakeSegment::TheSegment [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