0023510: Integration of test grid "vis" into the new testing system
[occt.git] / src / V2d / V2d_CircularGraphicGrid.cdl
CommitLineData
b311480e 1-- Created on: 1995-03-17
2-- Created by: Mister rmi
3-- Copyright (c) 1995-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
22private class CircularGraphicGrid from V2d inherits Primitive from Graphic2d
23
24
25uses
26 Drawer from Graphic2d,
27 GraphicObject from Graphic2d,
28 Length from Quantity,
29 GridDrawMode from Aspect,
30 FStream from Aspect
31is
32 Create (aGraphicObject: GraphicObject from Graphic2d;
33 X, Y, alpha, step: Real from Standard;
34 aDivision: Integer from Standard;
35 PointsColorIndex: Integer from Standard)
36 returns mutable CircularGraphicGrid from V2d;
37
38 SetDrawMode(me: mutable; aDrawMode: GridDrawMode from Aspect)
39 is static;
40
41 Draw (me: mutable; aDrawer: Drawer from Graphic2d)
42 is redefined static protected;
43 ---Level: Internal
44 ---Purpose: Draws the grid
45
46 Pick (me: mutable; X, Y: ShortReal from Standard;
47 aPrecision: ShortReal from Standard;
48 aDrawer: Drawer from Graphic2d)
49 returns Boolean from Standard is redefined static protected;
50 ---Level: Internal
51 ---Purpose: Returns Standard_True if the infinite line <me> is picked,
52 -- Standard_False if not.
53
54 DrawCircle(me; aDrawer: Drawer from Graphic2d;
55 xc,yc,r: ShortReal from Standard;
56 DrawPoints: Boolean from Standard)
57 is static private;
58
59 Save( me; aFStream: in out FStream from Aspect ) is virtual;
60
61fields
62 OX,OY,angle,Step: ShortReal from Standard;
63 Division: Integer from Standard;
64 DrawMode: GridDrawMode from Aspect;
65 myPointsColorIndex: Integer from Standard;
66end CircularGraphicGrid from V2d;
67