1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-10 18:51:21 +03:00
occt/src/GccEnt/GccEnt_QualifiedLin.cdl
abv d5f74e42d6 0024624: Lost word in license statement in source files
License statement text corrected; compiler warnings caused by Bison 2.41 disabled for MSVC; a few other compiler warnings on 54-bit Windows eliminated by appropriate type cast
Wrong license statements corrected in several files.
Copyright and license statements added in XSD and GLSL files.
Copyright year updated in some files.
Obsolete documentation files removed from DrawResources.
2014-02-20 16:15:17 +04:00

91 lines
3.1 KiB
Plaintext

-- 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
inherits Storable from Standard
--- 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;