Open CASCADE Technology  7.4.0
Static Public Member Functions

GccEnt Class Reference

This package provides an implementation of the qualified entities useful to create 2d entities with geometric constraints. The qualifier explains which subfamily of solutions we want to obtain. It uses the following law: the matter/the interior side is at the left of the line, if we go from the beginning to the end. The qualifiers are: Enclosing : the solution(s) must enclose the argument. Enclosed : the solution(s) must be enclosed in the argument. Outside : both the solution(s) and the argument must be outside to each other. Unqualified : the position is undefined, so give all the solutions. The use of a qualifier is always required if such subfamilies exist. For example, it is not used for a point. Note: the interior of a curve is defined as the left-hand side of the curve in relation to its orientation. More...

#include <GccEnt.hxx>

Static Public Member Functions

static Standard_OStreamPrint (const GccEnt_Position thePosition, Standard_OStream &theStream)
 Prints the name of Position type as a String on the Stream. More...
 
static Standard_CString PositionToString (GccEnt_Position thePosition)
 Returns the string name for a given position. More...
 
static GccEnt_Position PositionFromString (Standard_CString thePositionString)
 Returns the position from the given string identifier (using case-insensitive comparison). More...
 
static Standard_Boolean PositionFromString (Standard_CString thePositionString, GccEnt_Position &thePosition)
 Determines the position from the given string identifier (using case-insensitive comparison). More...
 
static GccEnt_QualifiedLin Unqualified (const gp_Lin2d &Obj)
 Constructs a qualified line, so that the relative position to the circle or line of the solution computed by a construction algorithm using the qualified circle or line is not qualified, i.e. all solutions apply. More...
 
static GccEnt_QualifiedCirc Unqualified (const gp_Circ2d &Obj)
 Constructs a qualified circle so that the relative position to the circle or line of the solution computed by a construction algorithm using the qualified circle or line is not qualified, i.e. all solutions apply. More...
 
static GccEnt_QualifiedCirc Enclosing (const gp_Circ2d &Obj)
 Constructs such a qualified circle that the solution computed by a construction algorithm using the qualified circle encloses the circle. More...
 
static GccEnt_QualifiedLin Enclosed (const gp_Lin2d &Obj)
 Constructs a qualified line, so that the solution computed by a construction algorithm using the qualified circle or line is enclosed by the circle or line. More...
 
static GccEnt_QualifiedCirc Enclosed (const gp_Circ2d &Obj)
 Constructs a qualified circle so that the solution computed by a construction algorithm using the qualified circle or line is enclosed by the circle or line. More...
 
static GccEnt_QualifiedLin Outside (const gp_Lin2d &Obj)
 Constructs a qualified line, so that the solution computed by a construction algorithm using the qualified circle or line and the circle or line are external to one another. More...
 
static GccEnt_QualifiedCirc Outside (const gp_Circ2d &Obj)
 Constructs a qualified circle so that the solution computed by a construction algorithm using the qualified circle or line and the circle or line are external to one another. More...
 

Detailed Description

This package provides an implementation of the qualified entities useful to create 2d entities with geometric constraints. The qualifier explains which subfamily of solutions we want to obtain. It uses the following law: the matter/the interior side is at the left of the line, if we go from the beginning to the end. The qualifiers are: Enclosing : the solution(s) must enclose the argument. Enclosed : the solution(s) must be enclosed in the argument. Outside : both the solution(s) and the argument must be outside to each other. Unqualified : the position is undefined, so give all the solutions. The use of a qualifier is always required if such subfamilies exist. For example, it is not used for a point. Note: the interior of a curve is defined as the left-hand side of the curve in relation to its orientation.

Member Function Documentation

◆ Enclosed() [1/2]

static GccEnt_QualifiedLin GccEnt::Enclosed ( const gp_Lin2d Obj)
static

Constructs a qualified line, so that the solution computed by a construction algorithm using the qualified circle or line is enclosed by the circle or line.

◆ Enclosed() [2/2]

static GccEnt_QualifiedCirc GccEnt::Enclosed ( const gp_Circ2d Obj)
static

Constructs a qualified circle so that the solution computed by a construction algorithm using the qualified circle or line is enclosed by the circle or line.

◆ Enclosing()

static GccEnt_QualifiedCirc GccEnt::Enclosing ( const gp_Circ2d Obj)
static

Constructs such a qualified circle that the solution computed by a construction algorithm using the qualified circle encloses the circle.

◆ Outside() [1/2]

static GccEnt_QualifiedLin GccEnt::Outside ( const gp_Lin2d Obj)
static

Constructs a qualified line, so that the solution computed by a construction algorithm using the qualified circle or line and the circle or line are external to one another.

◆ Outside() [2/2]

static GccEnt_QualifiedCirc GccEnt::Outside ( const gp_Circ2d Obj)
static

Constructs a qualified circle so that the solution computed by a construction algorithm using the qualified circle or line and the circle or line are external to one another.

◆ PositionFromString() [1/2]

static GccEnt_Position GccEnt::PositionFromString ( Standard_CString  thePositionString)
inlinestatic

Returns the position from the given string identifier (using case-insensitive comparison).

Parameters
thePositionStringstring identifier
Returns
position or GccEnt_unqualified if string identifier is invalid

◆ PositionFromString() [2/2]

static Standard_Boolean GccEnt::PositionFromString ( Standard_CString  thePositionString,
GccEnt_Position thePosition 
)
static

Determines the position from the given string identifier (using case-insensitive comparison).

Parameters
thePositionStringstring identifier
thePositiondetected shape type
Returns
TRUE if string identifier is known

◆ PositionToString()

static Standard_CString GccEnt::PositionToString ( GccEnt_Position  thePosition)
static

Returns the string name for a given position.

Parameters
thePositionposition type
Returns
string identifier from the list UNQUALIFIED ENCLOSING ENCLOSED OUTSIDE NOQUALIFIER

◆ Print()

static Standard_OStream& GccEnt::Print ( const GccEnt_Position  thePosition,
Standard_OStream theStream 
)
inlinestatic

Prints the name of Position type as a String on the Stream.

◆ Unqualified() [1/2]

static GccEnt_QualifiedLin GccEnt::Unqualified ( const gp_Lin2d Obj)
static

Constructs a qualified line, so that the relative position to the circle or line of the solution computed by a construction algorithm using the qualified circle or line is not qualified, i.e. all solutions apply.

◆ Unqualified() [2/2]

static GccEnt_QualifiedCirc GccEnt::Unqualified ( const gp_Circ2d Obj)
static

Constructs a qualified circle so that the relative position to the circle or line of the solution computed by a construction algorithm using the qualified circle or line is not qualified, i.e. all solutions apply.


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