MCPcopy Create free account
hub / github.com/LAStools/LAStools / filter

Method filter

LASlib/src/lasfilter.cpp:2022–2035  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2020 inline I32 get_command(CHAR* string) const { return sprintf(string, "-%s %lf ", name(), (time_spacing > 0 ? time_spacing : -time_spacing)); };
2021 inline U32 get_decompress_selective() const { return LASZIP_DECOMPRESS_SELECTIVE_GPS_TIME; };
2022 inline BOOL filter(const LASpoint* point)
2023 {
2024 I64 pos_t = I64_FLOOR(point->get_gps_time() / time_spacing);
2025 my_I64_set::iterator map_element = times.find(pos_t);
2026 if (map_element == times.end())
2027 {
2028 times.insert(my_I64_set::value_type(pos_t));
2029 return FALSE;
2030 }
2031 else
2032 {
2033 return TRUE;
2034 }
2035 }
2036 void reset()
2037 {
2038 times.clear();

Callers

nothing calls this directly

Calls 2

endMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected