Open CASCADE Technology 7.8.2.dev
gce_MakeLin Class Reference

This class implements the following algorithms used to create a Lin from gp. More...

#include <gce_MakeLin.hxx>

Inheritance diagram for gce_MakeLin:

Public Member Functions

 gce_MakeLin (const gp_Ax1 &A1)
 Creates a line located along the axis A1.
 
 gce_MakeLin (const gp_Pnt &P, const gp_Dir &V)
 
 gce_MakeLin (const gp_Lin &Lin, const gp_Pnt &Point)
 Make a Lin from gp <TheLin> parallel to another Lin <Lin> and passing through a Pnt <Point>.
 
 gce_MakeLin (const gp_Pnt &P1, const gp_Pnt &P2)
 Make a Lin from gp <TheLin> passing through 2 Pnt <P1>,<P2>. It returns false if <p1> and <P2> are confused.
 
const gp_LinValue () const
 Returns the constructed line. Exceptions StdFail_NotDone is raised if no line is constructed.
 
const gp_LinOperator () const
 
 operator gp_Lin () const
 
- Public Member Functions inherited from gce_Root
Standard_Boolean IsDone () const
 Returns true if the construction is successful.
 
gce_ErrorType Status () const
 Returns the status of the construction:
 

Additional Inherited Members

- Protected Attributes inherited from gce_Root
gce_ErrorType TheError
 

Detailed Description

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

  • Create a Lin parallel to another and passing through a point.
  • Create a Lin passing through 2 points.
  • Create a lin from its axis (Ax1 from gp).
  • Create a lin from a point and a direction.

Constructor & Destructor Documentation

◆ gce_MakeLin() [1/4]

gce_MakeLin::gce_MakeLin ( const gp_Ax1 & A1)

Creates a line located along the axis A1.

◆ gce_MakeLin() [2/4]

gce_MakeLin::gce_MakeLin ( const gp_Pnt & P,
const gp_Dir & V )

is the location point (origin) of the line and <V> is the direction of the line.

◆ gce_MakeLin() [3/4]

gce_MakeLin::gce_MakeLin ( const gp_Lin & Lin,
const gp_Pnt & Point )

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

◆ gce_MakeLin() [4/4]

gce_MakeLin::gce_MakeLin ( const gp_Pnt & P1,
const gp_Pnt & P2 )

Make a Lin from gp <TheLin> passing through 2 Pnt <P1>,<P2>. It returns false if <p1> and <P2> are confused.

Member Function Documentation

◆ Operator()

const gp_Lin & gce_MakeLin::Operator ( ) const

◆ operator gp_Lin()

gce_MakeLin::operator gp_Lin ( ) const

◆ Value()

const gp_Lin & gce_MakeLin::Value ( ) const

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


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