summaryrefslogtreecommitdiff
path: root/src/V2d/V2d_CircularGraphicGrid.cdl
blob: 4cab6fdb62e1c74a83c7bb037ba36ab269f26e36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
-- File:	V2d_CircularGraphicGrid.cdl
-- Created:	Fri Mar 17 08:52:56 1995
-- Author:	Mister rmi
--		<rmi@pernox>
---Copyright:	 Matra Datavision 1995

private class CircularGraphicGrid from V2d inherits Primitive from Graphic2d


uses
	Drawer          from Graphic2d,
	GraphicObject	from Graphic2d,
	Length          from Quantity,
        GridDrawMode    from Aspect,
	FStream         from Aspect 
is
	Create (aGraphicObject: GraphicObject from Graphic2d;
		X, Y, alpha, step: Real from Standard;
		aDivision: Integer from Standard;
		PointsColorIndex: Integer from Standard)
	returns mutable CircularGraphicGrid from V2d;

	SetDrawMode(me: mutable; aDrawMode: GridDrawMode from Aspect)
	is static;
	
	Draw (me: mutable; aDrawer: Drawer from Graphic2d)
	is redefined static protected;
	---Level: Internal
	---Purpose: Draws the grid

	Pick (me: mutable; X, Y: ShortReal from Standard;
		aPrecision: ShortReal from Standard;
		aDrawer: Drawer from Graphic2d)
	returns Boolean from Standard is redefined static protected;
	---Level: Internal
	---Purpose: Returns Standard_True if the infinite line <me> is picked,
	--	    Standard_False if not.

        DrawCircle(me; aDrawer: Drawer from Graphic2d;
                       xc,yc,r: ShortReal from Standard;
                       DrawPoints: Boolean from Standard)
	is static private;

	Save( me; aFStream: in out FStream from Aspect ) is virtual;

fields
	OX,OY,angle,Step: ShortReal from Standard;
	Division: Integer from Standard;
        DrawMode: GridDrawMode from Aspect;
        myPointsColorIndex: Integer from Standard;	
end CircularGraphicGrid from V2d;