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 BSplineCurve from Geom2d,
35 MarkerShape from Draw,
43 Create (C : BSplineCurve from Geom2d)
45 -- creates a drawable BSpline curve from a BSpline curve of
47 returns mutable BSplineCurve2d from DrawTrSurf;
50 Create (C : BSplineCurve from Geom2d;
51 CurvColor, PolesColor, KnotsColor : Color from Draw;
52 KnotsShape : MarkerShape from Draw; KnotsSize : Integer;
53 ShowPoles, ShowKnots : Boolean; Discret : Integer)
54 returns mutable BSplineCurve2d from DrawTrSurf;
57 DrawOn (me; dis : in out Display from Draw)
60 ShowPoles (me : mutable)
63 ShowKnots (me : mutable)
66 ClearPoles (me : mutable)
69 ClearKnots (me : mutable)
72 FindPole(me; X,Y : Real; D : Display from Draw; Prec : Real;
73 Index : in out Integer)
74 ---Purpose: Returns in <Index> the index of the first pole of the
75 -- curve projected by the Display <D> at a distance lower
76 -- than <Prec> from <X,Y>. If no pole is found index is
77 -- set to 0, else index is always greater than the input
81 FindKnot(me; X,Y : Real; D : Display from Draw; Prec : Real;
82 Index : in out Integer)
85 SetPolesColor (me : mutable; aColor : Color from Draw)
89 SetKnotsColor (me : mutable; aColor : Color from Draw)
93 SetKnotsShape (me : mutable; Shape : MarkerShape from Draw)
97 KnotsShape (me) returns MarkerShape from Draw
101 KnotsColor (me) returns Color from Draw
105 PolesColor (me) returns Color from Draw
109 Copy(me) returns mutable Drawable3D from Draw
110 ---Purpose: For variable copy.
118 knotsForm : MarkerShape from Draw;
119 knotsLook : Color from Draw;
121 polesLook : Color from Draw;