Files
OCCT/src/Intf/Intf_SectionLine.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

130 lines
3.7 KiB
Plaintext

-- Created on: 1991-06-18
-- Created by: Didier PIFFAULT
-- 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 SectionLine from Intf
---Purpose: Describe a polyline of intersection between two
-- polyhedra as a sequence of points of intersection.
uses SectionPoint from Intf,
SeqOfSectionPoint from Intf
raises OutOfRange from Standard
is
-- User Interface :
NumberOfPoints (me)
returns Integer is static;
---Purpose: Returns number of points in this SectionLine.
---C++: inline
GetPoint (me;
Index : in Integer)
returns SectionPoint from Intf
raises OutOfRange from Standard
is static;
---Purpose: Gives the point of intersection of address <Index> in the
-- SectionLine.
--
---C++: return const &
IsClosed (me)
returns Boolean is static;
---Purpose: Returns True if the SectionLine is closed.
Contains (me;
ThePI : in SectionPoint from Intf)
returns Boolean is static;
---Purpose: Returns True if ThePI is in the SectionLine <me>.
IsEnd (me;
ThePI : in SectionPoint from Intf)
returns Integer is static;
---Purpose: Checks if <ThePI> is an end of the SectionLine. Returns 1
-- for the beginning, 2 for the end, otherwise 0.
IsEqual (me;
Other : in SectionLine from Intf) -- in like me);
returns Boolean is static;
---Purpose: Compares two SectionLines.
--
---C++: alias operator ==
-- Builder :
Create returns SectionLine;
---Purpose: Constructs an empty SectionLine.
Create (Other : SectionLine)
returns SectionLine;
---Purpose: Copies a SectionLine.
Append (me : in out;
Pi : in SectionPoint from Intf)
is static;
---Purpose: Adds a point at the end of the SectionLine.
Append (me : in out;
LS : in out SectionLine from Intf)
is static;
---Purpose: Concatenates the SectionLine <LS> at the end of the
-- SectionLine <me>.
Prepend (me : in out;
Pi : in SectionPoint from Intf)
is static;
---Purpose: Adds a point to the beginning of the SectionLine <me>.
Prepend (me : in out;
LS : in out SectionLine from Intf)
is static;
---Purpose: Concatenates a SectionLine <LS> at the beginning of the
-- SectionLine <me>.
Reverse (me : in out)
is static;
---Purpose: Reverses the order of the elements of the SectionLine.
Close (me : in out)
is static;
---Purpose: Closes the SectionLine.
Dump (me;
Indent : in Integer) is static;
fields
myPoints : SeqOfSectionPoint from Intf;
closed : Boolean;
end SectionLine;