[Liblas-commits] hg: 2 new changesets
liblas-commits at liblas.org
liblas-commits at liblas.org
Thu Aug 26 13:32:28 EDT 2010
changeset f8eb4fd919c1 in /Volumes/Data/www/liblas.org/hg
details: http://hg.liblas.orghg?cmd=changeset;node=f8eb4fd919c1
summary: more docs
changeset cd2f287ea5cd in /Volumes/Data/www/liblas.org/hg
details: http://hg.liblas.orghg?cmd=changeset;node=cd2f287ea5cd
summary: add link_directories for boost to everything
diffstat:
CMakeLists.txt | 1 +
include/liblas/lasfilter.hpp | 8 ++++++++
2 files changed, 9 insertions(+), 0 deletions(-)
diffs (36 lines):
diff -r 7cad188b96bc -r cd2f287ea5cd CMakeLists.txt
--- a/CMakeLists.txt Thu Aug 26 11:56:29 2010 -0500
+++ b/CMakeLists.txt Thu Aug 26 12:32:19 2010 -0500
@@ -133,6 +133,7 @@
# make these available for the user to set.
mark_as_advanced(CLEAR Boost_INCLUDE_DIR)
mark_as_advanced(CLEAR Boost_LIBRARY_DIRS)
+link_directories(${Boost_LIBRARY_DIRS})
# libxml2 support - optional, default=ON
set(WITH_LIBXML2 FALSE CACHE BOOL "Choose if libxml2 support should be built ")
diff -r 7cad188b96bc -r cd2f287ea5cd include/liblas/lasfilter.hpp
--- a/include/liblas/lasfilter.hpp Thu Aug 26 11:56:29 2010 -0500
+++ b/include/liblas/lasfilter.hpp Thu Aug 26 12:32:19 2010 -0500
@@ -70,13 +70,21 @@
eInclusion = 1 ///< Filter keeps point that meet the criteria of filter(const Point& point)
};
+ /// 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.
virtual bool filter(const Point& point) = 0;
+ /// Sets whether the filter is one that keeps data that matches
+ /// construction criteria or rejects them.
void SetType(FilterType t) {m_type = t;}
+
+ /// Gets the type of filter.
FilterType GetType() const {return m_type; }
virtual ~FilterI() {};
+ /// Base constructor. Initializes the FilterType
FilterI(FilterType t) : m_type(t) {}
private:
More information about the Liblas-commits
mailing list