0024157: Parallelization of assembly part of BO
[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
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
7fd59977 21
22
23class BezierCurve
24
25
26from DrawTrSurf
27
28
29inherits Curve from DrawTrSurf
30
31
32uses BezierCurve from Geom,
33 Color from Draw,
34 Display from Draw,
35 Drawable3D from Draw
36
37
38is
39
40
41 Create (C : BezierCurve from Geom)
42 --- Purpose :
43 -- creates a drawable Bezier curve from a Bezier curve of
44 -- package Geom.
45 returns mutable BezierCurve from DrawTrSurf;
46
47
48 Create (C : BezierCurve from Geom;
49 CurvColor, PolesColor : Color from Draw;
50 ShowPoles : Boolean; Discret : Integer;Deflection : Real;
51 DrawMode : Integer)
52 returns mutable BezierCurve from DrawTrSurf;
53
54
55 DrawOn (me; dis : in out Display from Draw)
56 is redefined static;
57
58
59 ShowPoles (me : mutable)
60 is static;
61
62
63 ClearPoles (me : mutable)
64 is static;
65
66
67 FindPole(me; X,Y : Real; D : Display from Draw; Prec : Real;
68 Index : in out Integer)
69 --- Purpose :
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
74 -- value of index.
75 is static;
76
77
78 SetPolesColor (me : mutable; aColor : Color from Draw)
79 ---C++: inline
80 is static;
81
82
83 PolesColor (me) returns Color from Draw
84 ---C++: inline
85 is static;
86
87 Copy(me) returns mutable Drawable3D from Draw
88 ---Purpose: For variable copy.
89 is redefined;
90
91
92fields
93
94 drawPoles : Boolean;
95 polesLook : Color from Draw;
96
97end BezierCurve;