0022898: IGES import fails in german environment
[occt.git] / src / DrawTrSurf / DrawTrSurf_BezierCurve2d.cdl
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
22
23
24 class BezierCurve2d
25
26
27 from DrawTrSurf
28
29
30 inherits Curve2d from DrawTrSurf
31
32
33 uses BezierCurve from Geom2d,
34      Color from Draw,
35      Display from Draw,
36      Drawable3D from Draw
37
38
39 is
40
41
42   Create (C : BezierCurve from Geom2d)
43         --- Purpose :
44         --  creates a drawable Bezier curve from a Bezier curve of 
45         --  package Geom2d.
46      returns mutable BezierCurve2d from DrawTrSurf;
47
48
49   Create (C : BezierCurve from Geom2d;
50           CurvColor, PolesColor : Color from Draw;
51           ShowPoles : Boolean; Discret : Integer)
52      returns mutable BezierCurve2d 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   PolesColor (me)  returns Color from Draw
83         ---C++: inline
84      is static;
85     
86   Copy(me) returns mutable Drawable3D from Draw
87         ---Purpose: For variable copy.
88   is redefined;
89   
90       
91 fields
92
93   drawPoles  : Boolean;
94   polesLook  : Color from Draw;
95
96 end BezierCurve2d;