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

ModelingData
TKGeomBase
GC


GC_MakeLine Class Reference

This class implements the following algorithms used
to create a Line from Geom.
* Create a Line parallel to another and passing
through a point.
* Create a Line passing through 2 points.
A MakeLine object provides a framework for:
- defining the construction of the line,
- implementing the construction algorithm, and
- consulting the results. In particular, the Value
function returns the constructed line.
.

#include <GC_MakeLine.hxx>

Inheritance diagram for GC_MakeLine:

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 GC_MakeLine (const gp_Ax1 &A1)
 Creates a line located in 3D space with the axis placement A1.
The Location of A1 is the origin of the line.
.
Standard_EXPORT GC_MakeLine (const gp_Lin &L)
 Creates a line from a non persistent line from package gp.
.
Standard_EXPORT GC_MakeLine (const gp_Pnt &P, const gp_Dir &V)
 P is the origin and V is the direction of the line.
.
Standard_EXPORT GC_MakeLine (const gp_Lin &Lin, const gp_Pnt &Point)
 Make a Line from Geom <thelin> parallel to another
Lin <lin> and passing through a Pnt <point>.
.
Standard_EXPORT GC_MakeLine (const gp_Pnt &P1, const gp_Pnt &P2)
 Make a Line from Geom <thelin> passing through 2
Pnt <p1>,<p2>.
It returns false if <p1> and <p2> are confused.
Warning
If the points P1 and P2 are coincident (that is, when
IsDone returns false), the Status function returns gce_ConfusedPoints.
.
Standard_EXPORT const Handle_Geom_Line & Value () const
 Returns the constructed line.
Exceptions StdFail_NotDone if no line is constructed.
.
Standard_EXPORT const Handle_Geom_Line & Operator () const
Standard_EXPORT operator Handle_Geom_Line () const

Private Attributes

Handle_Geom_Line TheLine

Constructor & Destructor Documentation

Standard_EXPORT GC_MakeLine::GC_MakeLine const gp_Ax1 &  A1  ) 
 

Standard_EXPORT GC_MakeLine::GC_MakeLine const gp_Lin &  L  ) 
 

Standard_EXPORT GC_MakeLine::GC_MakeLine const gp_Pnt &  P,
const gp_Dir &  V
 

Standard_EXPORT GC_MakeLine::GC_MakeLine const gp_Lin &  Lin,
const gp_Pnt &  Point
 

Standard_EXPORT GC_MakeLine::GC_MakeLine const gp_Pnt &  P1,
const gp_Pnt &  P2
 


Member Function Documentation

Standard_EXPORT const Handle_Geom_Line& GC_MakeLine::Operator  )  const
 

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

Reimplemented from GC_Root.

Standard_EXPORT GC_MakeLine::operator Handle_Geom_Line  )  const
 

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

Reimplemented from GC_Root.

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

Reimplemented from GC_Root.

Standard_EXPORT const Handle_Geom_Line& GC_MakeLine::Value  )  const
 


Field Documentation

Handle_Geom_Line GC_MakeLine::TheLine [private]
 


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