#include "ct_lazpointformat5.h" #include "laszip/laszip_api.h" CT_LAZPointFormat5::CT_LAZPointFormat5() : CT_LAZPointFormat3() { } size_t CT_LAZPointFormat5::sizeInBytes() const { return CT_LAZPointFormat3::sizeInBytes() + wavePacketSizeInBytes(); } void CT_LAZPointFormat5::write(laszip_point* lzPoint, CT_LAZHeader* header, const CT_Point &p, const size_t &globalIndex) const { CT_LAZPointFormat3::write(lzPoint, header, p, globalIndex); writeInfoFormat5(lzPoint, globalIndex); } QList CT_LAZPointFormat5::typesToSearch() { QList l = CT_LAZPointFormat3::typesToSearch(); l.append(wavePacketTypesNeeded()); return l; } void CT_LAZPointFormat5::writeInfoFormat5(laszip_point* lzPoint, const size_t& globalIndex) const { writeWavePacket(lzPoint, globalIndex, scalars(CT_LasDefine::Wave_Packet_Descriptor_Index), scalars(CT_LasDefine::Byte_offset_to_waveform_data), scalars(CT_LasDefine::Waveform_packet_size_in_bytes), scalars(CT_LasDefine::Return_Point_Waveform_Location)); }