Revision 32048

View differences:

tags/gvsig_topologia-0_1_0-1235/libraries/libAnimationCommon/src/test/java/com/iver/cit/gvsig/animation/AppTest.java
1
package com.iver.cit.gvsig.animation;
2

  
3
import junit.framework.Test;
4
import junit.framework.TestCase;
5
import junit.framework.TestSuite;
6

  
7
/**
8
 * Unit test for simple App.
9
 */
10
public class AppTest 
11
    extends TestCase
12
{
13
    /**
14
     * Create the test case
15
     *
16
     * @param testName name of the test case
17
     */
18
    public AppTest( String testName )
19
    {
20
        super( testName );
21
    }
22

  
23
    /**
24
     * @return the suite of tests being tested
25
     */
26
    public static Test suite()
27
    {
28
        return new TestSuite( AppTest.class );
29
    }
30

  
31
    /**
32
     * Rigourous Test :-)
33
     */
34
    public void testApp()
35
    {
36
        assertTrue( true );
37
    }
38
}
tags/gvsig_topologia-0_1_0-1235/libraries/libAnimationCommon/src/main/java/com/iver/cit/gvsig/animation/animatedObject/AnimationObjectTransparency.java
1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
2
*
3
* Copyright (C) 2005 IVER T.I. and Generalitat Valenciana.
4
*
5
* This program is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU General Public License
7
* as published by the Free Software Foundation; either version 2
8
* of the License, or (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
18
*/
19

  
20
package com.iver.cit.gvsig.animation.animatedObject;
21

  
22
import com.iver.cit.gvsig.fmap.layers.FLyrDefault;
23

  
24
/**
25
 * @author ?ngel Fraile Gri??n  e-mail: angel.fraile@iver.es
26
 * @since 1.1
27
 * 
28
 */
29
public class AnimationObjectTransparency extends AnimatedObjectBase{
30
	
31
	private String nameLayer;
32
	private FLyrDefault layerDefault;
33
	
34
	
35
	public String getClassName() {
36
		return this.getClass().getName();
37
	}
38
	
39
	public void setClassName(String className) {
40
	}
41
	
42
	public String getNameLayer() {
43
		return nameLayer;
44
	}
45
	
46
	public void setNameLayer(String nameLayer) {
47
		this.nameLayer = nameLayer;
48
	}
49
	
50
	public Object getAnimatedView() {
51
		return this.getAnimatedObject("view");
52
	}
53
	
54
	public void setAnimatedView(Object object) {
55
		this.addAnimatedObject("view", object);
56
	}
57
	
58
	
59
	public Object getAnimatedLayer() {
60
		return layerDefault;
61
	}
62

  
63
	public void setAnimatedLayer(Object object) {
64
		this.layerDefault = (FLyrDefault) object;
65
		this.nameLayer = this.layerDefault.getName();
66
	}
67
	
68
	
69
}
tags/gvsig_topologia-0_1_0-1235/libraries/libAnimationCommon/src/main/java/com/iver/cit/gvsig/animation/animationType/AnimationTransparency.java
1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
2
*
3
* Copyright (C) 2005 IVER T.I. and Generalitat Valenciana.
4
*
5
* This program is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU General Public License
7
* as published by the Free Software Foundation; either version 2
8
* of the License, or (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
18
*/
19

  
20
package com.iver.cit.gvsig.animation.animationType;
21

  
22
import com.iver.andami.PluginServices;
23

  
24
import com.iver.andami.ui.mdiManager.IWindow;
25
import com.iver.cit.gvsig.animation.IAnimationType;
26
import com.iver.cit.gvsig.animation.animatedObject.AnimationObjectTransparency;
27
import com.iver.cit.gvsig.animation.animatedObject.IAnimatedObject;
28
import com.iver.cit.gvsig.animation.keyFrame.KeyFrameTransparency;
29
import com.iver.cit.gvsig.animation.keyframe.IAnimationTypeKeyFrame;
30
import com.iver.cit.gvsig.animation.keyframe.interpolator.FuntionFactory;
31
import com.iver.cit.gvsig.animation.keyframe.interpolator.IInterpolator;
32
import com.iver.cit.gvsig.animation.keyframe.interpolator.IInterpolatorTimeFuntion;
33
import com.iver.cit.gvsig.fmap.layers.FLyrDefault;
34
import com.iver.cit.gvsig.project.documents.view.gui.BaseView;
35
import com.iver.utiles.IPersistence;
36
import com.iver.utiles.XMLEntity;
37

  
38

  
39
/**
40
 * @author ?ngel Fraile Gri??n  e-mail: angel.fraile@iver.es
41
 * @since 1.1
42
 * 
43
 */
44
public class AnimationTransparency implements IAnimationTypeKeyFrame {
45

  
46
	private String description = "Animacion basada en Transparencias";
47
	private String name = "AnimationTransparency";
48
	private int typeTrack = IAnimationType.TIME_TYPE_TRACK;
49
	private IInterpolator interpolator;
50
	private String nameView;
51
	private IAnimatedObject animationObjectTransparency = new AnimationObjectTransparency() ;
52
	private String titleWindow;
53

  
54
	public AnimationTransparency() {
55
	}
56

  
57
	public String getClassName() {
58
		return this.getClass().getName();
59
	}
60

  
61
	public String getDescription() {
62
		return description;
63
	}
64

  
65
	public String getName() {
66
		return name;
67
	}
68

  
69
	public void setClassName(String className) {
70
	}
71

  
72
	public void setDescription(String description) {
73
		this.description = description;
74
	}
75

  
76
	public void setName(String name) {
77
		this.name = name;
78
	}
79

  
80
	/**
81
	 * 
82
	 * @param animate : Object to animate.
83
	 *  Application of attributes to our object animated.
84
	 *  In this animation the object is a layer(FLyerDefault).
85
	 *  Attributes: layer transparency.
86
	 *  invalidate(): repaint the view. 
87
	 */
88
	
89
	public void AppliesToObject(Object animated) {
90

  
91
		KeyFrameTransparency kf = (KeyFrameTransparency) animated;
92
		FLyrDefault layer = (FLyrDefault)kf.getAnimatedObject();
93
		int trans = (int)kf.getLevelTransparency();
94
		
95
	//	System.err.println("antes: " + System.currentTimeMillis());
96
	//	long antes = System.currentTimeMillis();
97
		
98
		layer.setTransparency(trans);	
99
		layer.getMapContext().invalidate();
100
		
101
	//	System.err.println("despues: " + System.currentTimeMillis());
102
	//	long despues = System.currentTimeMillis();
103
	//	System.err.println("intervalo de tiempo: " + (despues-antes));
104
		
105
	}
106

  
107
	public int getTypeTrack() {
108
		return typeTrack;
109
	}
110

  
111
	public void setTypeTrack(int typeTrack) {
112
		this.typeTrack = typeTrack;
113
	}
114

  
115
	public IInterpolator getInterpolator() {
116
		return this.interpolator;
117
	}
118

  
119
	public void setInterpolator(IInterpolator interpolator) {
120
		this.interpolator = interpolator;
121
	}
122

  
123
	/**
124
	 * Getting the animated object, in movement track animation; the view
125
	 */
126
	public Object getAnimatedObject() {
127
		if(this.animationObjectTransparency != null){
128
			// getting all views.
129
			try{
130
				IWindow[] viewArray = PluginServices.getMDIManager().getAllWindows();
131
				for (int i = 0; i < viewArray.length; i++) {
132
					IWindow window = viewArray[i];
133
					if (window.getClass().getName().equals(this.nameView)){
134
						// get the actual name of the view, and compare it with the view saved in xml.
135
						if(window.getWindowInfo().getTitle().equals(this.titleWindow)){
136
							BaseView newView = (BaseView)window;
137
							this.animationObjectTransparency.addAnimatedObject("view", newView);
138
							this.setAnimatedObject(this.animationObjectTransparency);
139
							IInterpolatorTimeFuntion funtion = FuntionFactory.createObject("com.iver.cit.gvsig.animation.keyframe.interpolator.LinearFuntion");
140
							this.interpolator.setFuntion(funtion);
141
						}
142
					}
143
				}
144
			}catch(Exception e) {
145
				e.printStackTrace();
146
			}
147
		}
148
		return this.animationObjectTransparency;
149
	}
150

  
151
	public void setAnimatedObject(Object object) {
152
		this.animationObjectTransparency = (IAnimatedObject) object;
153
	}
154

  
155
	/*
156
	 * IPersistence methods.
157
	 */
158
	
159
	public XMLEntity getXMLEntity() {
160
		
161
		
162
		XMLEntity xml = new XMLEntity();
163
		xml.putProperty("className", this.getClassName());
164
		xml.putProperty("description", description);
165
		xml.putProperty("animationTrackTipe", typeTrack);
166
		
167
		BaseView myActualView =  (BaseView) animationObjectTransparency.getAnimatedObject("view");
168
		xml.putProperty("nameClassView", myActualView.getClass().getName());
169
		
170
		titleWindow = myActualView.getWindowInfo().getTitle();
171
		xml.putProperty("titleWindow", titleWindow);
172
		xml.addChild(((IPersistence)this.interpolator).getXMLEntity());
173
		return xml;
174
	}
175

  
176
	public void setXMLEntity(XMLEntity xml) {
177
		
178
		
179
		if (xml.contains("animationTrackTipe"))
180
			this.typeTrack = xml.getIntProperty("animationTrackTipe");
181
		if (xml.contains("nameView"))
182
			this.nameView =	xml.getStringProperty("nameView");
183
		
184
		//Acceding to the InterpolatorX of the AnimationTypeX
185
		XMLEntity xmlInterpolator = xml.getChild(0);
186
		try {
187
			String class_name = xmlInterpolator.getStringProperty("className");
188
			Class<?> classInterpolator = Class.forName(class_name);
189
			Object obj = classInterpolator .newInstance();
190
			IPersistence objPersist = (IPersistence) obj;
191
			objPersist.setXMLEntity(xmlInterpolator);
192
			this.interpolator = (IInterpolator) obj;
193
			this.setInterpolator(interpolator);
194
			
195
		} catch (Exception e) {
196
			e.printStackTrace();
197
		}
198
		
199
	}
200
}
tags/gvsig_topologia-0_1_0-1235/libraries/libAnimationCommon/src/main/java/com/iver/cit/gvsig/animation/animationType/AnimationTypeFactoryTransparency.java
1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
2
*
3
* Copyright (C) 2005 IVER T.I. and Generalitat Valenciana.
4
*
5
* This program is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU General Public License
7
* as published by the Free Software Foundation; either version 2
8
* of the License, or (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
18
*/
19

  
20
package com.iver.cit.gvsig.animation.animationType;
21

  
22
import com.iver.cit.gvsig.animation.AnimationFactory;
23

  
24
/**
25
 * @author ?ngel Fraile Gri??n  e-mail: angel.fraile@iver.es
26
 * @since 1.1
27
 * 
28
 */
29
public class AnimationTypeFactoryTransparency extends AnimationFactory {
30

  
31
	public static String registerName = "AnimationTransparency";
32
	
33
	
34
	public static AnimationTransparency animationTransparency;
35
	
36
	static {
37
		if (animationTransparency == null) {
38
			animationTransparency = new AnimationTransparency();
39
			animationTransparency.setClassName("AnimationTransparency");
40
			animationTransparency.setName("AnimationTransparency");
41
			animationTransparency.setDescription("Animacion basada en transparencias.");
42
		}
43
	}
44
	
45
	/**
46
	 * Creating a new animation in the factory.
47
	 */
48
	public Object create() {
49
		
50
       return animationTransparency;
51
	}
52
	
53
	/**
54
	 * Registers in the points of extension the Factory with alias.
55
	 */
56
	public static void register() {
57
		register(registerName, new AnimationTypeFactoryTransparency(), "com.iver.cit.gvsig.animation.AnimationTransparency");
58
	}
59

  
60
	public String getRegisterName() {
61
		return registerName;
62
	}
63

  
64
}
tags/gvsig_topologia-0_1_0-1235/libraries/libAnimationCommon/src/main/java/com/iver/cit/gvsig/animation/animationType/AnimationKeyFrameTransparencyFactory.java
1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
2
*
3
* Copyright (C) 2005 IVER T.I. and Generalitat Valenciana.
4
*
5
* This program is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU General Public License
7
* as published by the Free Software Foundation; either version 2
8
* of the License, or (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
18
*/
19

  
20
package com.iver.cit.gvsig.animation.animationType;
21

  
22
import com.iver.cit.gvsig.animation.AnimationFactory;
23
import com.iver.cit.gvsig.animation.keyFrame.KeyFrameTransparency;
24

  
25
/**
26
 * @author ?ngel Fraile Gri??n  e-mail: angel.fraile@iver.es
27
 * @since 1.1
28
 * 
29
 */
30
public class AnimationKeyFrameTransparencyFactory extends AnimationFactory {
31

  
32
	public static String registerName = "KeyFrameTransparency";
33
	
34
	
35
	/**
36
	 * Creating a new animation in the factory.
37
	 */
38
	public Object create() {
39
		KeyFrameTransparency keyFrameTransparency = new KeyFrameTransparency();
40
        return keyFrameTransparency;
41
	}
42
	
43
	/**
44
	 * Registers in the points of extension the Factory with alias.
45
	 */
46
	public static void register() {
47
		register(registerName, new AnimationKeyFrameTransparencyFactory(), "com.iver.cit.gvsig.animation.KeyFrameTransparency");
48
	}
49

  
50
	public String getRegisterName() {
51
		return registerName;
52
	}
53

  
54
}
tags/gvsig_topologia-0_1_0-1235/libraries/libAnimationCommon/src/main/java/com/iver/cit/gvsig/animation/interpolator/InterpolatorTransparency.java
1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
2
*
3
* Copyright (C) 2005 IVER T.I. and Generalitat Valenciana.
4
*
5
* This program is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU General Public License
7
* as published by the Free Software Foundation; either version 2
8
* of the License, or (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
18
*/
19

  
20
package com.iver.cit.gvsig.animation.interpolator;
21

  
22
import java.util.List;
23

  
24
import com.iver.cit.gvsig.animation.animatedObject.AnimationObjectTransparency;
25
import com.iver.cit.gvsig.animation.keyFrame.KeyFrameTransparency;
26
import com.iver.cit.gvsig.animation.keyframe.IKeyFrame;
27
import com.iver.cit.gvsig.animation.keyframe.interpolator.IInterpolator;
28
import com.iver.cit.gvsig.animation.keyframe.interpolator.IInterpolatorTimeFuntion;
29
import com.iver.cit.gvsig.fmap.layers.FLyrDefault;
30
import com.iver.cit.gvsig.project.documents.view.gui.BaseView;
31
import com.iver.utiles.XMLEntity;
32

  
33

  
34
/**
35
 * @author ?ngel Fraile Gri??n  e-mail: angel.fraile@iver.es
36
 * @since 1.1
37
 * 
38
 */
39
public class InterpolatorTransparency implements IInterpolator {
40

  
41
	public BaseView view;
42
	private String description = "Interpolaci?n basada en Transparencias";
43
	private String name = "InterpolatorTransparency";
44
	
45
	private AnimationObjectTransparency animationObjectTransparency = new AnimationObjectTransparency() ;
46
	
47
	/**
48
	 *  Class to interpolate the transparency of a activated layer.
49
	 */
50
	public IKeyFrame interpolate(List<IKeyFrame> kfList, int index, double time) {
51
		KeyFrameTransparency KF = new KeyFrameTransparency();
52

  
53
		// if the list of keyframes is empty.
54
		if (kfList == null)
55
			return null;
56
		
57
 
58
		switch (kfList.size()) {
59
		// this case when there are only has 2 keyframes
60
		case 2:
61
		
62
			KeyFrameTransparency kf1 = (KeyFrameTransparency) kfList.get(0);
63
			KeyFrameTransparency kf2 = (KeyFrameTransparency) kfList.get(1);
64
			
65
			if (index == 1) {
66
				KeyFrameTransparency kaux = kf1;
67
				kf1 = kf2;
68
				kf2 = kaux;
69
			}
70

  
71
			if ((kf1 == null) ||(kf2 == null))
72
				return null;
73
			//initial transparency level.
74
			double transparencia1 = kf1.getLevelTransparency();
75
			//final transparency level.
76
			double transparencia2 = kf2.getLevelTransparency();
77
			
78
			// Object to animate getting the keyframe.
79
			FLyrDefault fd1 = (FLyrDefault) kf1.getAnimatedObject();
80
			//FLyrDefault fd2 = (FLyrDefault) kf2.getAnimatedObject();
81
			
82
			double time1 = kf1.getTime();//initial time.
83
			double time2 = kf2.getTime();//final time.
84
			double valorTrans = linearInterpolate(transparencia1, transparencia2, time1, time2, time);
85
			
86
			//Creating the keyframe KF to return.
87
				try {
88
					KF.setLevelTransparency((int)valorTrans);
89
					KF.setAnimatedObject(fd1);// keyframe with the layer and the new transparecy to apply.
90
				} catch (Exception e) {
91
					// TODO Auto-generated catch block
92
					e.printStackTrace();
93
				}
94
		}
95
		return KF;
96
	}
97

  
98
	/**
99
	 * Return a value interpolate 
100
	 * 
101
	 * @param minX: initial x value in the 2D extent
102
	 * @param minX2: final x value in the 2D extent
103
	 * @param timePos: initial time value
104
	 * @param timePos2: final time value
105
	 * @param time: total time
106
	 * @return
107
	 */
108
	private double linearInterpolate(double minX, double minX2, double timePos,
109
			double timePos2, double time) {
110
		// P1 + (P2-P1)*((t-t1)/(t2-t1))
111
		return (minX + (minX2 - minX)
112
				* ((time - timePos) / (timePos2 - timePos)));
113
	}
114

  
115
	
116
	public Object getAnimatedObject() {
117
		return this.animationObjectTransparency;
118
	}
119

  
120

  
121
	public void setAnimatedObject(Object object) {
122
		this.animationObjectTransparency = (AnimationObjectTransparency) object;
123
		this.view = (BaseView) animationObjectTransparency.getAnimatedView();
124
	}
125

  
126
	public IInterpolatorTimeFuntion getFuntion() {
127
		return null;
128
	}
129

  
130

  
131
	public void setFuntion(IInterpolatorTimeFuntion arg0) {
132
		// TODO Auto-generated method stub
133
	}
134
	
135
	public String getClassName() {
136
		return this.getClass().getName();
137
	}
138

  
139
	public String getDescription() {
140
		return this.description;
141
	}
142

  
143
	public String getName() {
144
		return this.name;
145
	}
146

  
147
	/*
148
	 * IPersistence methods.
149
	 */
150
	
151
	public XMLEntity getXMLEntity() {
152
		XMLEntity xml = new XMLEntity();	
153
		xml.putProperty("className", this.getClassName());
154
		xml.putProperty("description", this.description);
155
		return xml;
156
	}
157
	
158
	public void setXMLEntity(XMLEntity xml) {
159
		if (xml.contains("description"))
160
			this.description = xml.getStringProperty("description");
161
	}
162

  
163
}
tags/gvsig_topologia-0_1_0-1235/libraries/libAnimationCommon/src/main/java/com/iver/cit/gvsig/animation/keyFrame/KeyFrameTransparency.java
1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
2
*
3
* Copyright (C) 2005 IVER T.I. and Generalitat Valenciana.
4
*
5
* This program is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU General Public License
7
* as published by the Free Software Foundation; either version 2
8
* of the License, or (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
18
*/
19

  
20
package com.iver.cit.gvsig.animation.keyFrame;
21

  
22
import java.util.List;
23

  
24
import com.iver.cit.gvsig.animation.keyframe.IKeyFrame;
25
import com.iver.cit.gvsig.fmap.layers.FLyrDefault;
26
import com.iver.utiles.XMLEntity;
27

  
28

  
29
/**
30
 * @author ?ngel Fraile Gri??n  e-mail: angel.fraile@iver.es
31
 * @since 1.1
32
 * * Class to create a keyframe used in animation with transparency.
33
 */
34

  
35
public class KeyFrameTransparency implements IKeyFrame {
36

  
37
	private String name;
38
	private double time;
39
	private int levelTransparency;
40
	private boolean visibility;
41
	private FLyrDefault layerDefault;
42
	private String layerName;
43
	
44

  
45

  
46
	/**
47
	 * 
48
	 * @see com.iver.cit.gvsig.animation.keyframe.IKeyFrame#CapturesProperties()
49
	 * Capturing the property transparency of the layer and the property is selected?. 
50
	 */
51
	
52
	public void CapturesProperties() {
53
		if (layerDefault != null){
54
			levelTransparency = this.layerDefault.getTransparency();
55
			visibility = this.layerDefault.isVisible();//Check box is selected?.
56
		}
57
	}
58

  
59
	/**
60
	 * Getting the keyframe name.
61
	 */
62
	
63
	public String getName() {
64
		return this.name;
65
	}
66

  
67
	public List<IKeyFrame> getPropertiesList() {
68
		return null;
69
	}
70

  
71
	/**
72
	 * @param name: name of the keyframe.
73
	 * Setting the keyframe name.
74
	 */
75
	
76
	public void setName(String name) {
77
		this.name = name;
78

  
79
	}
80

  
81
	public void setPropertiesList(List<IKeyFrame> list) {
82
		// TODO Auto-generated method stub
83
	}
84

  
85
	/**
86
	 * Information of the keyframe in a String.
87
	 */
88
	
89
	public String toString() {
90
		String result;
91
		result = " keyframeTransparency:\n";
92
		result += " tiempo: " + this.time;
93
		// result= "Name: " + this.getName();
94
		return result;
95
	}
96

  
97
	/**
98
	 * 
99
	 * @return the Object to animate.(FLyrDefault)
100
	 */
101
	
102
	public Object getAnimatedObject() {
103
		return layerDefault;
104
	}
105

  
106
	/**
107
	 * 
108
	 * @param object : Object to animate.
109
	 * Setting the object to animate.(FLyrDefault).
110
	 * 
111
	 */
112
	public void setAnimatedObject(Object object) {
113
		this.layerDefault = (FLyrDefault) object;
114
	}
115

  
116
	/**
117
	 * Getting the time of the keyframe.
118
	 */
119
	
120
	public double getTime() {
121
		return time;
122
	}
123
	
124
	public double getLevelTransparency() {
125
		return levelTransparency;
126
	}
127

  
128
	public void setLevelTransparency(int levelTransparency) {
129
		this.levelTransparency = levelTransparency;
130
	}
131

  
132
	/**
133
	 * Setting the time of the keyframe.
134
	 */
135
	
136
	public void setTime(double time) {
137
		this.time = time;
138
	}
139

  
140
	/**
141
	 * @return the name of the class.
142
	 */
143
	public String getClassName() {
144
		// TODO Auto-generated method stub
145
		return this.getClass().getName();
146
	}
147

  
148
	/*	 
149
	 * IPersistence methods.
150
	 */
151

  
152
	public XMLEntity getXMLEntity() {
153
		
154
		XMLEntity xml = new XMLEntity();
155
		
156
		xml.putProperty("className", this.getClassName());
157
		xml.putProperty("keyFrameName", name);
158
		xml.putProperty("levelTransparency", levelTransparency);
159
		xml.putProperty("visibility", visibility);
160
		xml.putProperty("time", time);
161
		xml.putProperty("layerName", layerDefault.getClass().getName());
162
		
163
		return xml;
164
	}
165

  
166
	public void setXMLEntity(XMLEntity xml) {
167
		
168
	//	if (xml.contains("className"))
169
	//		this.className = xml.getStringProperty("className");
170
		if (xml.contains("keyFrameName"))
171
			this.name = xml.getStringProperty("keyFrameName");
172
		if (xml.contains("levelTransparency"))
173
			this.levelTransparency = xml.getIntProperty("levelTransparency");
174
		if (xml.contains("visibility"))
175
			this.visibility = xml.getBooleanProperty("visibility");
176
		if (xml.contains("time"))
177
			this.time = xml.getDoubleProperty("time");
178
		
179

  
180
		try {
181
			this.layerName = xml.getStringProperty("layerName");
182
			Class<?> classProp = Class.forName(this.layerName);
183
			Object obj = classProp.newInstance();
184
			this.layerDefault = (FLyrDefault) obj;
185
		} catch (Exception e) {
186
			
187
		}
188
	}
189
}
tags/gvsig_topologia-0_1_0-1235/libraries/libAnimationCommon/src/main/java/com/iver/cit/gvsig/animation/keyFrame/AnimationKeyFrameTransparencyFactory.java
1
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
2
*
3
* Copyright (C) 2005 IVER T.I. and Generalitat Valenciana.
4
*
5
* This program is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU General Public License
7
* as published by the Free Software Foundation; either version 2
8
* of the License, or (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
18
*/
19

  
20
package com.iver.cit.gvsig.animation.keyFrame;
21

  
22
import com.iver.cit.gvsig.animation.AnimationFactory;
23

  
24
/**
25
 * @author ?ngel Fraile Gri??n  e-mail: angel.fraile@iver.es
26
 * @since 1.1
27
 * 
28
 */
29
public class AnimationKeyFrameTransparencyFactory extends AnimationFactory {
30

  
31
	public static String registerName = "KeyFrameTransparency";
32
	
33
	
34
	/**
35
	 * Creating a new animation in the factory.
36
	 */
37
	public Object create() {
38
		KeyFrameTransparency keyFrameTransparency = new KeyFrameTransparency();
39
        return keyFrameTransparency;
40
	}
41
	
42
	/**
43
	 * Registers in the points of extension the Factory with an alias.
44
	 */
45
	public static void register() {
46
		register(registerName, new AnimationKeyFrameTransparencyFactory(), "com.iver.cit.gvsig.animation.KeyFrameTransparency");
47
	}
48

  
49
	public String getRegisterName() {
50
		return registerName;
51
	}
52

  
53
}
tags/gvsig_topologia-0_1_0-1235/libraries/libAnimationCommon/pom.xml
1
<project xmlns="http://maven.apache.org/POM/4.0.0"
2
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4
	<modelVersion>4.0.0</modelVersion>
5
	<groupId>org.gvsig</groupId>
6
	<artifactId>libAnimationCommon</artifactId>
7
	<packaging>jar</packaging>
8
	<version>1.0-SNAPSHOT</version>
9
	<name>libAnimationCommon</name>
10
	<url>http://maven.apache.org</url>
11
	<parent>
12
		<groupId>org.gvsig</groupId>
13
		<artifactId>gvsig-library-base-pom</artifactId>
14
		<version>1.9-SNAPSHOT</version>
15
	</parent>
16
    <properties>
17
        <build-dir>${basedir}/../build</build-dir>
18
    </properties>
19
	<dependencies>
20
		<dependency>
21
			<groupId>org.gvsig</groupId>
22
			<artifactId>lib3DMap</artifactId>
23
			<version>1.0-SNAPSHOT</version>
24
		</dependency>
25
		<dependency>
26
			<groupId>org.gvsig</groupId>
27
			<artifactId>lib3DMap-share</artifactId>
28
			<version>1.0-SNAPSHOT</version>
29
		</dependency>
30
		<dependency>
31
			<groupId>org.gvsig</groupId>
32
			<artifactId>libAnimation</artifactId>
33
			<version>1.0-SNAPSHOT</version>
34
		</dependency>
35
		<dependency>
36
			<groupId>org.gvsig</groupId>
37
			<artifactId>appgvSIG</artifactId>
38
			<version>1.9-SNAPSHOT</version>
39
		</dependency>
40
	</dependencies>
41
</project>
0 42

  
tags/gvsig_topologia-0_1_0-1235/libraries/libGPE-GML/testdata/GMLNomenclatorIdee.xsd
1
<?xml version="1.0" encoding="ISO-8859-1"?><schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:gml="http://www.opengis.net/gml" xmlns:mne="http://www.idee.es/mne" xmlns:wfs="http://www.opengis.net/wfs" xmlns:xlink="http://www.w3.org/1999/xlink" targetNamespace="http://www.idee.es/mne" version="1.2.0">
2
	<annotation>
3
		<appinfo>mne.xsd v1.2.0 2006-11</appinfo>
4
		<documentation xml:lang="es">
5
			Especificaci?n del modelo de intercambio en GML del Modelo
6
			de Nomencl?tor de Espa?a v 1.2
7
		</documentation>
8
	</annotation>
9
	<import namespace="http://www.opengis.net/gml" schemaLocation="http://10.13.87.19:80/wfs/IDEE-WFS-Nomenclator/schemas/feature.xsd"/>
10
	<import namespace="http://www.w3.org/1999/xlink" schemaLocation="http://10.13.87.19:80/wfs/IDEE-WFS-Nomenclator/schemas/xlinks.xsd"/>
11
	<!-- ==============================================================
12
		declaraciones de elementos globales
13
		=================================================================== -->
14
	<element name="ResultCollection" substitutionGroup="gml:_FeatureCollection" type="mne:ResultCollectionType"/>
15
	<element name="Entidad" substitutionGroup="gml:_Feature" type="mne:EntidadFeatureType">
16
		<annotation>
17
			<documentation xml:lang="es">
18
				Cada entidad de un Nomencl?tor debe tener su propio
19
				identificador. Para ello se utiliza el atributo fid
20
				heredado de gml:_Feature.
21
			</documentation>
22
		</annotation>
23
	</element>
24

  
25
	<!-- ==============================================================
26
		declaraci?n de propiedades adicionales
27
		[GML 2.1.2 Implementation Specification 5.2.1 Defining new feature types]
28
		EntidadFeatureType
29
		=================================================================== -->
30

  
31
	<!-- ==============================================================
32
		definici?n de tipos de features
33
		EntidadFeatureType
34
		=================================================================== -->
35
	<complexType name="ResultCollectionType">
36
		<complexContent>
37
			<extension base="gml:AbstractFeatureCollectionType"/>
38
		</complexContent>
39
	</complexType>
40
	<complexType name="EntidadFeatureType">
41
		<annotation>
42
			<documentation xml:lang="es">
43
				Cada una de las entradas que se realicen en el MNE
44
				coresponder? a una entidad geogr?fica, entendiendo como
45
				tal, un fen?meno del mundo real que tiene asociada una
46
				localizaci?n ligada a la Tierra. Ejemplos de instancias
47
				de entidades geogr?ficas ser?an el rio Ebro, el puerto
48
				de M?laga, Los Pirineos, o una direcci?n postal. Cada
49
				entidad en un nomencl?tor debe tener su propio
50
				identificador (IdEntidad). El responsable del
51
				nomencl?tor ser? el encargado de asignar los
52
				identificadores, que ser?n ?nicos en el ?mbito del
53
				nomencl?tor. En esta implementaci?n, el atributo fid
54
				representa este identificador.
55
			</documentation>
56
		</annotation>
57
		<complexContent>
58
			<extension base="gml:AbstractFeatureType">
59
				<sequence maxOccurs="1" minOccurs="1">
60
					<element maxOccurs="unbounded" name="nombreEntidad" type="mne:NombreEntidadType">
61
						<annotation>
62
							<documentation xml:lang="es">
63
								Cada uno de los nombre de la entidad.
64
							</documentation>
65
						</annotation>
66
					</element>
67
					<element maxOccurs="unbounded" minOccurs="1" name="tipoEntidad" type="mne:TipoEntidadType">
68
						<annotation>
69
							<documentation xml:lang="es">
70
								Los tipos, clases o categor?as de la
71
								entidad.
72
							</documentation>
73
						</annotation>
74
					</element>
75
					<element maxOccurs="unbounded" minOccurs="1" name="posicionEspacial" type="mne:PosicionEspacialType">
76
						<annotation>
77
							<documentation xml:lang="es">
78
								Una entidad puede georrefereciarse
79
								mediante un punto, una l?nea, una
80
								superficie o mediante un m?nimo
81
								rect?ngulo envolvente (bounding box). Al
82
								menos se recomienda georreferenciar un
83
								top?nimo por medio de un punto.
84
							</documentation>
85
						</annotation>
86
					</element>
87
					<element maxOccurs="unbounded" minOccurs="1" name="entidadLocal" type="mne:EntidadLocalType">
88
						<annotation>
89
							<documentation xml:lang="es">
90
								Se especifica la ubicaci?n geogr?fica de
91
								la entidad. S?lo se utilizan entidades
92
								registradas en el Registro de Entidades
93
								Locales del MAP y en cada uno de estos
94
								campos se deber?a utilizar el c?digo de
95
								la entidad Local (INE) para
96
								identificarla. Este tipo puede ser
97
								extendido si se desea incorporar las
98
								Comunidades Aut?nomas, o cualquier otro
99
								tipo de entidad territoria.
100
							</documentation>
101
						</annotation>
102
					</element>
103
					<element maxOccurs="unbounded" minOccurs="0" name="codificacion" type="mne:CodificacionType">
104
						<annotation>
105
							<documentation xml:lang="es">
106
								El c?digo identifica a la entidad, un
107
								rio, un municipio, etc. Es una
108
								descripci?n alfanum?rica de la entidad,
109
								pero este campo no se utiliza para
110
								describir las entidades por las que
111
								transcurre la entidad, como es en el
112
								caso de los campos Mapa o EntidadLocal.
113
							</documentation>
114
						</annotation>
115
					</element>
116
					<element maxOccurs="unbounded" minOccurs="0" name="mapa" type="mne:MapaType">
117
						<annotation>
118
							<documentation xml:lang="es">
119
								Nombre de la Serie cartogr?fica y Hojas
120
								que contienen a la entidad.
121
							</documentation>
122
						</annotation>
123
					</element>
124
					<element maxOccurs="1" minOccurs="0" name="nivel" type="mne:NivelType">
125
						<annotation>
126
							<documentation xml:lang="es">
127
								Valor num?rico asignado a un subconjunto
128
								de top?nimos dentro de un nomencl?tor
129
								para ordenarlos seg?n una gradaci?n de
130
								resoluciones. Si todos los top?nimos de
131
								un nomencl?tor han sido extraidos de un
132
								mismo mapa o corresponden a una misma
133
								resoluci?n tendr?n el mismo nivel.
134
							</documentation>
135
						</annotation>
136
					</element>
137
					<element maxOccurs="unbounded" minOccurs="0" name="direccion" type="mne:DireccionType">
138
						<annotation>
139
							<documentation xml:lang="es">
140
								Direcci?n f?sica donde se ubica la
141
								entidad.
142
							</documentation>
143
						</annotation>
144
					</element>
145
					<element maxOccurs="unbounded" minOccurs="0" name="entidadRelacionada" type="mne:EntidadRelacionadaType">
146
						<annotation>
147
							<documentation xml:lang="es">
148
								Relaci?n expl?cita con otra entidad que
149
								se se encuentra en el modelo
150
							</documentation>
151
						</annotation>
152
					</element>
153
					<element maxOccurs="unbounded" minOccurs="0" name="atributoEntidad" type="mne:AtributoEntidadType">
154
						<annotation>
155
							<documentation xml:lang="es">
156
								Permite itnroducir otros datos
157
								relacionados con la entidad como son el
158
								n?mero de habitantes, el tipo de
159
								poblaci?n o la altitud.
160
							</documentation>
161
						</annotation>
162
					</element>
163
					<element maxOccurs="unbounded" minOccurs="0" name="evento" type="mne:EventoType">
164
						<annotation>
165
							<documentation xml:lang="es">
166
								Deja constancia de los eventos o sucesos
167
								ocurridos a nivel f?sico en el conjunto
168
								de datos y relacionados con la entrada
169
								correspondiente.
170
							</documentation>
171
						</annotation>
172
					</element>
173

  
174
					<element maxOccurs="1" minOccurs="0" name="observaciones" type="string">
175
						<annotation>
176
							<documentation xml:lang="es">
177
								Observaciones sobre la entidad
178
							</documentation>
179
						</annotation>
180
					</element>
181
				</sequence>
182
			</extension>
183
		</complexContent>
184
	</complexType>
185

  
186
	<!-- ==============================================================
187
		definici�n de tipos complejos
188
		NombreEntidadType
189
		TipoEntidadType
190
		SistemaCodificacionType
191
		EntidadLocalType
192
		ProvinciaType
193
		MunicipioType
194
		=================================================================== -->
195
	<complexType name="NombreEntidadType">
196
		<annotation>
197
			<documentation xml:lang="es">
198
				Cada uno de los nombre de la entidad.
199
			</documentation>
200
		</annotation>
201
		<sequence maxOccurs="1" minOccurs="1">
202
			<element maxOccurs="1" minOccurs="1" name="nombre" type="string">
203
				<annotation>
204
					<documentation xml:lang="es">
205
						Nombre de la entidad, el top?nimo. Se recomienda
206
						no utlizar abreviaturas, pero si se utilizan se
207
						aconseja describir el significado de estas.
208
					</documentation>
209
				</annotation>
210
			</element>
211
			<element maxOccurs="1" minOccurs="0" name="etimologia" type="string">
212
				<annotation>
213
					<documentation xml:lang="es">
214
						La etimolog?a del nombre es el origen de las
215
						palabras, de su significaci?n y de su forma.
216
					</documentation>
217
				</annotation>
218
			</element>
219
			<element maxOccurs="1" minOccurs="0" name="pronunciacion" type="string">
220
				<annotation>
221
					<documentation xml:lang="es">
222
						Representaci?n fon?tica del nombre
223
						(transcripci?n), seg?n el Alfabeto Fon?tico
224
						Internacional, AFI. Si se uitliza un sistema
225
						gr?fico indicar cu?l se utiliza en la
226
						descripci?n.
227
					</documentation>
228
				</annotation>
229
			</element>
230
			<element maxOccurs="1" minOccurs="1" name="idioma" type="mne:IdiomaType">
231
				<annotation>
232
					<documentation xml:lang="es">
233
						El idioma del nombre de la entidad en funci?n
234
						del c?digo dado por la norma ISO639-2
235
					</documentation>
236
				</annotation>
237
			</element>
238
			<element maxOccurs="1" minOccurs="1" name="claseNombre" type="mne:ClaseNombreType">
239
				<annotation>
240
					<documentation xml:lang="es">
241
						El nombre de la entidad puede tener diferentes
242
						apreciaciones, aunque Lleida y L?rida hacen
243
						referencia a la misma entidad, el segundo se
244
						refiere al nombre anterior, mientras que el
245
						primero al preferente, de esta manera en este
246
						campo se distingue todas las diferentes
247
						apreciaciones de tratamiento que puede tener el
248
						nombre de una entidad.
249
					</documentation>
250
				</annotation>
251
			</element>
252
			<element maxOccurs="1" minOccurs="1" name="estatus" type="mne:EstatusType">
253
				<annotation>
254
					<documentation xml:lang="es">
255
						Si el top?nimo es ofical, normalizado o ninguna
256
						de las dos cosas. Desde la versi?n 1.2 sustituye
257
						a "oficial" y "normalizado".
258
					</documentation>
259
				</annotation>
260
			</element>
261

  
262
			<element maxOccurs="1" minOccurs="1" name="fuente" type="string">
263
				<annotation>
264
					<documentation xml:lang="es">
265
						Identificador de la fuente de la que se ha
266
						obtenido el top?nimo. Si se ha utilizado Dublin
267
						Core Metadata Element Set para catalogarla este
268
						campo debe corresponder con el campo identifier.
269
					</documentation>
270
				</annotation>
271
			</element>
272
		</sequence>
273
	</complexType>
274
	<complexType name="TipoEntidadType">
275
		<annotation>
276
			<documentation xml:lang="es">
277
				Los tipos, clases o categor?as de la entidad.
278
			</documentation>
279
		</annotation>
280
		<sequence maxOccurs="1" minOccurs="1">
281
			<element maxOccurs="1" minOccurs="1" name="tipo" type="string">
282
				<annotation>
283
					<documentation xml:lang="es">
284
						El tipo o clase de la entidad (r?o, cordillera,
285
						municipio, etc.)
286
					</documentation>
287
				</annotation>
288
			</element>
289
			<element maxOccurs="1" minOccurs="1" name="catalogoEntidades" type="string">
290
				<annotation>
291
					<documentation xml:lang="es">
292
						El cat?logo de entidades en el que se clasifican
293
						jer?rquicamente los tipos de las entidades
294
						utilizados en el nomencl?tor. Se recomienda dar
295
						la URL de un cat?logo accesible en red.
296
					</documentation>
297
				</annotation>
298
			</element>
299
		</sequence>
300
	</complexType>
301
	<complexType name="EntidadLocalType">
302
		<annotation>
303
			<documentation xml:lang="es">
304
				Se especifica la ubicaci?n geogr?fica de la entidad.
305
				S?lo se utilizan entidades registradas en el Registro de
306
				Entidades Locales del MAP y en cada uno de estos campos
307
				se deber?a utilizar el c?digo de la entidad Local (INE)
308
				para identificarla. Este tipo puede ser extendido si se
309
				desea incorporar las Comunidades Aut?nomas, o cualquier
310
				otro tipo de entidad territoria.
311
			</documentation>
312
		</annotation>
313
		<choice maxOccurs="1" minOccurs="1">
314
			<element maxOccurs="unbounded" minOccurs="1" name="provincia" type="string">
315
				<annotation>
316
					<documentation xml:lang="es">
317
						La provincia o provincias donde se encuentra la
318
						entidad, dando como m?nimo la provincia donde se
319
						encuentra el punto que sirve de referencia
320
						geogr?fica de la entidad. En el caso de que sean
321
						varios puntos (entidades lineales, superficiales
322
						o puntuales como Picos situados en el l?mite
323
						entre dos o m?s unidades administrativas), se
324
						puede especificar una de las provicias, varias o
325
						todas. Si no se puede asignar ninguna provincia,
326
						se deber? utilizar el valor "no aplica", al ser
327
						este un campo obligatorio.
328
					</documentation>
329
				</annotation>
330
			</element>
331
			<element maxOccurs="unbounded" minOccurs="0" name="municipio" type="string">
332
				<annotation>
333
					<documentation xml:lang="es">
334
						El municipio o municipios de la entidad. En caso
335
						de utilizar un nombre geogr?fico hay que
336
						completarlo con el nombre de la entidad local
337
						que lo contiene siguiendo el patr?n "nombre de
338
						municipio(nombre de provincia)"
339
					</documentation>
340
				</annotation>
341
			</element>
342
			<element maxOccurs="unbounded" minOccurs="0" name="comarca" type="string">
343
				<annotation>
344
					<documentation xml:lang="es">
345
						La comarca o comarcas administrativas. En caso
346
						de utilizar un nombre geogr?fico hay que
347
						completarlo con el nombre de la entidad local
348
						que lo contiene siguiendo el patr?n "nombre de
349
						comarca(nombre de comunidad aut?noma)"
350
					</documentation>
351
				</annotation>
352
			</element>
353
			<element maxOccurs="unbounded" minOccurs="0" name="isla" type="string">
354
				<annotation>
355
					<documentation xml:lang="es">
356
						La isla o islas de la entidad. En caso de
357
						utilizar un nombre geogr?fico hay que
358
						completarlo con el nombre de la entidad local
359
						que lo contiene siguiendo el patr?n "nombre de
360
						isla(nombre de provincia)"
361

  
362
					</documentation>
363
				</annotation>
364
			</element>
365
			<element maxOccurs="unbounded" minOccurs="0" name="EATIM" type="mne:EATIMType">
366
				<annotation>
367
					<documentation xml:lang="es">
368
						Las Entidades de ?mbito Territorial Inferior al
369
						Municipio (EATIM). En caso de utilizar un nombre
370
						geogr?fico hay que completarlo con el nombre de
371
						la entidad local que lo contiene siguiendo el
372
						patr?n "nombre de EATIM(nombre de Municipio,
373
						nombre de Provincia)"
374
					</documentation>
375
				</annotation>
376
			</element>
377
		</choice>
378
	</complexType>
379
	<complexType name="CodificacionType">
380
		<annotation>
381
			<documentation xml:lang="es">
382
				El c?digo identifica a la entidad, un rio, un municipio,
383
				etc. Es una descripci?n alfanum?rica de la entidad, pero
384
				este campo no se utiliza para describir las entidades
385
				por las que transcurre la entidad, como es en el caso de
386
				los campos Mapa o EntidadLocal.
387
			</documentation>
388
		</annotation>
389
		<sequence maxOccurs="1" minOccurs="1">
390
			<element maxOccurs="1" minOccurs="1" name="codigo" type="string">
391
				<annotation>
392
					<documentation xml:lang="es">
393
						Clasifica la entidad de acuerdo con el Sistema
394
						de Codificaci?n empleado (si fuese el c?digo
395
						postal, por ejemplo, ser?a un n?mero con 5
396
						d?gitos).
397
					</documentation>
398
				</annotation>
399
			</element>
400
			<element maxOccurs="1" minOccurs="1" name="sistemaCodificacion" type="string">
401
				<annotation>
402
					<documentation xml:lang="es">
403
						Define el sistema al que est? referido el c?digo
404
						(por ejemplo, el c?digo postal, el c?digo de una
405
						base cartogr?fica num?rica, etc.). Ejemplos de
406
						sistema de codificaci?n pueden ser C?digo INE,
407
						C?digo Postal, Registro de Entidades Locales y
408
						C?digos de r?os del CEDEX.
409
					</documentation>
410
				</annotation>
411
			</element>
412
		</sequence>
413
	</complexType>
414
	<complexType name="EATIMType">
415
		<sequence>
416
			<element maxOccurs="1" minOccurs="1" name="nombre" type="string">
417
				<annotation>
418
					<documentation xml:lang="es">
419
						Se indica el nombre de la EATIM. En esta
420
						implementaci?n corresponde con "nombreEATIM".
421
					</documentation>
422
				</annotation>
423
			</element>
424
			<element maxOccurs="1" minOccurs="1" name="tipo" type="string">
425
				<annotation>
426
					<documentation xml:lang="es">
427
						Se indica el tipo de la EATIM, pudiendo ser
428
						caser?os, parroquias, aldeas, barrios,
429
						anteiglesias, concejo, pedan?as, lugares anejos,
430
						etc. En esta implementaci?n corresponde con
431
						"tipoEATIM".
432
					</documentation>
433
				</annotation>
434
			</element>
435
		</sequence>
436
	</complexType>
437
	<complexType name="MapaType">
438
		<annotation>
439
			<documentation xml:lang="es">
440
				Nombre de la Serie cartogr?fica y Hojas que contienen a
441
				la entidad.
442
			</documentation>
443
		</annotation>
444
		<sequence maxOccurs="1" minOccurs="1">
445
			<element maxOccurs="1" minOccurs="1" name="serie" type="string">
446
				<annotation>
447
					<documentation xml:lang="es">
448
						Nombre de la Serie cartogr?fica.
449
					</documentation>
450
				</annotation>
451
			</element>
452
			<element maxOccurs="unbounded" minOccurs="1" name="hoja" type="string">
453
				<annotation>
454
					<documentation xml:lang="es">
455
						N?mero/s de la/s Hoja/s del mapa correspondiente
456
						a la serie se?alada, en el que se encuentra el o
457
						los punto/s que sirve como referencia geom?trica
458
						del top?nimo. Desde la versi?n 1.2 dentro de una
459
						Serie cartogr?fica puede darse m?s de una Hoja.
460
					</documentation>
461
				</annotation>
462
			</element>
463
		</sequence>
464
	</complexType>
465
	<complexType name="DireccionType">
466
		<annotation>
467
			<documentation xml:lang="es">
468
				Direcci?n f?sica donde se ubica la entidad.
469
			</documentation>
470
		</annotation>
471
		<sequence maxOccurs="1" minOccurs="1">
472
			<element maxOccurs="1" minOccurs="1" name="direccionPostal" type="string">
473
				<annotation>
474
					<documentation xml:lang="es">
475
						Direcci?n f?sica donde se ubica la entidad. Por
476
						ejemplo, puede ser el nombre de una calle y el
477
						n?mero o el nombre de una carretera y un punto
478
						kilom?trico. En los casos de los callejeros, la
479
						direcci?n postal es en si misma una Entidad, por
480
						lo que en ese caso debe utilizar el
481
						NombreEntidad para definir la direcci?n postal
482
						como entidad y a su ver para recoger el vial de
483
						la direcci?n postal se utilizar? el campo
484
						Direcci?n.
485
					</documentation>
486
				</annotation>
487
			</element>
488
			<element maxOccurs="1" minOccurs="0" name="localidad" type="string">
489
				<annotation>
490
					<documentation xml:lang="es">
491
						La Localidad donde se ubica la direcci?n de la
492
						entidad.
493
					</documentation>
494
				</annotation>
495
			</element>
496
			<element maxOccurs="1" minOccurs="0" name="codigoPostal" type="string">
497
				<annotation>
498
					<documentation xml:lang="es">
499
						El n?mero del C?digo Postal donde se ubica la
500
						entidad. No confundir el el que puede aparecer
501
						en el campo Codificaci?n que identifica la
502
						entidad.
503
					</documentation>
504
				</annotation>
505
			</element>
506
		</sequence>
507
	</complexType>
508
	<complexType name="EntidadRelacionadaType">
509
		<annotation>
510
			<documentation xml:lang="es">
511
				Relaci?n expl?cita con otra entidad que se se encuentra
512
				en el modelo
513
			</documentation>
514
		</annotation>
515
		<sequence maxOccurs="1" minOccurs="1">
516
			<element maxOccurs="1" minOccurs="1" name="idEntidad" type="NCName">
517
				<annotation>
518
					<documentation xml:lang="es">
519
						El identificador de la entidad con la que se va
520
						a relacionar la entidad que se est?
521
						introduciendo en el modelo.
522
					</documentation>
523
				</annotation>
524
			</element>
525
			<element maxOccurs="1" minOccurs="1" name="descripcionRelacion" type="string">
526
				<annotation>
527
					<documentation xml:lang="es">
528
						Se describe la relaci?n que existe entre ambas
529
						entidades.
530
					</documentation>
531
				</annotation>
532
			</element>
533
			<element maxOccurs="1" minOccurs="1" name="tipoRelacion" type="mne:RelacionType">
534
				<annotation>
535
					<documentation xml:lang="es">
536
						Se establece el tipo de relaci?n que existe
537
						entre las entidades.
538
					</documentation>
539
				</annotation>
540
			</element>
541
		</sequence>
542
	</complexType>
543
	<complexType name="AtributoEntidadType">
544
		<annotation>
545
			<documentation xml:lang="es">
546
				Permite introducir otros datos relacionados con la
547
				entidad como son el n?mero de habitantes, el tipo de
548
				poblaci?n o la altitud.
549
			</documentation>
550
		</annotation>
551
		<sequence maxOccurs="1" minOccurs="1">
552
			<element maxOccurs="1" minOccurs="1" name="tipoAtributo" type="string">
553
				<annotation>
554
					<documentation xml:lang="es">
555
						Hace referencia al tipo de dato que se quiere
556
						documentar (p.e. la altitud).
557
					</documentation>
558
				</annotation>
559
			</element>
560
			<element maxOccurs="1" minOccurs="1" name="valorAtributo" type="string">
561
				<annotation>
562
					<documentation xml:lang="es">
563
						Se refiere al valor del atributo (p.e. 580 si la
564
						altitud es 580 metros)
565
					</documentation>
566
				</annotation>
567
			</element>
568
			<element maxOccurs="1" minOccurs="1" name="unidadAtributo" type="string">
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff