1 -- Created on: 1992-05-22
2 -- Created by: Jean Claude VAUTHIER
3 -- Copyright (c) 1992-1999 Matra Datavision
4 -- Copyright (c) 1999-2012 OPEN CASCADE SAS
6 -- The content of this file is subject to the Open CASCADE Technology Public
7 -- License Version 6.5 (the "License"). You may not use the content of this file
8 -- except in compliance with the License. Please obtain a copy of the License
9 -- at http://www.opencascade.org and read it completely before using this file.
11 -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12 -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
14 -- The Original Code and all software distributed under the License is
15 -- distributed on an "AS IS" basis, without warranty of any kind, and the
16 -- Initial Developer hereby disclaims all such warranties, including without
17 -- limitation, any warranties of merchantability, fitness for a particular
18 -- purpose or non-infringement. Please see the License for the specific terms
19 -- and conditions governing the rights and limitations under the License.
30 inherits Curve2d from DrawTrSurf
33 uses BezierCurve from Geom2d,
42 Create (C : BezierCurve from Geom2d)
44 -- creates a drawable Bezier curve from a Bezier curve of
46 returns mutable BezierCurve2d from DrawTrSurf;
49 Create (C : BezierCurve from Geom2d;
50 CurvColor, PolesColor : Color from Draw;
51 ShowPoles : Boolean; Discret : Integer)
52 returns mutable BezierCurve2d from DrawTrSurf;
55 DrawOn (me; dis : in out Display from Draw)
59 ShowPoles (me : mutable)
63 ClearPoles (me : mutable)
67 FindPole(me; X,Y : Real; D : Display from Draw; Prec : Real;
68 Index : in out Integer)
70 -- Returns in <Index> the index of the first pole of the
71 -- curve projected by the Display <D> at a distance lower
72 -- than <Prec> from <X,Y>. If no pole is found index is
73 -- set to 0, else index is always greater than the input
78 SetPolesColor (me : mutable; aColor : Color from Draw)
82 PolesColor (me) returns Color from Draw
86 Copy(me) returns mutable Drawable3D from Draw
87 ---Purpose: For variable copy.
94 polesLook : Color from Draw;