libLAS API Reference  1.8.1
Public Types | Public Member Functions | List of all members
liblas::ReturnFilter Class Reference

A filter for keeping or rejecting a list of return ids. More...

#include <filter.hpp>

Inheritance diagram for liblas::ReturnFilter:
Inheritance graph
Collaboration diagram for liblas::ReturnFilter:
Collaboration graph

Public Types

typedef std::vector< uint16_t > return_list_type
 
- Public Types inherited from liblas::FilterI
enum  FilterType { eExclusion = 0, eInclusion = 1 }
 Determines whether or not the filter keeps or rejects points that meet filtering criteria. More...
 

Public Member Functions

 ReturnFilter (return_list_type returns, bool last_only)
 
bool filter (const Point &point)
 Function called by liblas::Reader::ReadNextPoint to apply the (list) of filter to the point. More...
 
- Public Member Functions inherited from liblas::FilterI
void SetType (FilterType t)
 Sets whether the filter is one that keeps data that matches construction criteria or rejects them. More...
 
FilterType GetType () const
 Gets the type of filter. More...
 
virtual ~FilterI ()
 
 FilterI (FilterType t)
 Base constructor. Initializes the FilterType. More...
 

Detailed Description

A filter for keeping or rejecting a list of return ids.

Member Typedef Documentation

typedef std::vector<uint16_t> liblas::ReturnFilter::return_list_type

Constructor & Destructor Documentation

liblas::ReturnFilter::ReturnFilter ( return_list_type  returns,
bool  last_only 
)

Member Function Documentation

bool liblas::ReturnFilter::filter ( const Point point)
virtual

Function called by liblas::Reader::ReadNextPoint to apply the (list) of filter to the point.

If the function returns true, the point passes the filter and is kept.

Implements liblas::FilterI.


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