public interface GeometryComponentFilter
Geometryclasses support the concept of applying a
GeometryComponentFilterfilter to the
Geometry. The filter is applied to every component of the
Geometrywhich is itself a
Geometryand 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)
Geometryto which the filter is applied.
Copyright © 2020. All rights reserved.