0023634: Eliminate Polyline and Polygon usage in drawers
[occt.git] / src / V3d / V3d_RectangularGrid.cdl
CommitLineData
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 have moved Aspect_Grid
7fd59977 22
23private class RectangularGrid from V3d inherits RectangularGrid from Aspect
24
25uses
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
33is
34 Create ( aViewer : ViewerPointer from V3d;
35 aColor : Color from Quantity;
36 aTenthColor : Color from Quantity )
37 returns mutable RectangularGrid 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 XSize, YSize : out Real from Standard;
56 OffSet : out Real from Standard )
57 is static;
58
59 SetGraphicValues ( me : mutable;
60 XSize, YSize : 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
73fields
74 myStructure : Structure from Graphic3d;
b8ddfc2f 75 myGroup : Group from Graphic3d;
76 myCurViewPlane : Ax3 from gp;
7fd59977 77 myViewer : ViewerPointer from V3d;
b8ddfc2f 78 myCurAreDefined : Boolean from Standard;
79 myCurDrawMode : GridDrawMode from Aspect;
7fd59977 80 myCurXo, myCurYo : Real from Standard;
81 myCurAngle : Real from Standard;
82 myCurXStep, myCurYStep : Real from Standard;
83 myXSize, myYSize : Real from Standard;
84 myOffSet : Real from Standard;
85
7fd59977 86end RectangularGrid from V3d;