1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-05-01 10:26:12 +03:00
occt/src/IntRes2d/IntRes2d_Intersection.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

197 lines
5.4 KiB
Plaintext

-- Created on: 1992-04-27
-- Created by: Laurent BUCHARD
-- Copyright (c) 1992-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.
deferred class Intersection from IntRes2d
---Purpose: Defines the root class of all the Intersections
-- between two 2D-Curves, and provides all the methods
-- about the results of the Intersections Algorithms.
uses IntersectionPoint from IntRes2d,
IntersectionSegment from IntRes2d,
SequenceOfIntersectionPoint from IntRes2d,
SequenceOfIntersectionSegment from IntRes2d
raises NotDone from StdFail,
OutOfRange from Standard
is
Initialize
---Purpose: Empty constructor.
is protected;
---C++:inline
Initialize(Other: Intersection from IntRes2d)
---C++:inline
is protected;
IsDone(me)
---Purpose: returns TRUE when the computation was successful.
---C++: inline
returns Boolean from Standard
is static;
IsEmpty(me)
---Purpose: Returns TRUE if there is no intersection between the
-- given arguments.
-- The exception NotDone is raised if IsDone returns FALSE.
---C++: inline
returns Boolean from Standard
raises NotDone from StdFail
is static;
NbPoints(me)
---Purpose: This function returns the number of intersection
-- points between the 2 curves.
-- The exception NotDone is raised if IsDone returns FALSE.
---C++: inline
returns Integer from Standard
raises NotDone from StdFail
is static;
Point(me; N : Integer from Standard)
---Purpose: This function returns the intersection point
-- of range N;
-- The exception NotDone is raised if IsDone returns FALSE.
-- The exception OutOfRange is raised if (N <= 0)
-- or (N > NbPoints).
---C++: inline
returns IntersectionPoint from IntRes2d
---C++: return const &
raises NotDone from StdFail,
OutOfRange from Standard
is static;
NbSegments(me)
---Purpose: This function returns the number of intersection
-- segments between the two curves.
-- The exception NotDone is raised if IsDone returns FALSE.
---C++: inline
returns Integer from Standard
raises NotDone from StdFail
is static;
Segment(me; N : Integer)
---Purpose: This function returns the intersection segment
-- of range N;
-- The exception NotDone is raised if IsDone returns FALSE.
-- The exception OutOfRange is raised if (N <= 0)
-- or (N > NbPoints).
---C++: inline
returns IntersectionSegment from IntRes2d
---C++: return const &
raises NotDone from StdFail,
OutOfRange from Standard
is static;
SetValues(me: in out; Inter: Intersection from IntRes2d)
--Purpose: Copies the Inters values into the current object.
is static protected;
Append(me: in out; Inter : Intersection from IntRes2d;
FirstParam1: Real from Standard;
LastParam1 : Real from Standard;
FirstParam2: Real from Standard;
LastParam2 : Real from Standard)
--Purpose: Appends the Inters values to the current object
-- FirstParam and LastParam are the parameters of
-- the bounds of the parameter interval of the
-- curves.
is static protected;
Append(me: in out; Seg: IntersectionSegment from IntRes2d)
--Purpose: Appends a new Intersection Segment.
---C++: inline
is static protected;
Append(me: in out; Pnt: IntersectionPoint from IntRes2d)
--Purpose: Appends a new Intersection Point.
---C++: inline
is static protected;
Insert(me: in out; Pnt: IntersectionPoint from IntRes2d)
--Purpose: Inserts a new Intersection Point.
is static protected;
ResetFields(me: in out)
--Purpose: Resets all fields.
---C++: inline
is static protected;
SetReversedParameters(me: in out; Reverseflag: Boolean from Standard)
--Purpose: Initialize the reverse flag. This flag is used to
-- determine if the first and second parameters have
-- to be swaped when the intersection points and
-- segments are created.
---C++: inline
is static;
ReversedParameters(me)
--Purpose: Returns the value of the reverse flag.
---C++: inline
returns Boolean from Standard
is static protected;
fields
done : Boolean from Standard is protected;
reverse : Boolean from Standard;
lpnt : SequenceOfIntersectionPoint from IntRes2d;
lseg : SequenceOfIntersectionSegment from IntRes2d;
end Intersection;