1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0024002: Overall code and build procedure refactoring -- automatic

Automatic upgrade of OCCT code by command "occt_upgrade . -nocdl":
- WOK-generated header files from inc and sources from drv are moved to src
- CDL files removed
- All packages are converted to nocdlpack
This commit is contained in:
abv
2015-07-12 07:42:38 +03:00
parent 543a996496
commit 42cf5bc1ca
15354 changed files with 623957 additions and 509844 deletions

View File

@@ -1 +1,9 @@
GccEnt.cxx
GccEnt.hxx
GccEnt_Array1OfPosition.hxx
GccEnt_BadQualifier.hxx
GccEnt_Position.hxx
GccEnt_QualifiedCirc.cxx
GccEnt_QualifiedCirc.hxx
GccEnt_QualifiedLin.cxx
GccEnt_QualifiedLin.hxx

View File

@@ -1,119 +0,0 @@
-- Created on: 1991-03-05
-- Created by: Remy GILET
-- Copyright (c) 1991-1999 Matra Datavision
-- Copyright (c) 1999-2014 OPEN CASCADE SAS
--
-- This file is part of Open CASCADE Technology software library.
--
-- This library is free software; you can redistribute it and/or modify it under
-- the terms of the GNU Lesser General Public License version 2.1 as published
-- by the Free Software Foundation, with special exception defined in the file
-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-- distribution for complete text of the license and disclaimer of any warranty.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
package GccEnt
---Purpose: 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.
uses gp,
Standard,
TCollection
is
--- Level : Public
-- All methods of all classes will be public.
-- General deferred classes of geometric qualifiers:
exception BadQualifier inherits DomainError from Standard;
class QualifiedLin;
class QualifiedCirc;
enumeration Position is
unqualified, enclosing, enclosed, outside, noqualifier;
---Purpose:
-- Qualifies the position of a solution of a construction
-- algorithm with respect to one of its arguments. This is one of the following:
-- - GccEnt_unqualified: the position of the solution
-- is undefined with respect to the argument,
-- - GccEnt_enclosing: the solution encompasses the argument,
-- - GccEnt_enclosed: the solution is encompassed by the argument,
-- - GccEnt_outside: the solution and the argument
-- are external to one another,
-- - GccEnt_noqualifier: the value returned during a
-- consultation of the qualifier when the argument is
-- defined as GccEnt_unqualified.
-- Note: the interior of a line or any open curve is
-- defined as the left-hand side of the line or curve in
-- relation to its orientation.
imported Array1OfPosition;
Unqualified(Obj : Lin2d from gp) returns QualifiedLin;
---Purpose: 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(Obj : Circ2d from gp) returns QualifiedCirc;
---Purpose: 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.
Enclosing(Obj : Circ2d from gp) returns QualifiedCirc;
---Purpose:
-- Constructs such a qualified circle that the solution
-- computed by a construction algorithm using the qualified
-- circle encloses the circle.
Enclosed(Obj : Lin2d from gp) returns QualifiedLin;
---Purpose: 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(Obj : Circ2d from gp) returns QualifiedCirc;
---Purpose: 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.
Outside(Obj : Lin2d from gp) returns QualifiedLin;
---Purpose: 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(Obj : Circ2d from gp) returns QualifiedCirc;
---Purpose: 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.
end GccEnt;

View File

