Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
LASreaderTXT Class Reference

#include <lasreader_txt.hpp>

Inheritance diagram for LASreaderTXT:
Inheritance graph
[legend]

Public Member Functions

void add_extra_attribute (I32 data_type, const char *name, const char *description=0, F64 scale=1.0, F64 offset=0.0)
 
void close (BOOL close_stream=TRUE)
 
I32 get_format () const
 
ByteStreamInget_stream () const
 
 LASreaderTXT ()
 
virtual BOOL open (const char *file_name, const char *parse_string=0, I32 skip_lines=0, BOOL populate_header=FALSE)
 
BOOL reopen (const char *file_name)
 
BOOL seek (const I64 p_index)
 
void set_offset (const F64 *offset)
 
void set_scale_factor (const F64 *scale_factor)
 
void set_scale_intensity (F32 scale_intensity)
 
void set_scale_scan_angle (F32 scale_scan_angle)
 
void set_translate_intensity (F32 translate_intensity)
 
void set_translate_scan_angle (F32 translate_scan_angle)
 
virtual ~LASreaderTXT ()
 
- Public Member Functions inherited from LASreader
void compute_coordinates ()
 
LASindexget_index () const
 
F64 get_max_x () const
 
F64 get_max_y () const
 
F64 get_max_z () const
 
F64 get_min_x () const
 
F64 get_min_y () const
 
F64 get_min_z () const
 
F64 get_x () const
 
I32 get_x (const F64 x) const
 
F64 get_x (const I32 x) const
 
F64 get_y () const
 
I32 get_y (const F64 y) const
 
F64 get_y (const I32 y) const
 
F64 get_z () const
 
I32 get_z (const F64 z) const
 
F64 get_z (const I32 z) const
 
virtual BOOL inside_circle (const F64 center_x, const F64 center_y, const F64 radius)
 
virtual BOOL inside_rectangle (const F64 min_x, const F64 min_y, const F64 max_x, const F64 max_y)
 
virtual BOOL inside_tile (const F32 ll_x, const F32 ll_y, const F32 size)
 
 LASreader ()
 
BOOL read_point ()
 
void reset_filter ()
 
virtual void set_filter (LASfilter *filter)
 
void set_index (LASindex *index)
 
virtual void set_transform (LAStransform *transform)
 
void use_alternate_reader ()
 
void use_default_reader ()
 
virtual ~LASreader ()
 

Protected Member Functions

BOOL read_point_default ()
 
- Protected Member Functions inherited from LASreader
virtual BOOL read_point_alternate ()
 

Private Member Functions

BOOL check_parse_string (const char *parse_string)
 
void clean ()
 
BOOL parse (const char *parse_string)
 
BOOL parse_extra_attribute (const char *l, I32 index)
 
void populate_bounding_box ()
 
void populate_scale_and_offset ()
 

Private Attributes

I32 extra_attribute_array_offsets [10]
 
const char * extra_attribute_descriptions [10]
 
const char * extra_attribute_names [10]
 
F64 extra_attribute_offsets [10]
 
F64 extra_attribute_scales [10]
 
I32 extra_attributes_data_types [10]
 
FILE * file
 
char line [512]
 
I32 number_extra_attributes
 
F64offset
 
char * parse_string
 
bool piped
 
BOOL populated_header
 
F64scale_factor
 
F32 scale_intensity
 
F32 scale_scan_angle
 
I32 skip_lines
 
F32 translate_intensity
 
F32 translate_scan_angle
 

Additional Inherited Members

- Public Attributes inherited from LASreader
LASheader header
 
I64 npoints
 
I64 p_count
 
LASpoint point
 
- Protected Attributes inherited from LASreader
F64 c_center_x
 
F64 c_center_y
 
F64 c_radius
 
F64 c_radius_squared
 
LASfilterfilter
 
LASindexindex
 
F64 r_max_x
 
F64 r_max_y
 
F64 r_min_x
 
F64 r_min_y
 
F32 t_ll_x
 
F32 t_ll_y
 
F32 t_size
 
F32 t_ur_x
 
F32 t_ur_y
 
LAStransformtransform
 

Detailed Description

Definition at line 38 of file lasreader_txt.hpp.

Constructor & Destructor Documentation

◆ LASreaderTXT()

LASreaderTXT::LASreaderTXT ( )

Definition at line 671 of file lasreader_txt.cpp.

◆ ~LASreaderTXT()

LASreaderTXT::~LASreaderTXT ( )
virtual

Definition at line 686 of file lasreader_txt.cpp.

Member Function Documentation

◆ add_extra_attribute()

void LASreaderTXT::add_extra_attribute ( I32  data_type,
const char *  name,
const char *  description = 0,
F64  scale = 1.0,
F64  offset = 0.0 
)

Definition at line 437 of file lasreader_txt.cpp.

◆ check_parse_string()

BOOL LASreaderTXT::check_parse_string ( const char *  parse_string)
private

Definition at line 1019 of file lasreader_txt.cpp.

◆ clean()

void LASreaderTXT::clean ( )
private

Definition at line 655 of file lasreader_txt.cpp.

◆ close()

void LASreaderTXT::close ( BOOL  close_stream = TRUE)
virtual

Implements LASreader.

Definition at line 591 of file lasreader_txt.cpp.

◆ get_format()

I32 LASreaderTXT::get_format ( ) const
inlinevirtual

Implements LASreader.

Definition at line 51 of file lasreader_txt.hpp.

