Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.geometry / org.gvsig.fmap.geometry.impl / src / main / java / org / gvsig / fmap / geom / primitive / impl / Envelope3D.java @ 40767

History | View | Annotate | Download (2.44 KB)

1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2013 gvSIG Association.
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 3
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
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24
 
25
package org.gvsig.fmap.geom.primitive.impl;
26

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

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

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

    
79
        public Object clone() throws CloneNotSupportedException {
80
            return super.clone();
81
        }
82
}
83