@@ -17,7 +17,11 @@
// +
//=========================================================================
#include <GccEnt.ixx>
#include <GccEnt.hxx>
#include <GccEnt_QualifiedCirc.hxx>
#include <GccEnt_QualifiedLin.hxx>
#include <gp_Circ2d.hxx>
#include <gp_Lin2d.hxx>
GccEnt_QualifiedLin
GccEnt::Unqualified(const gp_Lin2d& Line) {

124
src/GccEnt/GccEnt.hxx Normal file
View File

@@ -0,0 +1,124 @@
// Created on: 1991-03-05
// Created by: Remy GILET
// Copyright (c) 1991-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as published
// by the Free Software Foundation, with special exception defined in the file
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
// distribution for complete text of the license and disclaimer of any warranty.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _GccEnt_HeaderFile
#define _GccEnt_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
class GccEnt_QualifiedLin;
class gp_Lin2d;
class GccEnt_QualifiedCirc;
class gp_Circ2d;
class GccEnt_QualifiedLin;
class GccEnt_QualifiedCirc;
//! 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.
class GccEnt
{
public:
DEFINE_STANDARD_ALLOC
//! 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.
Standard_EXPORT static GccEnt_QualifiedLin Unqualified (const gp_Lin2d& 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.
Standard_EXPORT static GccEnt_QualifiedCirc Unqualified (const gp_Circ2d& Obj);
//! Constructs such a qualified circle that the solution
//! computed by a construction algorithm using the qualified
//! circle encloses the circle.
Standard_EXPORT static GccEnt_QualifiedCirc Enclosing (const gp_Circ2d& 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.
Standard_EXPORT static GccEnt_QualifiedLin Enclosed (const gp_Lin2d& 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.
Standard_EXPORT static GccEnt_QualifiedCirc Enclosed (const gp_Circ2d& 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.
Standard_EXPORT static GccEnt_QualifiedLin Outside (const gp_Lin2d& 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.
Standard_EXPORT static GccEnt_QualifiedCirc Outside (const gp_Circ2d& Obj);
protected:
private:
friend class GccEnt_QualifiedLin;
friend class GccEnt_QualifiedCirc;
};
#endif // _GccEnt_HeaderFile

View File

@@ -0,0 +1,37 @@
// Created on: 1991-03-05
// Created by: Remy GILET
// Copyright (c) 1991-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as published
// by the Free Software Foundation, with special exception defined in the file
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
// distribution for complete text of the license and disclaimer of any warranty.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _GccEnt_BadQualifier_HeaderFile
#define _GccEnt_BadQualifier_HeaderFile
#include <Standard_Type.hxx>
#include <Standard_DefineException.hxx>
#include <Standard_SStream.hxx>
#include <Standard_DomainError.hxx>
class GccEnt_BadQualifier;
DEFINE_STANDARD_HANDLE(GccEnt_BadQualifier, Standard_DomainError)
#if !defined No_Exception && !defined No_GccEnt_BadQualifier
#define GccEnt_BadQualifier_Raise_if(CONDITION, MESSAGE) \
if (CONDITION) GccEnt_BadQualifier::Raise(MESSAGE);
#else
#define GccEnt_BadQualifier_Raise_if(CONDITION, MESSAGE)
#endif
DEFINE_STANDARD_EXCEPTION(GccEnt_BadQualifier, Standard_DomainError)
#endif // _GccEnt_BadQualifier_HeaderFile

View File

@@ -0,0 +1,44 @@
// Created on: 1991-03-05
// Created by: Remy GILET
// Copyright (c) 1991-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as published
// by the Free Software Foundation, with special exception defined in the file
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
// distribution for complete text of the license and disclaimer of any warranty.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _GccEnt_Position_HeaderFile
#define _GccEnt_Position_HeaderFile
//! Qualifies the position of a solution of a construction
//! algorithm with respect to one of its arguments. This is one of the following:
//! - GccEnt_unqualified: the position of the solution
//! is undefined with respect to the argument,
//! - GccEnt_enclosing: the solution encompasses the argument,
//! - GccEnt_enclosed: the solution is encompassed by the argument,
//! - GccEnt_outside: the solution and the argument
//! are external to one another,
//! - GccEnt_noqualifier: the value returned during a
//! consultation of the qualifier when the argument is
//! defined as GccEnt_unqualified.
//! Note: the interior of a line or any open curve is
//! defined as the left-hand side of the line or curve in
//! relation to its orientation.
enum GccEnt_Position
{
GccEnt_unqualified,
GccEnt_enclosing,
GccEnt_enclosed,
GccEnt_outside,
GccEnt_noqualifier
};
#endif // _GccEnt_Position_HeaderFile

View File

@@ -1,92 +0,0 @@
-- Created on: 1991-04-15
-- Created by: Philippe DAUTRY
-- Copyright (c) 1991-1999 Matra Datavision
-- Copyright (c) 1999-2014 OPEN CASCADE SAS
--
-- This file is part of Open CASCADE Technology software library.
--
-- This library is free software; you can redistribute it and/or modify it under
-- the terms of the GNU Lesser General Public License version 2.1 as published
-- by the Free Software Foundation, with special exception defined in the file
-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-- distribution for complete text of the license and disclaimer of any warranty.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
class QualifiedCirc
from GccEnt
---Purpose: Creates a qualified 2d Circle.
-- A qualified 2D circle is a circle (gp_Circ2d circle) with a
-- qualifier which specifies whether the solution of a
-- construction algorithm using the qualified circle (as an argument):
-- - encloses the circle, or
-- - is enclosed by the circle, or
-- - is built so that both the circle and it are external to one another, or
-- - is undefined (all solutions apply).
uses Position from GccEnt,
Circ2d from gp
is
Create(Qualified : Circ2d from gp ;
Qualifier : Position from GccEnt ) returns QualifiedCirc from GccEnt;
---Purpose: Constructs a qualified circle by assigning the qualifier
-- Qualifier to the circle Qualified. Qualifier may be:
-- - GccEnt_enclosing if the solution computed by a
-- construction algorithm using the qualified circle
-- encloses the circle, or
-- - GccEnt_enclosed if the solution is enclosed by the circle, or
-- - GccEnt_outside if both the solution and the circle
-- are external to one another, or
-- - GccEnt_unqualified if all solutions apply.
Qualified(me) returns Circ2d from gp
is static;
---Purpose: Returns a 2D circle to which the qualifier is assigned.
Qualifier(me) returns Position from GccEnt
is static;
---Purpose: Returns
-- - the qualifier of this qualified circle, if it is enclosing,
-- enclosed or outside, or
-- - GccEnt_noqualifier if it is unqualified.
IsUnqualified(me) returns Boolean from Standard
is static;
---Purpose: Returns true if the Circ2d is Unqualified and false in
-- the other cases.
IsEnclosing(me) returns Boolean from Standard
is static;
---Purpose: Returns true if the solution computed by a construction
-- algorithm using this qualified circle encloses the circle.
IsEnclosed(me) returns Boolean from Standard
is static;
---Purpose: Returns true if the solution computed by a construction
-- algorithm using this qualified circle is enclosed by the circle.
IsOutside(me) returns Boolean from Standard
is static;
---Purpose: Returns true if both the solution computed by a
-- construction algorithm using this qualified circle and the
-- circle are external to one another.
fields
TheQualified : Circ2d from gp;
TheQualifier : Position from GccEnt;
--friends
--Unqualified (Obj : Circ2d) from GccEnt,
--Enclosing (Obj : Circ2d) from GccEnt,
--Enclosed (Obj : Circ2d) from GccEnt,
--Outside (Obj : Circ2d) from GccEnt
end QualifiedCirc;

View File

@@ -12,8 +12,9 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <GccEnt_QualifiedCirc.ixx>
#include <GccEnt_QualifiedCirc.hxx>
#include <gp_Circ2d.hxx>
gp_Circ2d GccEnt_QualifiedCirc::
Qualified () const { return TheQualified; }

View File

@@ -0,0 +1,107 @@
// Created on: 1991-04-15
// Created by: Philippe DAUTRY
// Copyright (c) 1991-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as published
// by the Free Software Foundation, with special exception defined in the file
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
// distribution for complete text of the license and disclaimer of any warranty.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _GccEnt_QualifiedCirc_HeaderFile
#define _GccEnt_QualifiedCirc_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
#include <gp_Circ2d.hxx>
#include <GccEnt_Position.hxx>
#include <Standard_Boolean.hxx>
class gp_Circ2d;
//! Creates a qualified 2d Circle.
//! A qualified 2D circle is a circle (gp_Circ2d circle) with a
//! qualifier which specifies whether the solution of a
//! construction algorithm using the qualified circle (as an argument):
//! - encloses the circle, or
//! - is enclosed by the circle, or
//! - is built so that both the circle and it are external to one another, or
//! - is undefined (all solutions apply).
class GccEnt_QualifiedCirc
{
public:
DEFINE_STANDARD_ALLOC
//! Constructs a qualified circle by assigning the qualifier
//! Qualifier to the circle Qualified. Qualifier may be:
//! - GccEnt_enclosing if the solution computed by a
//! construction algorithm using the qualified circle
//! encloses the circle, or
//! - GccEnt_enclosed if the solution is enclosed by the circle, or
//! - GccEnt_outside if both the solution and the circle
//! are external to one another, or
//! - GccEnt_unqualified if all solutions apply.
Standard_EXPORT GccEnt_QualifiedCirc(const gp_Circ2d& Qualified, const GccEnt_Position Qualifier);
//! Returns a 2D circle to which the qualifier is assigned.
Standard_EXPORT gp_Circ2d Qualified() const;
//! Returns
//! - the qualifier of this qualified circle, if it is enclosing,
//! enclosed or outside, or
//! - GccEnt_noqualifier if it is unqualified.
Standard_EXPORT GccEnt_Position Qualifier() const;
//! Returns true if the Circ2d is Unqualified and false in
//! the other cases.
Standard_EXPORT Standard_Boolean IsUnqualified() const;
//! Returns true if the solution computed by a construction
//! algorithm using this qualified circle encloses the circle.
Standard_EXPORT Standard_Boolean IsEnclosing() const;
//! Returns true if the solution computed by a construction
//! algorithm using this qualified circle is enclosed by the circle.
Standard_EXPORT Standard_Boolean IsEnclosed() const;
//! Returns true if both the solution computed by a
//! construction algorithm using this qualified circle and the
//! circle are external to one another.
Standard_EXPORT Standard_Boolean IsOutside() const;
protected:
private:
gp_Circ2d TheQualified;
GccEnt_Position TheQualifier;
};
#endif // _GccEnt_QualifiedCirc_HeaderFile

View File

@@ -1,88 +0,0 @@
-- Created on: 1991-04-15
-- Created by: Philippe DAUTRY
-- Copyright (c) 1991-1999 Matra Datavision
-- Copyright (c) 1999-2014 OPEN CASCADE SAS
--
-- This file is part of Open CASCADE Technology software library.
--
-- This library is free software; you can redistribute it and/or modify it under
-- the terms of the GNU Lesser General Public License version 2.1 as published
-- by the Free Software Foundation, with special exception defined in the file
-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-- distribution for complete text of the license and disclaimer of any warranty.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
class QualifiedLin
from GccEnt
--- Purpose: Describes a qualified 2D line.
-- A qualified 2D line is a line (gp_Lin2d line) with a
-- qualifier which specifies whether the solution of a
-- construction algorithm using the qualified line (as an argument):
-- - is 'enclosed' by the line, or
-- - is built so that both the line and it are external to one another, or
-- - is undefined (all solutions apply).
-- Note: the interior of a line is defined as the left-hand
-- side of the line in relation to its orientation (i.e. when
-- moving from the start to the end of the curve).
uses Position from GccEnt,
Lin2d from gp
is
Create(Qualified : Lin2d from gp ;
Qualifier : Position from GccEnt )
returns QualifiedLin from GccEnt;
---Purpose:
-- Constructs a qualified line by assigning the qualifier
-- Qualifier to the line Qualified.
-- Qualifier may be:
-- - GccEnt_enclosed if the solution is enclosed by the line, or
-- - GccEnt_outside if both the solution and the line are external to one another, or
-- - GccEnt_unqualified if all solutions apply.
-- Note : the interior of a line is defined as the left-hand
-- side of the line in relation to its orientation.
Qualified(me) returns Lin2d from gp
is static;
---Purpose: Returns a 2D line to which the qualifier is assigned.
Qualifier(me) returns Position from GccEnt
is static;
---Purpose:
-- Returns the qualifier of this qualified line, if it is "enclosed" or
-- "outside", or
-- - GccEnt_noqualifier if it is unqualified.
IsUnqualified(me) returns Boolean from Standard
is static;
---Purpose: Returns true if the solution is unqualified and false in
-- the other cases.
IsEnclosed(me) returns Boolean from Standard
is static;
---Purpose: Returns true if the solution is Enclosed in the Lin2d and false in
-- the other cases.
IsOutside(me) returns Boolean from Standard
is static;
---Purpose: Returns true if the solution is Outside the Lin2d and false in
-- the other cases.
fields
TheQualifier : Position from GccEnt;
TheQualified : Lin2d from gp;
--friends
--Unqualified(Obj : Lin2d) from GccEnt,
--Enclosed (Obj : Lin2d) from GccEnt,
--Outside (Obj : Lin2d) from GccEnt
end QualifiedLin;

View File

@@ -12,7 +12,9 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <GccEnt_QualifiedLin.ixx>
#include <GccEnt_QualifiedLin.hxx>
#include <gp_Lin2d.hxx>
gp_Lin2d GccEnt_QualifiedLin::
Qualified () const { return TheQualified; }

View File

@@ -0,0 +1,104 @@
// Created on: 1991-04-15
// Created by: Philippe DAUTRY
// Copyright (c) 1991-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as published
// by the Free Software Foundation, with special exception defined in the file
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
// distribution for complete text of the license and disclaimer of any warranty.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _GccEnt_QualifiedLin_HeaderFile
#define _GccEnt_QualifiedLin_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
#include <GccEnt_Position.hxx>
#include <gp_Lin2d.hxx>
#include <Standard_Boolean.hxx>
class gp_Lin2d;
//! Describes a qualified 2D line.
//! A qualified 2D line is a line (gp_Lin2d line) with a
//! qualifier which specifies whether the solution of a
//! construction algorithm using the qualified line (as an argument):
//! - is 'enclosed' by the line, or
//! - is built so that both the line and it are external to one another, or
//! - is undefined (all solutions apply).
//! Note: the interior of a line is defined as the left-hand
//! side of the line in relation to its orientation (i.e. when
//! moving from the start to the end of the curve).
class GccEnt_QualifiedLin
{
public:
DEFINE_STANDARD_ALLOC
//! Constructs a qualified line by assigning the qualifier
//! Qualifier to the line Qualified.
//! Qualifier may be:
//! - GccEnt_enclosed if the solution is enclosed by the line, or
//! - GccEnt_outside if both the solution and the line are external to one another, or
//! - GccEnt_unqualified if all solutions apply.
//! Note : the interior of a line is defined as the left-hand
//! side of the line in relation to its orientation.
Standard_EXPORT GccEnt_QualifiedLin(const gp_Lin2d& Qualified, const GccEnt_Position Qualifier);
//! Returns a 2D line to which the qualifier is assigned.
Standard_EXPORT gp_Lin2d Qualified() const;
//! Returns the qualifier of this qualified line, if it is "enclosed" or
//! "outside", or
//! - GccEnt_noqualifier if it is unqualified.
Standard_EXPORT GccEnt_Position Qualifier() const;
//! Returns true if the solution is unqualified and false in
//! the other cases.
Standard_EXPORT Standard_Boolean IsUnqualified() const;
//! Returns true if the solution is Enclosed in the Lin2d and false in
//! the other cases.
Standard_EXPORT Standard_Boolean IsEnclosed() const;
//! Returns true if the solution is Outside the Lin2d and false in
//! the other cases.
Standard_EXPORT Standard_Boolean IsOutside() const;
protected:
private:
GccEnt_Position TheQualifier;
gp_Lin2d TheQualified;
};
#endif // _GccEnt_QualifiedLin_HeaderFile