Statistics
| Revision:

gvsig-raster / org.gvsig.raster.gdal / trunk / org.gvsig.raster.gdal / org.gvsig.raster.gdal.jni / src / main / java / org / gvsig / jogr / OGRCurve.java @ 2453

History | View | Annotate | Download (2.26 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
package org.gvsig.jogr;
24

    
25

    
26
/** 
27
 * Esta clase representa a una fuente de datos
28
 * 
29
 * @author Nacho Brodin <brodin_ign@gva.es>.<BR> Equipo de desarrollo gvSIG.<BR> http://www.gvsig.gva.es
30
 * @version 0.0
31
 * @link http://www.gvsig.gva.es
32
 */
33

    
34
public class OGRCurve extends JNIBase{
35
        
36
        private native double getLengthNat( long cPtr );
37
        private native void startPointNat( long cPtr, OGRPoint point);
38
        private native void endPointNat( long cPtr, OGRPoint point);
39
        private native int  getIsClosedNat( long cPtr );
40
        private native void valueNat( long cPtr,  double d, OGRPoint point );
41
        private native void FreeOGRCurveNat(long cPtr);
42
                
43
        /**
44
         * Constructor
45
         * @param cPtr        direcci?n de memoria al objeto OGRCurve de C. 
46
         */
47
                
48
        public OGRCurve(long cPtr){
49
                this.cPtr=cPtr;
50
        }                
51
                
52
        /**
53
         * Destructor 
54
         */
55
        
56
        protected void finalize() throws OGRFailureException{
57
                if((cPtr == 0) || (cPtr == -1))
58
                        throw new OGRFailureException("Fallo al acceder al dato.");
59
                
60
                FreeOGRCurveNat(cPtr);
61
        }
62
         
63
        /**
64
         * 
65
         */
66
        
67
        public double getLength()throws OGRException{
68
                return 0;
69
        }
70
        
71
        /**
72
         * 
73
         */
74
        
75
        public void startPoint(OGRPoint point)throws OGRException{
76
                
77
        }
78
        
79
        /**
80
         * 
81
         */
82
        
83
        public void endPoint(OGRPoint point)throws OGRException{
84
                
85
        }
86
        
87
        /**
88
         * 
89
         */
90
        
91
        public int  getIsClosed()throws OGRException{
92
                return 0;
93
        }
94
        
95
        /**
96
         * 
97
         */
98
        
99
        public void value( double d, OGRPoint point )throws OGRException{
100
                
101
        }
102
        
103
        
104
        
105
        
106
}