Statistics
| Revision:

svn-gvsig-desktop / branches / v10 / libraries / libLidar / src / com / dielmo / gvsig / lidar / LidarPoint.java @ 23189

History | View | Annotate | Download (1.84 KB)

1
/*******************************************************************************
2
LidarPoint.java
3
Copyright (C) 2008 by DIELMO 3D S.L.
4

5
This program is free software; you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation; either version 2 of the License, or
8
(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.dielmo.gvsig.lidar;
21

    
22
import java.awt.geom.Point2D;
23
import java.nio.ByteBuffer;
24

    
25
import com.iver.utiles.bigfile.BigByteBuffer2;
26
import com.iver.cit.gvsig.fmap.drivers.FieldDescription;
27
import com.hardcode.gdbms.engine.values.Value;
28

    
29
/**
30
 * Interface Lidar point
31
 * 
32
 * @author Oscar Garcia
33
 */
34
public interface LidarPoint {
35
        
36
        public Point2D.Double readPoint2D(BigByteBuffer2 bb, LidarHeader hdr, long index) throws UnexpectedPointException;
37
        public Value getField(BigByteBuffer2 bb, String nameField, LidarHeader hdr, long index) throws UnexpectedPointException;
38
        public FieldDescription[] getFieldDescription();
39
        public int getFieldType(int i);
40
        
41
        /**
42
         * Set Point from a row
43
         * 
44
         * @param row, row to set
45
         * @param hdr, LidarHeader of origin file.
46
         */
47
        public void setPoint(Value[] row, LidarHeader hdr);
48
        
49
        /**
50
         * Write point in ByteBuffer 
51
         * 
52
         * @param bb buffer.
53
         */
54
        public void WritePoint(ByteBuffer bb);
55
}