Statistics
| Revision:

svn-gvsig-desktop / trunk / extensions / extCAD / sm / EllipseCADTool.sm @ 3844

History | View | Annotate | Download (906 Bytes)

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

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

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

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

    
17
Initial
18

    
19
	Entry {
20
		init();
21
		setQuestion("ELIPSE" + "\n" +
22
		"Insertar punto inicial de eje de elipse");
23
		}
24
	Exit{
25
		}
26

    
27
	{
28
		addPoint( pointX:double,pointY:double)
29
			First {
30
				setQuestion("Insertar punto final de eje de elipse");
31
				addPoint( pointX,pointY);
32
				}
33

    
34
	}
35
First{
36
	addPoint( pointX:double,pointY:double)
37
		Second {
38
			setQuestion("Insertar distancia al otro eje");
39
			addPoint( pointX,pointY);
40
			}
41

    
42
}
43
Second{
44
	addPoint( pointX:double,pointY:double)
45
		Third {
46
			addPoint( pointX,pointY);
47
			end();
48
			}
49
	addValue( d:double)
50
		Fourth {
51
			addValue( d);
52
			end();
53
			}
54
}
55
Third{
56
}
57
Fourth{
58
}
59
Default
60
{
61

    
62
}
63
%%