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

Method filter

LASlib/src/lasfilter.cpp:1234–1251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1232 };
1233 inline U32 get_decompress_selective() const { return LASZIP_DECOMPRESS_SELECTIVE_CLASSIFICATION; };
1234 inline BOOL filter(const LASpoint* point)
1235 {
1236 if (point->classification == 0)
1237 {
1238 if (point->extended_classification == 0)
1239 {
1240 return ((1u) & drop_classification_mask);
1241 }
1242 else
1243 {
1244 return TRUE;
1245 }
1246 }
1247 else
1248 {
1249 return ((1u << point->classification) & drop_classification_mask);
1250 }
1251 };
1252 LAScriterionKeepClassifications(U32 keep_classification_mask) { drop_classification_mask = ~keep_classification_mask; };
1253 inline U32 get_keep_classification_mask() const { return ~drop_classification_mask; };
1254private:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected