b311480e |
1 | -- Created on: 1991-07-16 |
2 | -- Created by: Christophe MARION |
3 | -- Copyright (c) 1991-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 | |
23 | |
24 | deferred class Drawable from DrawTrSurf inherits Drawable3D from Draw |
25 | |
26 | ---Purpose: this class adds to the Drawable3D methods to |
27 | -- display Curves and Curves on Surface. |
28 | -- |
29 | -- The discretisation, number of points on a Curve, |
30 | -- is stored in this class. |
31 | |
32 | uses |
33 | Display from Draw, |
34 | Curve from Adaptor3d, |
35 | Curve2d from Adaptor2d, |
36 | IsoCurve from Adaptor3d, |
37 | IsoType from GeomAbs |
38 | |
39 | is |
40 | Initialize(discret : Integer; deflection : Real = 0.01; DrawMode : Integer = 0); |
41 | ---Purpose: set the number of points on a curve at creation. |
42 | |
43 | DrawCurve2dOn(me; |
44 | C : in out Curve2d from Adaptor2d; |
45 | D : in out Display from Draw); |
46 | ---Purpose: Draw a polygon of the curve on the Display |
47 | |
48 | DrawCurveOn(me; |
49 | C : in out Curve from Adaptor3d; |
50 | D : in out Display from Draw); |
51 | ---Purpose: Draw a polygon of the curve on the Display |
52 | |
53 | DrawIsoCurveOn(me; |
54 | C : in out IsoCurve from Adaptor3d; |
55 | T : IsoType from GeomAbs; |
56 | P, F, L : Real; |
57 | D : in out Display from Draw); |
58 | ---Purpose: Load C with the specified iso and Draw a polygon |
59 | -- of the curve on the Display |
60 | |
61 | DrawOn(me; dis : in out Display from Draw) |
62 | ---Purpose: this is defined only to tell C++ not to complain |
63 | -- about inheriting a pure virtual method. |
64 | is deferred; |
65 | |
66 | |
67 | SetDiscretisation (me : mutable; Discret : Integer); |
68 | ---C++: inline |
69 | |
70 | GetDiscretisation (me) returns Integer; |
71 | ---C++: inline |
72 | |
73 | SetDeflection (me : mutable; Deflection : Real); |
74 | ---C++: inline |
75 | |
76 | GetDeflection (me) returns Real; |
77 | ---C++: inline |
78 | |
79 | SetDrawMode (me : mutable; DrawMode : Integer); |
80 | ---C++: inline |
81 | |
82 | GetDrawMode (me) returns Integer; |
83 | ---C++: inline |
84 | |
85 | |
86 | |
87 | |
88 | fields |
89 | myDrawMode : Integer; |
90 | --- Purpose : 0 parametre constant, 1 fleche constante |
91 | myDiscret : Integer; |
92 | myDeflection : Real; |
93 | |
94 | end Drawable; |
95 | |