SFGeometryFilter

Objective-C

@protocol SFGeometryFilter <NSObject>

Swift

protocol SFGeometryFilter : NSObjectProtocol

Geometry Filter to filter included geometries and modify them during construction

  • Filter the geometry

    Declaration

    Objective-C

    - (BOOL)filterGeometry:(SFGeometry *)geometry
                    inType:(enum SFGeometryType)containingType;

    Swift

    func filterGeometry(_ geometry: SFGeometry!, in containingType: SFGeometryType) -> Bool

    Parameters

    geometry

    geometry, may be modified

    containingType

    geometry type of the geometry containing this geometry element, null if geometry is top level

    Return Value

    true if passes filter and geometry should be included