MSFFeatureBuilder

Objective-C


@interface MSFFeatureBuilder : NSObject {
  void *swigCPtr;
  BOOL swigCMemOwn;
}

Swift

class MSFFeatureBuilder : NSObject

A feature builder for constructing individual features.

  • Checks if this object is equal to the specified object.

    Declaration

    Objective-C

    - (BOOL)isEqual:(id)object;

    Swift

    func isEqual(_ object: Any!) -> Bool

    Parameters

    object

    The reference object.

    Return Value

    True when objects are equal, false otherwise.

  • Returns the hash value of this object.

    Declaration

    Objective-C

    - (NSUInteger)hash;

    Swift

    func hash() -> UInt

    Return Value

    The hash value of this object.

  • Constructs a FeatureBuilder with empty state.

    Declaration

    Objective-C

    - (id)init;

    Swift

    init!()
  • Returns the geometry of the builder.

    Declaration

    Objective-C

    - (MSFGeometry *)getGeometry;

    Swift

    func getGeometry() -> MSFGeometry!

    Return Value

    The geometry of the builder.

  • Sets the geometry of the builder.

    Declaration

    Objective-C

    - (void)setGeometry:(MSFGeometry *)geometry;

    Swift

    func setGeometry(_ geometry: MSFGeometry!)

    Parameters

    geometry

    The new geometry to use for the builder.

  • Returns a specified property value of the builder.

    Declaration

    Objective-C

    - (MSFVariant *)getPropertyValue:(NSString *)key;

    Swift

    func getPropertyValue(_ key: String!) -> MSFVariant!

    Parameters

    key

    The name of the property to return.

    Return Value

    The value of the property. If the key does not exist an empty variant is returned.

  • Sets an individual property value of the builder.

    Declaration

    Objective-C

    - (void)setPropertyValue:(NSString *)key value:(MSFVariant *)value;

    Swift

    func setPropertyValue(_ key: String!, value: MSFVariant!)

    Parameters

    key

    The name of the property to set.

    value

    The value of the property.

  • Builds a new feature from the state.

    Declaration

    Objective-C

    - (MSFFeature *)buildFeature;

    Swift

    func buildFeature() -> MSFFeature!

    Return Value

    A new feature based on the builder state. Can be null if the geometry is not specified.

  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;

    Swift

    func dealloc()