lasreadermerged.hpp
Go to the documentation of this file.
1 /*
2 ===============================================================================
3 
4  FILE: lasreadermerged.hpp
5 
6  CONTENTS:
7 
8  Reads LIDAR points from the LAS format from more than one file.
9 
10  PROGRAMMERS:
11 
12  martin.isenburg@gmail.com
13 
14  COPYRIGHT:
15 
16  (c) 2011, Martin Isenburg, LASSO - tools to catch reality
17 
18  This is free software; you can redistribute and/or modify it under the
19  terms of the GNU Lesser General Licence as published by the Free Software
20  Foundation. See the COPYING file for more information.
21 
22  This software is distributed WITHOUT ANY WARRANTY and without even the
23  implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24 
25  CHANGE HISTORY:
26 
27  20 January 2011 -- created missing Livermore and my Extra Virgin Olive Oil
28 
29 ===============================================================================
30 */
31 #ifndef LAS_READER_MERGED_HPP
32 #define LAS_READER_MERGED_HPP
33 
34 #include "lasreader_las.hpp"
35 #include "lasreader_bin.hpp"
36 #include "lasreader_shp.hpp"
37 #include "lasreader_qfit.hpp"
38 #include "lasreader_txt.hpp"
39 
40 class LASreaderMerged : public LASreader
41 {
42 public:
43 
44  BOOL add_file_name(const char* file_name);
45  void set_scale_factor(const F64* scale_factor);
46  void set_offset(const F64* offset);
47  void set_files_are_flightlines(BOOL flightlines);
52  void set_parse_string(const char* parse_string);
55  BOOL open();
56  BOOL reopen();
57 
60 
61  BOOL inside_tile(const F32 ll_x, const F32 ll_y, const F32 size);
62  BOOL inside_circle(const F64 center_x, const F64 center_y, const F64 radius);
63  BOOL inside_rectangle(const F64 min_x, const F64 min_y, const F64 max_x, const F64 max_y);
64 
65  I32 get_format() const;
66 
67  BOOL seek(const I64 p_index){ return FALSE; };
68 
69  ByteStreamIn* get_stream() const { return 0; };
70  void close(BOOL close_stream=TRUE);
71 
74 
75 protected:
78 
79 private:
81  void clean();
82 
99  char* parse_string;
105  char** file_names;
107  U32 inside; // 0 = none, 1 = tile, 2 = circle, 3 = rectangle
108 };
109 
110 #endif
LASreaderMerged::set_scale_factor
void set_scale_factor(const F64 *scale_factor)
Definition: lasreadermerged.cpp:214
LASreaderMerged::skip_lines
I32 skip_lines
Definition: lasreadermerged.hpp:100
LASreaderMerged::lasreaderlas
LASreaderLAS * lasreaderlas
Definition: lasreadermerged.hpp:84
LASreaderMerged::populate_header
BOOL populate_header
Definition: lasreadermerged.hpp:101
LASreaderSHP
Definition: lasreader_shp.hpp:38
LASreaderMerged::get_format
I32 get_format() const
Definition: lasreadermerged.cpp:683
LASreaderMerged::get_stream
ByteStreamIn * get_stream() const
Definition: lasreadermerged.hpp:69
LASreaderMerged::scale_intensity
F32 scale_intensity
Definition: lasreadermerged.hpp:96
lasreader_las.hpp
transform
Definition: src/tools/lvr2_transform/Options.cpp:44
LASreaderMerged::open
BOOL open()
Definition: lasreadermerged.cpp:289
LASreaderMerged::bounding_boxes
F64 * bounding_boxes
Definition: lasreadermerged.hpp:106
LASreaderQFIT
Definition: lasreader_qfit.hpp:40
LASreaderMerged::seek
BOOL seek(const I64 p_index)
Definition: lasreadermerged.hpp:67
LASreaderMerged::read_point_default
BOOL read_point_default()
Definition: lasreadermerged.cpp:688
LASreaderMerged::set_files_are_flightlines
void set_files_are_flightlines(BOOL flightlines)
I64
long long I64
Definition: mydefs.hpp:48
F64
double F64
Definition: mydefs.hpp:52
LASreaderMerged::point_type_change
BOOL point_type_change
Definition: lasreadermerged.hpp:89
I32
int I32
Definition: mydefs.hpp:35
lasreader_qfit.hpp
TRUE
#define TRUE
Definition: mydefs.hpp:137
lasreader_shp.hpp
LASreaderMerged::inside_tile
BOOL inside_tile(const F32 ll_x, const F32 ll_y, const F32 size)
Definition: lasreadermerged.cpp:640
LASreaderMerged::set_populate_header
void set_populate_header(BOOL populate_header)
Definition: lasreadermerged.cpp:284
LASreaderBIN
Definition: lasreader_bin.hpp:40
LAStransform
Definition: lastransform.hpp:46
LASreaderMerged::clean
void clean()
Definition: lasreadermerged.cpp:765
LASreaderMerged::set_translate_intensity
void set_translate_intensity(F32 translate_intensity)
Definition: lasreadermerged.cpp:246
LASreaderMerged::translate_intensity
F32 translate_intensity
Definition: lasreadermerged.hpp:95
LASreaderMerged::inside_circle
BOOL inside_circle(const F64 center_x, const F64 center_y, const F64 radius)
Definition: lasreadermerged.cpp:655
LASreaderMerged::rescale
BOOL rescale
Definition: lasreadermerged.hpp:91
LASreaderMerged::set_parse_string
void set_parse_string(const char *parse_string)
Definition: lasreadermerged.cpp:266
LASreaderMerged::offset
F64 * offset
Definition: lasreadermerged.hpp:94
LASreader
Definition: lasreader.hpp:49
LASreaderMerged::inside
U32 inside
Definition: lasreadermerged.hpp:107
LASreaderMerged::file_names
char ** file_names
Definition: lasreadermerged.hpp:105
LASreaderTXT
Definition: lasreader_txt.hpp:38
LASreaderMerged::file_name_number
U32 file_name_number
Definition: lasreadermerged.hpp:103
LASreaderMerged::set_offset
void set_offset(const F64 *offset)
Definition: lasreadermerged.cpp:230
LASreaderMerged::set_scale_intensity
void set_scale_intensity(F32 scale_intensity)
Definition: lasreadermerged.cpp:251
LASreaderMerged::open_next_file
BOOL open_next_file()
Definition: lasreadermerged.cpp:845
LASreaderLAS
Definition: lasreader_las.hpp:52
lasreader_txt.hpp
LASreaderMerged::set_skip_lines
void set_skip_lines(I32 skip_lines)
Definition: lasreadermerged.cpp:279
LASreaderMerged::parse_string
char * parse_string
Definition: lasreadermerged.hpp:99
ByteStreamIn
Definition: bytestreamin.hpp:36
LASreaderMerged::lasreaderqfit
LASreaderQFIT * lasreaderqfit
Definition: lasreadermerged.hpp:87
LASreaderMerged::read_point_alternate
BOOL read_point_alternate()
Definition: lasreadermerged.cpp:742
LASreaderMerged::lasreader
LASreader * lasreader
Definition: lasreadermerged.hpp:83
LASreaderMerged::~LASreaderMerged
~LASreaderMerged()
Definition: lasreadermerged.cpp:839
LASreaderMerged::lasreadershp
LASreaderSHP * lasreadershp
Definition: lasreadermerged.hpp:86
LASreaderMerged::lasreaderbin
LASreaderBIN * lasreaderbin
Definition: lasreadermerged.hpp:85
lasreader_bin.hpp
LASreaderMerged::file_name_allocated
U32 file_name_allocated
Definition: lasreadermerged.hpp:104
LASreaderMerged::lasreadertxt
LASreaderTXT * lasreadertxt
Definition: lasreadermerged.hpp:88
LASreaderMerged::add_file_name
BOOL add_file_name(const char *file_name)
Definition: lasreadermerged.cpp:39
LASreaderMerged::reopen
BOOL reopen()
Definition: lasreadermerged.cpp:757
BOOL
int BOOL
Definition: mydefs.hpp:57
LASreaderMerged::point_size_change
BOOL point_size_change
Definition: lasreadermerged.hpp:90
FALSE
#define FALSE
Definition: mydefs.hpp:133
F32
float F32
Definition: mydefs.hpp:51
LASreaderMerged::set_transform
void set_transform(LAStransform *transform)
Definition: lasreadermerged.cpp:635
LASreaderMerged::LASreaderMerged
LASreaderMerged()
Definition: lasreadermerged.cpp:823
LASreaderMerged::close
void close(BOOL close_stream=TRUE)
Definition: lasreadermerged.cpp:749
LASreaderMerged::scale_scan_angle
F32 scale_scan_angle
Definition: lasreadermerged.hpp:98
LASreaderMerged::file_name_current
U32 file_name_current
Definition: lasreadermerged.hpp:102
LASfilter
Definition: lasfilter.hpp:46
LASreader::filter
LASfilter * filter
Definition: lasreader.hpp:109
U32
unsigned int U32
Definition: mydefs.hpp:39
LASreaderMerged
Definition: lasreadermerged.hpp:40
LASreaderMerged::translate_scan_angle
F32 translate_scan_angle
Definition: lasreadermerged.hpp:97
LASreaderMerged::reoffset
BOOL reoffset
Definition: lasreadermerged.hpp:92
LASreaderMerged::set_scale_scan_angle
void set_scale_scan_angle(F32 scale_scan_angle)
Definition: lasreadermerged.cpp:261
LASreaderMerged::scale_factor
F64 * scale_factor
Definition: lasreadermerged.hpp:93
LASreaderMerged::set_translate_scan_angle
void set_translate_scan_angle(F32 translate_scan_angle)
Definition: lasreadermerged.cpp:256
LASreaderMerged::inside_rectangle
BOOL inside_rectangle(const F64 min_x, const F64 min_y, const F64 max_x, const F64 max_y)
Definition: lasreadermerged.cpp:669
LASreaderMerged::set_filter
void set_filter(LASfilter *filter)
Definition: lasreadermerged.cpp:630


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 Wed Mar 2 2022 00:37:23