public interface GeometryComponentFilter
Geometry classes support the concept of applying
filter to the
The filter is applied to every component of the
which is itself a
and which does not itself contain any components.
(For instance, all the
Polygons are visited,
but in a
Polygons themselves are not visited.)
Thus the only classes of Geometry which must be
handled as arguments to
GeometryComponentFilter filter can either
record information about the
or change the
Geometry in some way.
is an example of the Gang-of-Four Visitor pattern.
void filter(Geometry geom)
geom - a
Geometry to which the filter is applied.
Copyright © 2022. All rights reserved.