0024157: Parallelization of assembly part of BO
[occt.git] / src / DrawTrSurf / DrawTrSurf_BSplineCurve2d.cdl
CommitLineData
b311480e 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
5--
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.
10--
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.
13--
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.
20
21
7fd59977 22
23
24class BSplineCurve2d
25
26
27from DrawTrSurf
28
29
30inherits Curve2d from DrawTrSurf
31
32
33uses BSplineCurve from Geom2d,
34 Color from Draw,
35 MarkerShape from Draw,
36 Display from Draw,
37 Drawable3D from Draw
38
39
40is
41
42
43 Create (C : BSplineCurve from Geom2d)
44 --- Purpose :
45 -- creates a drawable BSpline curve from a BSpline curve of
46 -- package Geom2d.
47 returns mutable BSplineCurve2d from DrawTrSurf;
48
49
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;
55
56
57 DrawOn (me; dis : in out Display from Draw)
58 is redefined static;
59
60 ShowPoles (me : mutable)
61 is static;
62
63 ShowKnots (me : mutable)
64 is static;
65
66 ClearPoles (me : mutable)
67 is static;
68
69 ClearKnots (me : mutable)
70 is static;
71
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
78 -- value of index.
79 is static;
80
81 FindKnot(me; X,Y : Real; D : Display from Draw; Prec : Real;
82 Index : in out Integer)
83 is static;
84
85 SetPolesColor (me : mutable; aColor : Color from Draw)
86 ---C++: inline
87 is static;
88
89 SetKnotsColor (me : mutable; aColor : Color from Draw)
90 ---C++: inline
91 is static;
92
93 SetKnotsShape (me : mutable; Shape : MarkerShape from Draw)
94 ---C++: inline
95 is static;
96
97 KnotsShape (me) returns MarkerShape from Draw
98 ---C++: inline
99 is static;
100
101 KnotsColor (me) returns Color from Draw
102 ---C++: inline
103 is static;
104
105 PolesColor (me) returns Color from Draw
106 ---C++: inline
107 is static;
108
109 Copy(me) returns mutable Drawable3D from Draw
110 ---Purpose: For variable copy.
111 is redefined;
112
113
114fields
115
116 drawPoles : Boolean;
117 drawKnots : Boolean;
118 knotsForm : MarkerShape from Draw;
119 knotsLook : Color from Draw;
120 knotsDim : Integer;
121 polesLook : Color from Draw;
122
123end BSplineCurve2d;