| 1 | -- Created on: 1995-03-09 |
| 2 | -- Created by: Laurent PAINNOT |
| 3 | -- Copyright (c) 1995-1999 Matra Datavision |
| 4 | -- Copyright (c) 1999-2014 OPEN CASCADE SAS |
| 5 | -- |
| 6 | -- This file is part of Open CASCADE Technology software library. |
| 7 | -- |
| 8 | -- This library is free software; you can redistribute it and / or modify it |
| 9 | -- under the terms of the GNU Lesser General Public version 2.1 as published |
| 10 | -- by the Free Software Foundation, with special exception defined in the file |
| 11 | -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
| 12 | -- distribution for complete text of the license and disclaimer of any warranty. |
| 13 | -- |
| 14 | -- Alternatively, this file may be used under the terms of Open CASCADE |
| 15 | -- commercial license or contractual agreement. |
| 16 | |
| 17 | deferred class GCurve from BRep inherits CurveRepresentation from BRep |
| 18 | |
| 19 | ---Purpose: Root class for the geometric curves |
| 20 | -- representation. Contains a range. |
| 21 | |
| 22 | uses |
| 23 | |
| 24 | Location from TopLoc, |
| 25 | Pnt from gp |
| 26 | |
| 27 | is |
| 28 | |
| 29 | Initialize(L : Location from TopLoc; First, Last : Real); |
| 30 | |
| 31 | SetRange(me : mutable; First, Last : Real) |
| 32 | ---C++: inline |
| 33 | is static; |
| 34 | |
| 35 | Range(me; First, Last : out Real) |
| 36 | ---C++: inline |
| 37 | is static; |
| 38 | |
| 39 | First(me) returns Real |
| 40 | ---C++: inline |
| 41 | is static; |
| 42 | |
| 43 | Last(me) returns Real |
| 44 | ---C++: inline |
| 45 | is static; |
| 46 | |
| 47 | First(me : mutable; F : Real) |
| 48 | ---C++: inline |
| 49 | is static; |
| 50 | |
| 51 | Last(me : mutable; L : Real) |
| 52 | ---C++: inline |
| 53 | is static; |
| 54 | |
| 55 | |
| 56 | D0(me; U : Real; P : out Pnt from gp) |
| 57 | ---Purpose: Computes the point at parameter U. |
| 58 | is deferred; |
| 59 | |
| 60 | |
| 61 | Update(me : mutable) |
| 62 | ---Purpose: Recomputes any derived data after a modification. |
| 63 | -- This is called when the range is modified. |
| 64 | is virtual; |
| 65 | |
| 66 | fields |
| 67 | myFirst : Real; |
| 68 | myLast : Real; |
| 69 | |
| 70 | end GCurve; |