b311480e |
1 | -- Created on: 1998-07-16 |
2 | -- Created by: CAL |
3 | -- Copyright (c) 1998-1999 Matra Datavision |
4 | -- Copyright (c) 1999-2012 OPEN CASCADE SAS |
7fd59977 |
5 | -- |
b311480e |
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. |
7fd59977 |
13 | -- |
b311480e |
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 | -- Updated: GG IMP230300 The color fields are moved in Aspect_Grid |
7fd59977 |
22 | |
23 | private class CircularGrid from V3d inherits CircularGrid from Aspect |
24 | |
25 | uses |
26 | Ax3 from gp, |
27 | Color from Quantity, |
28 | Group from Graphic3d, |
29 | Structure from Graphic3d, |
30 | GridDrawMode from Aspect, |
31 | ViewerPointer from V3d |
32 | |
33 | is |
34 | Create ( aViewer : ViewerPointer from V3d; |
35 | aColor : Color from Quantity; |
36 | aTenthColor : Color from Quantity ) |
37 | returns mutable CircularGrid from V3d; |
38 | |
39 | SetColors ( me : mutable; |
40 | aColor : Color from Quantity; |
41 | aTenthColor : Color from Quantity ) |
42 | is redefined static; |
43 | |
44 | Display ( me : mutable ) |
45 | is redefined static; |
46 | |
47 | Erase ( me ) |
48 | is redefined static; |
49 | |
50 | IsDisplayed ( me ) |
51 | returns Boolean from Standard |
52 | is redefined static; |
53 | |
54 | GraphicValues ( me; |
55 | Radius : out Real from Standard; |
56 | OffSet : out Real from Standard ) |
57 | is static; |
58 | |
59 | SetGraphicValues ( me : mutable; |
60 | Radius : Real from Standard; |
61 | OffSet : Real from Standard ) |
62 | is static; |
63 | |
64 | DefineLines ( me : mutable ) |
65 | is static private; |
66 | |
67 | DefinePoints ( me : mutable ) |
68 | is static private; |
69 | |
70 | UpdateDisplay ( me : mutable ) |
71 | is redefined static protected; |
72 | |
73 | fields |
74 | myStructure : Structure from Graphic3d; |
75 | myGroup1, myGroup2 : Group from Graphic3d; |
76 | myCurViewPlane : Ax3 from gp; |
77 | -- myColor, myTenthColor : Color from Quantity; |
78 | -- myCurColor1, myCurColor2: Color from Quantity; |
79 | myViewer : ViewerPointer from V3d; |
80 | myCurAreDefined : Boolean from Standard; |
81 | myCurDrawMode : GridDrawMode from Aspect; |
82 | myCurXo, myCurYo : Real from Standard; |
83 | myCurAngle : Real from Standard; |
84 | myCurStep : Real from Standard; |
85 | myCurDivi : Integer from Standard; |
86 | myRadius : Real from Standard; |
87 | myOffSet : Real from Standard; |
88 | |
89 | end CircularGrid from V3d; |