CoordinateSequenceFilter.h
/**********************************************************************
*
* GEOS - Geometry Engine Open Source
* http://geos.osgeo.org
*
* Copyright (C) 2009 Sandro Santilli <strk@kbt.io>
*
* This is free software; you can redistribute and/or modify it under
* the terms of the GNU Lesser General Public Licence as published
* by the Free Software Foundation.
* See the COPYING file for more information.
*
**********************************************************************
*
* Last port: geom/CoordinateSequenceFilter.java rev. 1.3 (JTS-1.9)
*
**********************************************************************/
#pragma once
#include <geos/export.h>
#include <cassert>
#include <cstddef>
// Forward declarations
namespace geos {
namespace geom {
class CoordinateSequence;
}
}
namespace geos {
namespace geom { // geos::geom
class GEOS_DLL CoordinateSequenceFilter {
public:
virtual
~CoordinateSequenceFilter() {}
virtual void
filter_rw(CoordinateSequence& /*seq*/, std::size_t /*i*/)
{
assert(0);
}
virtual void
filter_ro(const CoordinateSequence& /*seq*/, std::size_t /*i*/)
{
assert(0);
}
virtual bool isDone() const = 0;
virtual bool isGeometryChanged() const = 0;
};
} // namespace geos::geom
} // namespace geos
geos::geom::CoordinateSequenceFilter
Interface for classes which provide operations that can be applied to the coordinates in a Coordinate...
Definition CoordinateSequenceFilter.h:56
geos::geom::CoordinateSequenceFilter::isDone
virtual bool isDone() const =0
Reports whether the application of this filter can be terminated.
geos::geom::CoordinateSequenceFilter::filter_ro
virtual void filter_ro(const CoordinateSequence &, std::size_t)
Performs an operation on a coordinate in a CoordinateSequence.
Definition CoordinateSequenceFilter.h:82
geos::geom::CoordinateSequenceFilter::filter_rw
virtual void filter_rw(CoordinateSequence &, std::size_t)
Performs an operation on a coordinate in a CoordinateSequence.
Definition CoordinateSequenceFilter.h:70
geos::geom::CoordinateSequenceFilter::isGeometryChanged
virtual bool isGeometryChanged() const =0
Reports whether the execution of this filter has modified the coordinates of the geometry.
geos::geom::CoordinateSequence
The internal representation of a list of coordinates inside a Geometry.
Definition CoordinateSequence.h:56
geos::geom
Definition Angle.h:26
geos
Basic namespace for all GEOS functionalities.
Definition geos.h:38