Statistics
| Revision:

root / branches / v2_0_0_prep / libraries / libFMap_geometries / src / org / gvsig / fmap / geom / primitive / impl / Envelope3D.java @ 35742

History | View | Annotate | Download (2.44 KB)

1
/* gvSIG. Geographic Information System of the Valencian Government
2
*
3
* Copyright (C) 2007-2008 Infrastructures and Transports Department
4
* of the Valencian Government (CIT)
5
* 
6
* This program is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU General Public License
8
* as published by the Free Software Foundation; either version 2
9
* of the License, or (at your option) any later version.
10
* 
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
* GNU General Public License for more details.
15
* 
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
19
* MA  02110-1301, USA.
20
* 
21
*/
22

    
23
/*
24
* AUTHORS (In addition to CIT):
25
* 2009 {Iver T.I.}   {Task}
26
*/
27
 
28
package org.gvsig.fmap.geom.primitive.impl;
29

    
30
import org.cresques.cts.ICoordTrans;
31
import org.gvsig.fmap.geom.primitive.Envelope;
32
import org.gvsig.fmap.geom.primitive.Point;
33
import org.gvsig.tools.ToolsLocator;
34
import org.gvsig.tools.dynobject.DynStruct;
35
import org.gvsig.tools.lang.Cloneable;
36
import org.gvsig.tools.persistence.PersistenceManager;
37

    
38
/**
39
 * @author <a href="mailto:jpiera@gvsig.org">Jorge Piera</a>
40
 */
41
public class Envelope3D extends DefaultEnvelope implements Cloneable{
42
        public static final String PERSISTENCE_DEFINITION_NAME = "Envelope3Dimensions";
43
        
44
        public Envelope3D() {
45
                super();                
46
        }
47

    
48
        public Envelope3D(Point min, Point max) {
49
                super(min, max);
50
        }
51
        
52
        /* (non-Javadoc)
53
         * @see org.gvsig.fmap.geom.primitive.Envelope#getDimension()
54
         */
55
        public int getDimension() {
56
                return 3;
57
        }
58
        
59
        /*
60
         * (non-Javadoc)
61
         * @see org.gvsig.fmap.geom.primitive.Envelope#convert(org.cresques.cts.ICoordTrans)
62
         */
63
        public Envelope convert(ICoordTrans trans) {
64
                return null;
65
        }
66
        
67
        public static void registerPersistent() {
68
                PersistenceManager manager = ToolsLocator.getPersistenceManager();
69
                if( manager.getDefinition(PERSISTENCE_DEFINITION_NAME)==null ) {
70
                        DynStruct definition = manager.addDefinition(
71
                                        Envelope3D.class,
72
                                        PERSISTENCE_DEFINITION_NAME,
73
                                        "Envelope3D persistence definition",
74
                                        null, 
75
                                        null
76
                        ); 
77
                        
78
                        definition.extend(manager.getDefinition(DefaultEnvelope.PERSISTENCE_DEFINITION_NAME));        
79
                }
80
        }
81

    
82
        public Object clone() throws CloneNotSupportedException {
83
            return super.clone();
84
        }
85
}
86