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

Defines public interface to LAS filter implementation. More...

#include <filter.hpp>

Inheritance diagram for liblas::FilterI:
Inheritance graph
Collaboration diagram for liblas::FilterI:
Collaboration graph

Public Types

enum  FilterType { eExclusion = 0, eInclusion = 1 }
 Determines whether or not the filter keeps or rejects points that meet filtering criteria. More...
 

Public Member Functions

virtual bool filter (const Point &point)=0
 Function called by liblas::Reader::ReadNextPoint to apply the (list) of filter to the point. More...
 
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

Defines public interface to LAS filter implementation.

Member Enumeration Documentation

Determines whether or not the filter keeps or rejects points that meet filtering criteria.

Enumerator
eExclusion 

Filter removes point that meet the criteria of filter(const Point& point)

eInclusion 

Filter keeps point that meet the criteria of filter(const Point& point)

Constructor & Destructor Documentation

virtual liblas::FilterI::~FilterI ( )
inlinevirtual
liblas::FilterI::FilterI ( FilterType  t)
inline

Base constructor. Initializes the FilterType.

Member Function Documentation

virtual bool liblas::FilterI::filter ( const Point point)
pure 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.

Implemented in liblas::ColorFilter, liblas::ContinuousValueFilter< T >, liblas::ValidationFilter, liblas::ReturnFilter, liblas::ThinFilter, liblas::ClassificationFilter, liblas::BoundsFilter, liblas::CoordinateSummary, and liblas::Summary.

FilterType liblas::FilterI::GetType ( ) const
inline

Gets the type of filter.

void liblas::FilterI::SetType ( FilterType  t)
inline

Sets whether the filter is one that keeps data that matches construction criteria or rejects them.


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