Files
OCCT/src/Sweep/Sweep_NumShape.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

101 lines
3.2 KiB
Plaintext

-- Created on: 1993-02-03
-- Created by: Laurent BOURESCHE
-- Copyright (c) 1993-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 NumShape from Sweep
---Purpose: Gives a simple indexed representation of a
-- Directing Edge topology.
uses
ShapeEnum from TopAbs,
Orientation from TopAbs
is
Create returns NumShape from Sweep;
---Purpose: Creates a dummy indexed edge.
Create (Index : Integer;
Type : ShapeEnum from TopAbs;
Closed : Boolean = Standard_False;
BegInf : Boolean = Standard_False;
EndInf : Boolean = Standard_False)
returns NumShape from Sweep;
---Purpose: Creates a new simple indexed edge.
--
-- For an Edge : Index is the number of vertices (0,
-- 1 or 2),Type is TopAbs_EDGE, Closed is true if it
-- is a closed edge, BegInf is true if the Edge is
-- infinite at the begenning, EndInf is true if the
-- edge is infinite at the end.
--
-- For a Vertex : Index is the index of the vertex in
-- the edge (1 or 2), Type is TopAbsVERTEX, all the
-- other fields have no meanning.
Init (me : in out;
Index : Integer;
Type : ShapeEnum from TopAbs;
Closed : Boolean = Standard_False;
BegInf : Boolean = Standard_False;
EndInf : Boolean = Standard_False)
---Purpose: Reinitialize a simple indexed edge.
--
-- For an Edge : Index is the number of vertices (0,
-- 1 or 2),Type is TopAbs_EDGE, Closed is true if it
-- is a closed edge, BegInf is true if the Edge is
-- infinite at the begenning, EndInf is true if the
-- edge is infinite at the end.
--
-- For a Vertex : Index is the index of the vertex in
-- the edge (1 or 2), Type is TopAbsVERTEX, Closed is
-- true if it is the vertex of a closed edge, all the
-- other fields have no meanning.
is static;
Index(me) returns Integer
---C++: inline
is static;
Type(me) returns ShapeEnum from TopAbs
---C++: inline
is static;
Closed(me) returns Boolean
---C++: inline
is static;
BegInfinite(me) returns Boolean
---C++: inline
is static;
EndInfinite(me) returns Boolean
---C++: inline
is static;
Orientation(me) returns Orientation from TopAbs
is static;
fields
myType : ShapeEnum from TopAbs;
myIndex : Integer;
myClosed : Boolean;
myBegInf : Boolean;
myEndInf : Boolean;
end NumShape;