0024428: Implementation of LGPL license
[occt.git] / src / DrawTrSurf / DrawTrSurf_BezierCurve.cdl
CommitLineData
b311480e 1-- Created on: 1992-05-22
2-- Created by: Jean Claude VAUTHIER
3-- Copyright (c) 1992-1999 Matra Datavision
973c2be1 4-- Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 5--
973c2be1 6-- This file is part of Open CASCADE Technology software library.
b311480e 7--
973c2be1 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.
b311480e 13--
973c2be1 14-- Alternatively, this file may be used under the terms of Open CASCADE
15-- commercial license or contractual agreement.
7fd59977 16
17class BezierCurve
18
19
20from DrawTrSurf
21
22
23inherits Curve from DrawTrSurf
24
25
26uses BezierCurve from Geom,
27 Color from Draw,
28 Display from Draw,
29 Drawable3D from Draw
30
31
32is
33
34
35 Create (C : BezierCurve from Geom)
36 --- Purpose :
37 -- creates a drawable Bezier curve from a Bezier curve of
38 -- package Geom.
39 returns mutable BezierCurve from DrawTrSurf;
40
41
42 Create (C : BezierCurve from Geom;
43 CurvColor, PolesColor : Color from Draw;
44 ShowPoles : Boolean; Discret : Integer;Deflection : Real;
45 DrawMode : Integer)
46 returns mutable BezierCurve from DrawTrSurf;
47
48
49 DrawOn (me; dis : in out Display from Draw)
50 is redefined static;
51
52
53 ShowPoles (me : mutable)
54 is static;
55
56
57 ClearPoles (me : mutable)
58 is static;
59
60
61 FindPole(me; X,Y : Real; D : Display from Draw; Prec : Real;
62 Index : in out Integer)
63 --- Purpose :
64 -- Returns in <Index> the index of the first pole of the
65 -- curve projected by the Display <D> at a distance lower
66 -- than <Prec> from <X,Y>. If no pole is found index is
67 -- set to 0, else index is always greater than the input
68 -- value of index.
69 is static;
70
71
72 SetPolesColor (me : mutable; aColor : Color from Draw)
73 ---C++: inline
74 is static;
75
76
77 PolesColor (me) returns Color from Draw
78 ---C++: inline
79 is static;
80
81 Copy(me) returns mutable Drawable3D from Draw
82 ---Purpose: For variable copy.
83 is redefined;
84
85
86fields
87
88 drawPoles : Boolean;
89 polesLook : Color from Draw;
90
91end BezierCurve;