◆ get_stream()

ByteStreamIn * LASreaderTXT::get_stream ( ) const
virtual

Implements LASreader.

Definition at line 586 of file lasreader_txt.cpp.

◆ open()

BOOL LASreaderTXT::open ( const char *  file_name,
const char *  parse_string = 0,
I32  skip_lines = 0,
BOOL  populate_header = FALSE 
)
virtual

Reimplemented in LASreaderTXTrescalereoffset, LASreaderTXTreoffset, and LASreaderTXTrescale.

Definition at line 42 of file lasreader_txt.cpp.

◆ parse()

BOOL LASreaderTXT::parse ( const char *  parse_string)
private

Definition at line 850 of file lasreader_txt.cpp.

◆ parse_extra_attribute()

BOOL LASreaderTXT::parse_extra_attribute ( const char *  l,
I32  index 
)
private

Definition at line 701 of file lasreader_txt.cpp.

◆ populate_bounding_box()

void LASreaderTXT::populate_bounding_box ( )
private

Definition at line 1128 of file lasreader_txt.cpp.

◆ populate_scale_and_offset()

void LASreaderTXT::populate_scale_and_offset ( )
private

Definition at line 1080 of file lasreader_txt.cpp.

◆ read_point_default()

BOOL LASreaderTXT::read_point_default ( )
protectedvirtual

Implements LASreader.

Definition at line 515 of file lasreader_txt.cpp.

◆ reopen()

BOOL LASreaderTXT::reopen ( const char *  file_name)

Definition at line 601 of file lasreader_txt.cpp.

◆ seek()

BOOL LASreaderTXT::seek ( const I64  p_index)
virtual

Implements LASreader.

Definition at line 463 of file lasreader_txt.cpp.

◆ set_offset()

void LASreaderTXT::set_offset ( const F64 offset)

Definition at line 421 of file lasreader_txt.cpp.

◆ set_scale_factor()

void LASreaderTXT::set_scale_factor ( const F64 scale_factor)

Definition at line 405 of file lasreader_txt.cpp.

◆ set_scale_intensity()

void LASreaderTXT::set_scale_intensity ( F32  scale_intensity)

Definition at line 390 of file lasreader_txt.cpp.

◆ set_scale_scan_angle()

void LASreaderTXT::set_scale_scan_angle ( F32  scale_scan_angle)

Definition at line 400 of file lasreader_txt.cpp.

◆ set_translate_intensity()

void LASreaderTXT::set_translate_intensity ( F32  translate_intensity)

Definition at line 385 of file lasreader_txt.cpp.

◆ set_translate_scan_angle()

void LASreaderTXT::set_translate_scan_angle ( F32  translate_scan_angle)

Definition at line 395 of file lasreader_txt.cpp.

Member Data Documentation

◆ extra_attribute_array_offsets

I32 LASreaderTXT::extra_attribute_array_offsets[10]
private

Definition at line 84 of file lasreader_txt.hpp.

◆ extra_attribute_descriptions

const char* LASreaderTXT::extra_attribute_descriptions[10]
private

Definition at line 81 of file lasreader_txt.hpp.

◆ extra_attribute_names

const char* LASreaderTXT::extra_attribute_names[10]
private

Definition at line 80 of file lasreader_txt.hpp.

◆ extra_attribute_offsets

F64 LASreaderTXT::extra_attribute_offsets[10]
private

Definition at line 83 of file lasreader_txt.hpp.

◆ extra_attribute_scales

F64 LASreaderTXT::extra_attribute_scales[10]
private

Definition at line 82 of file lasreader_txt.hpp.

◆ extra_attributes_data_types

I32 LASreaderTXT::extra_attributes_data_types[10]
private

Definition at line 79 of file lasreader_txt.hpp.

◆ file

FILE* LASreaderTXT::file
private

Definition at line 75 of file lasreader_txt.hpp.

◆ line

char LASreaderTXT::line[512]
private

Definition at line 77 of file lasreader_txt.hpp.

◆ number_extra_attributes

I32 LASreaderTXT::number_extra_attributes
private

Definition at line 78 of file lasreader_txt.hpp.

◆ offset

F64* LASreaderTXT::offset
private

Definition at line 72 of file lasreader_txt.hpp.

◆ parse_string

char* LASreaderTXT::parse_string
private

Definition at line 66 of file lasreader_txt.hpp.

◆ piped

bool LASreaderTXT::piped
private

Definition at line 76 of file lasreader_txt.hpp.

◆ populated_header

BOOL LASreaderTXT::populated_header
private

Definition at line 74 of file lasreader_txt.hpp.

◆ scale_factor

F64* LASreaderTXT::scale_factor
private

Definition at line 71 of file lasreader_txt.hpp.

◆ scale_intensity

F32 LASreaderTXT::scale_intensity
private

Definition at line 68 of file lasreader_txt.hpp.

◆ scale_scan_angle

F32 LASreaderTXT::scale_scan_angle
private

Definition at line 70 of file lasreader_txt.hpp.

◆ skip_lines

I32 LASreaderTXT::skip_lines
private

Definition at line 73 of file lasreader_txt.hpp.

◆ translate_intensity

F32 LASreaderTXT::translate_intensity
private

Definition at line 67 of file lasreader_txt.hpp.

◆ translate_scan_angle

F32 LASreaderTXT::translate_scan_angle
private

Definition at line 69 of file lasreader_txt.hpp.


The documentation for this class was generated from the following files:


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:26