Open CASCADE Technology  7.5.0
Public Member Functions

GCE2d_MakeLine Class Reference

This class implements the following algorithms used to create a Line from Geom2d. More...

#include <GCE2d_MakeLine.hxx>

Inheritance diagram for GCE2d_MakeLine:
Inheritance graph
[legend]

Public Member Functions

 GCE2d_MakeLine (const gp_Ax2d &A)
 Creates a line located in 2D space with the axis placement A. The Location of A is the origin of the line. More...
 
 GCE2d_MakeLine (const gp_Lin2d &L)
 Creates a line from a non persistent line from package gp. More...
 
 GCE2d_MakeLine (const gp_Pnt2d &P, const gp_Dir2d &V)
 P is the origin and V is the direction of the line. More...
 
 GCE2d_MakeLine (const gp_Lin2d &Lin, const gp_Pnt2d &Point)
 Make a Line from Geom2d <TheLin> parallel to another Lin <Lin> and passing through a Pnt <Point>. More...
 
 GCE2d_MakeLine (const gp_Lin2d &Lin, const Standard_Real Dist)
 Make a Line from Geom2d <TheLin> parallel to another Lin <Lin> at a distance <Dist>. More...
 
 GCE2d_MakeLine (const gp_Pnt2d &P1, const gp_Pnt2d &P2)
 Make a Line from Geom2d <TheLin> passing through 2 Pnt <P1>,<P2>. It returns false if <p1> and <P2> are confused. Warning If points P1 and P2 coincident (that is, when IsDone returns false), the Status function returns gce_ConfusedPoints. More...
 
const Handle< Geom2d_Line > & Value () const
 Returns the constructed line. Exceptions StdFail_NotDone if no line is constructed. More...
 
 operator const Handle< Geom2d_Line > & () const
 
- Public Member Functions inherited from GCE2d_Root
Standard_Boolean IsDone () const
 Returns true if the construction is successful. More...
 
gce_ErrorType Status () const
 Returns the status of the construction. More...
 

Additional Inherited Members

- Protected Attributes inherited from GCE2d_Root
gce_ErrorType TheError
 

Detailed Description

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

Constructor & Destructor Documentation

◆ GCE2d_MakeLine() [1/6]

GCE2d_MakeLine::GCE2d_MakeLine ( const gp_Ax2d A)

Creates a line located in 2D space with the axis placement A. The Location of A is the origin of the line.

◆ GCE2d_MakeLine() [2/6]

GCE2d_MakeLine::GCE2d_MakeLine ( const gp_Lin2d L)

Creates a line from a non persistent line from package gp.

◆ GCE2d_MakeLine() [3/6]

GCE2d_MakeLine::GCE2d_MakeLine ( const gp_Pnt2d P,
const gp_Dir2d V 
)

P is the origin and V is the direction of the line.

◆ GCE2d_MakeLine() [4/6]

GCE2d_MakeLine::GCE2d_MakeLine ( const gp_Lin2d Lin,
const gp_Pnt2d Point 
)

Make a Line from Geom2d <TheLin> parallel to another Lin <Lin> and passing through a Pnt <Point>.

◆ GCE2d_MakeLine() [5/6]

GCE2d_MakeLine::GCE2d_MakeLine ( const gp_Lin2d Lin,
const Standard_Real  Dist 
)

Make a Line from Geom2d <TheLin> parallel to another Lin <Lin> at a distance <Dist>.

◆ GCE2d_MakeLine() [6/6]

GCE2d_MakeLine::GCE2d_MakeLine ( const gp_Pnt2d P1,
const gp_Pnt2d P2 
)

Make a Line from Geom2d <TheLin> passing through 2 Pnt <P1>,<P2>. It returns false if <p1> and <P2> are confused. Warning If points P1 and P2 coincident (that is, when IsDone returns false), the Status function returns gce_ConfusedPoints.

Member Function Documentation

◆ operator const Handle< Geom2d_Line > &()

GCE2d_MakeLine::operator const Handle< Geom2d_Line > & ( ) const
inline

◆ Value()

const Handle< Geom2d_Line >& GCE2d_MakeLine::Value ( ) const

Returns the constructed line. Exceptions StdFail_NotDone if no line is constructed.


The documentation for this class was generated from the following file: