lasreader_qfit.hpp
Go to the documentation of this file.
1 /*
2 ===============================================================================
3 
4  FILE: lasreader_qfit.hpp
5 
6  CONTENTS:
7 
8  Reads LIDAR from NASA's ATM QFIT format via on-the-fly conversion to LAS.
9 
10  Format description: http://nsidc.org/data/docs/daac/icebridge/ilatm1b/docs/ReadMe.qfit.txt
11 
12  PROGRAMMERS:
13 
14  martin.isenburg@gmail.com
15 
16  COPYRIGHT:
17 
18  (c) 2007-2011, Martin Isenburg, LASSO - tools to catch reality
19 
20  This is free software; you can redistribute and/or modify it under the
21  terms of the GNU Lesser General Licence as published by the Free Software
22  Foundation. See the COPYING file for more information.
23 
24  This software is distributed WITHOUT ANY WARRANTY and without even the
25  implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
26 
27  CHANGE HISTORY:
28 
29  22 December 2011 -- created after my banker keeps me hostage for 2.5 hours
30 
31 ===============================================================================
32 */
33 #ifndef LAS_READER_QFIT_HPP
34 #define LAS_READER_QFIT_HPP
35 
36 #include "lasreader.hpp"
37 
38 #include <stdio.h>
39 
40 class LASreaderQFIT : public LASreader
41 {
42 public:
43 
44  BOOL open(const char* file_name);
45 
46  I32 get_format() const { return LAS_TOOLS_FORMAT_QFIT; };
47 
48  BOOL seek(const I64 p_index);
49 
50  ByteStreamIn* get_stream() const;
51  void close(BOOL close_stream=TRUE);
52  BOOL reopen(const char* file_name);
53 
54  LASreaderQFIT();
55  virtual ~LASreaderQFIT();
56 
57 protected:
58  virtual BOOL open(ByteStreamIn* stream);
60 
61 private:
62  FILE* file;
68  I32 buffer[14];
74 };
75 
76 class LASreaderQFITrescale : public virtual LASreaderQFIT
77 {
78 public:
79  virtual BOOL open(ByteStreamIn* stream);
80  LASreaderQFITrescale(F64 x_scale_factor, F64 y_scale_factor, F64 z_scale_factor);
81 
82 protected:
83  F64 scale_factor[3];
84 };
85 
86 class LASreaderQFITreoffset : public virtual LASreaderQFIT
87 {
88 public:
89  virtual BOOL open(ByteStreamIn* stream);
90  LASreaderQFITreoffset(F64 x_offset, F64 y_offset, F64 z_offset);
91 protected:
92  F64 offset[3];
93 };
94 
96 {
97 public:
99  LASreaderQFITrescalereoffset(F64 x_scale_factor, F64 y_scale_factor, F64 z_scale_factor, F64 x_offset, F64 y_offset, F64 z_offset);
100 };
101 
102 #endif
int BOOL
Definition: mydefs.hpp:57
void close(BOOL close_stream=TRUE)
virtual ~LASreaderQFIT()
ByteStreamIn * stream
long long I64
Definition: mydefs.hpp:48
I32 pulse_width_array_offset
BOOL read_point_default()
ByteStreamIn * get_stream() const
I32 get_format() const
I32 scan_azimuth_array_offset
int I32
Definition: mydefs.hpp:35
BOOL seek(const I64 p_index)
#define LAS_TOOLS_FORMAT_QFIT
#define TRUE
Definition: mydefs.hpp:137
BOOL open(const char *file_name)
BOOL reopen(const char *file_name)
double F64
Definition: mydefs.hpp:52


lvr2
Author(s): Thomas Wiemann , Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Mon Feb 28 2022 22:46:07