@@ -59,7 +59,7 @@ class LASLIB_DLL LASreader
59
59
I64 p_count;
60
60
61
61
virtual I32 get_format () const = 0;
62
- virtual BOOL has_layers () const { return FALSE ; };
62
+ virtual bool has_layers () const { return FALSE ; };
63
63
64
64
void set_index (LASindex* index);
65
65
inline LASindex* get_index () const { return index ; };
@@ -69,23 +69,23 @@ class LASLIB_DLL LASreader
69
69
inline LAStransform* get_transform () const { return transform; };
70
70
71
71
inline U32 get_inside () const { return inside; };
72
- virtual BOOL inside_none ();
73
- virtual BOOL inside_tile (const F32 ll_x, const F32 ll_y, const F32 size);
72
+ virtual bool inside_none ();
73
+ virtual bool inside_tile (const F32 ll_x, const F32 ll_y, const F32 size);
74
74
inline F32 get_t_ll_x () const { return t_ll_x; };
75
75
inline F32 get_t_ll_y () const { return t_ll_y; };
76
76
inline F32 get_t_size () const { return t_size; };
77
- virtual BOOL inside_circle (const F64 center_x, const F64 center_y, const F64 radius);
77
+ virtual bool inside_circle (const F64 center_x, const F64 center_y, const F64 radius);
78
78
inline F64 get_c_center_x () const { return c_center_x; };
79
79
inline F64 get_c_center_y () const { return c_center_y; };
80
80
inline F64 get_c_radius () const { return c_radius; };
81
- virtual BOOL inside_rectangle (const F64 min_x, const F64 min_y, const F64 max_x, const F64 max_y);
81
+ virtual bool inside_rectangle (const F64 min_x, const F64 min_y, const F64 max_x, const F64 max_y);
82
82
inline F64 get_r_min_x () const { return r_min_x; };
83
83
inline F64 get_r_min_y () const { return r_min_y; };
84
84
inline F64 get_r_max_x () const { return r_max_x; };
85
85
inline F64 get_r_max_y () const { return r_max_y; };
86
86
87
- virtual BOOL seek (const I64 p_index) = 0;
88
- BOOL read_point () { return (this ->*read_simple)(); };
87
+ virtual bool seek (const I64 p_index) = 0;
88
+ bool read_point () { return (this ->*read_simple)(); };
89
89
90
90
inline void compute_coordinates () { point.compute_coordinates (); };
91
91
@@ -110,13 +110,13 @@ class LASLIB_DLL LASreader
110
110
inline I32 get_Z (const F64 z) const { return header.get_Z (z); };
111
111
112
112
virtual ByteStreamIn* get_stream () const = 0;
113
- virtual void close (BOOL close_stream=TRUE ) = 0;
113
+ virtual void close (bool close_stream=TRUE ) = 0;
114
114
115
115
LASreader ();
116
116
virtual ~LASreader ();
117
117
118
118
protected:
119
- virtual BOOL read_point_default () = 0;
119
+ virtual bool read_point_default () = 0;
120
120
121
121
LASindex* index;
122
122
LASfilter* filter;
@@ -129,20 +129,20 @@ class LASLIB_DLL LASreader
129
129
F64 orig_min_x, orig_min_y, orig_max_x, orig_max_y;
130
130
131
131
private:
132
- BOOL (LASreader::*read_simple)();
133
- BOOL (LASreader::*read_complex)();
134
-
135
- BOOL read_point_none ();
136
- BOOL read_point_filtered ();
137
- BOOL read_point_transformed ();
138
- BOOL read_point_filtered_and_transformed ();
139
-
140
- BOOL read_point_inside_tile ();
141
- BOOL read_point_inside_tile_indexed ();
142
- BOOL read_point_inside_circle ();
143
- BOOL read_point_inside_circle_indexed ();
144
- BOOL read_point_inside_rectangle ();
145
- BOOL read_point_inside_rectangle_indexed ();
132
+ bool (LASreader::*read_simple)();
133
+ bool (LASreader::*read_complex)();
134
+
135
+ bool read_point_none ();
136
+ bool read_point_filtered ();
137
+ bool read_point_transformed ();
138
+ bool read_point_filtered_and_transformed ();
139
+
140
+ bool read_point_inside_tile ();
141
+ bool read_point_inside_tile_indexed ();
142
+ bool read_point_inside_circle ();
143
+ bool read_point_inside_circle_indexed ();
144
+ bool read_point_inside_rectangle ();
145
+ bool read_point_inside_rectangle_indexed ();
146
146
};
147
147
148
148
#include " laswaveform13reader.hpp"
@@ -156,24 +156,24 @@ class LASLIB_DLL LASreadOpener
156
156
U32 get_file_name_current () const ;
157
157
const CHAR* get_file_name () const ;
158
158
const CHAR* get_file_name (U32 number) const ;
159
- void set_file_name (const CHAR* file_name, BOOL unique=FALSE );
160
- BOOL add_file_name (const CHAR* file_name, BOOL unique=FALSE );
161
- BOOL add_list_of_files (const CHAR* list_of_files, BOOL unique=FALSE );
159
+ void set_file_name (const CHAR* file_name, bool unique=FALSE );
160
+ bool add_file_name (const CHAR* file_name, bool unique=FALSE );
161
+ bool add_list_of_files (const CHAR* list_of_files, bool unique=FALSE );
162
162
void delete_file_name (U32 file_name_id);
163
- BOOL set_file_name_current (U32 file_name_id);
163
+ bool set_file_name_current (U32 file_name_id);
164
164
I32 get_file_format (U32 number) const ;
165
- void set_merged (const BOOL merged);
166
- BOOL is_merged () const { return merged; };
165
+ void set_merged (const bool merged);
166
+ bool is_merged () const { return merged; };
167
167
void set_buffer_size (const F32 buffer_size);
168
168
F32 get_buffer_size () const ;
169
- void set_neighbor_file_name (const CHAR* neighbor_file_name, BOOL unique=FALSE );
170
- BOOL add_neighbor_file_name (const CHAR* neighbor_file_name, BOOL unique=FALSE );
171
- void set_auto_reoffset (const BOOL auto_reoffset);
172
- inline BOOL is_auto_reoffset () const { return auto_reoffset; };
173
- void set_files_are_flightlines (const BOOL files_are_flightlines);
174
- inline BOOL are_files_flightlines () const { return files_are_flightlines; };
175
- void set_apply_file_source_ID (const BOOL apply_file_source_ID);
176
- inline BOOL applying_file_source_ID () const { return apply_file_source_ID; };
169
+ void set_neighbor_file_name (const CHAR* neighbor_file_name, bool unique=FALSE );
170
+ bool add_neighbor_file_name (const CHAR* neighbor_file_name, bool unique=FALSE );
171
+ void set_auto_reoffset (const bool auto_reoffset);
172
+ inline bool is_auto_reoffset () const { return auto_reoffset; };
173
+ void set_files_are_flightlines (const bool files_are_flightlines);
174
+ inline bool are_files_flightlines () const { return files_are_flightlines; };
175
+ void set_apply_file_source_ID (const bool apply_file_source_ID);
176
+ inline bool applying_file_source_ID () const { return apply_file_source_ID; };
177
177
void set_scale_factor (const F64* scale_factor);
178
178
inline const F64* get_scale_factor () const { return scale_factor; };
179
179
void set_offset (const F64* offset);
@@ -185,41 +185,41 @@ class LASLIB_DLL LASreadOpener
185
185
void add_attribute (I32 data_type, const CHAR* name, const CHAR* description=0 , F64 scale=1.0 , F64 offset=0.0 , F64 pre_scale=1.0 , F64 pre_offset=0.0 );
186
186
void set_parse_string (const CHAR* parse_string);
187
187
void set_skip_lines (I32 skip_lines);
188
- void set_populate_header (BOOL populate_header);
189
- void set_keep_lastiling (BOOL keep_lastiling);
190
- void set_pipe_on (BOOL pipe_on);
188
+ void set_populate_header (bool populate_header);
189
+ void set_keep_lastiling (bool keep_lastiling);
190
+ void set_pipe_on (bool pipe_on);
191
191
const CHAR* get_parse_string () const ;
192
192
void usage () const ;
193
193
void set_inside_tile (const F32 ll_x, const F32 ll_y, const F32 size);
194
194
void set_inside_circle (const F64 center_x, const F64 center_y, const F64 radius);
195
195
void set_inside_rectangle (const F64 min_x, const F64 min_y, const F64 max_x, const F64 max_y);
196
- BOOL parse (int argc, char * argv[]);
197
- BOOL is_piped () const ;
198
- BOOL is_buffered () const ;
199
- BOOL is_header_populated () const ;
200
- BOOL active () const ;
201
- BOOL is_inside () const ;
196
+ bool parse (int argc, char * argv[]);
197
+ bool is_piped () const ;
198
+ bool is_buffered () const ;
199
+ bool is_header_populated () const ;
200
+ bool active () const ;
201
+ bool is_inside () const ;
202
202
I32 unparse (CHAR* string) const ;
203
203
void set_filter (LASfilter* filter);
204
204
const LASfilter* get_filter () { return filter; };
205
205
void set_transform (LAStransform* transform);
206
206
const LAStransform* get_transform () { return transform; };
207
207
void reset ();
208
208
const CHAR* get_temp_file_base () const { return temp_file_base; };
209
- LASreader* open (const CHAR* other_file_name=0 , BOOL reset_after_other=TRUE );
210
- BOOL reopen (LASreader* lasreader, BOOL remain_buffered=TRUE );
209
+ LASreader* open (const CHAR* other_file_name=0 , bool reset_after_other=TRUE );
210
+ bool reopen (LASreader* lasreader, bool remain_buffered=TRUE );
211
211
LASwaveform13reader* open_waveform13 (const LASheader* lasheader);
212
212
LASreadOpener ();
213
213
~LASreadOpener ();
214
214
private:
215
215
#ifdef _WIN32
216
- BOOL add_file_name_single (const CHAR* file_name, BOOL unique=FALSE );
217
- BOOL add_neighbor_file_name_single (const CHAR* neighbor_file_name, BOOL unique=FALSE );
216
+ bool add_file_name_single (const CHAR* file_name, bool unique=FALSE );
217
+ bool add_neighbor_file_name_single (const CHAR* neighbor_file_name, bool unique=FALSE );
218
218
#endif
219
219
I32 io_ibuffer_size;
220
220
CHAR** file_names;
221
221
const CHAR* file_name;
222
- BOOL merged;
222
+ bool merged;
223
223
U32 file_name_number;
224
224
U32 file_name_allocated;
225
225
U32 file_name_current;
@@ -228,15 +228,15 @@ class LASLIB_DLL LASreadOpener
228
228
CHAR** neighbor_file_names;
229
229
U32 neighbor_file_name_number;
230
230
U32 neighbor_file_name_allocated;
231
- BOOL comma_not_point;
231
+ bool comma_not_point;
232
232
F64* scale_factor;
233
233
F64* offset;
234
- BOOL auto_reoffset;
235
- BOOL files_are_flightlines;
236
- BOOL apply_file_source_ID;
237
- BOOL itxt;
238
- BOOL ipts;
239
- BOOL iptx;
234
+ bool auto_reoffset;
235
+ bool files_are_flightlines;
236
+ bool apply_file_source_ID;
237
+ bool itxt;
238
+ bool ipts;
239
+ bool iptx;
240
240
F32 translate_intensity;
241
241
F32 scale_intensity;
242
242
F32 translate_scan_angle;
@@ -251,11 +251,11 @@ class LASLIB_DLL LASreadOpener
251
251
F64 attribute_pre_offsets[10 ];
252
252
CHAR* parse_string;
253
253
I32 skip_lines;
254
- BOOL populate_header;
255
- BOOL keep_lastiling;
256
- BOOL pipe_on;
257
- BOOL use_stdin;
258
- BOOL unique;
254
+ bool populate_header;
255
+ bool keep_lastiling;
256
+ bool pipe_on;
257
+ bool use_stdin;
258
+ bool unique;
259
259
260
260
// optional extras
261
261
LASindex* index;
0 commit comments