Statistics
| Revision:

root / trunk / extensions / extCAD / sm / PolygonCADTool.sm @ 3828

History | View | Annotate | Download (1.21 KB)

1
// -*- tab-width: 4; -*-
2

    
3
%{
4
//
5
// Vicente Caballero Navarro
6
%}
7

    
8
%start ExecuteMap::Initial
9
%class PolygonCADTool
10
%package com.iver.cit.gvsig.gui.cad.tools.smc
11
%import com.iver.cit.gvsig.gui.cad.tools.PolygonCADTool
12

    
13
%map ExecuteMap
14
%%
15
// A task begins life in suspended animation.
16

    
17
Initial
18

    
19
	Entry {
20
		init();
21
		setQuestion("Insertar numero de lados<5>");
22
		}
23
	Exit{
24
		}
25

    
26
	{
27
		addValue(d:double)
28
			First {
29
				setQuestion("Insertar punto central del poligono");
30
				addValue(d);
31
				}
32
		addPoint(pointX:double,pointY:double)
33
			Second {
34
				setQuestion("Inscrito en el c?rculo[I] o Circunscrito[C]");
35
				addPoint(pointX,pointY);
36
				}
37

    
38
	}
39
First{
40
	addPoint(pointX:double,pointY:double)
41
		Second {
42
			setQuestion("Inscrito en el c?rculo[I] o Circunscrito[C]<C>");
43
			addPoint(pointX,pointY);
44
			}
45
}
46
Second{
47
	addOption(s:String)
48
		Third {
49
			setQuestion("Precise r?dio(r)");
50
			addOption(s);
51
			}
52
	addValue(d:double)
53
		Fourth{
54
			addValue(d);
55
			end();
56
			}
57
	addPoint(pointX:double,pointY:double)
58
		Fourth {
59
			addPoint(pointX,pointY);
60
			end();
61
			}
62
}
63
Third{
64
	addPoint(pointX:double,pointY:double)
65
		Fourth {
66
			addPoint(pointX,pointY);
67
			end();
68
			}
69
	addValue(d:double)
70
		Fourth{
71
			addValue(d);
72
			end();
73
			}
74
}
75
Fourth{
76
}
77
Default
78
{
79

    
80
}
81
%%