MSFVectorDataSource

Objective-C


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

Swift

class MSFVectorDataSource : NSObject

Abstract base class for envelope based vector data sources. It provides default implementation for listener registration and other common data source methods. Subclasses need to define their own implementations of loadElements method.

The draw order of vector elements within the data source is undefined.

  • Returns the extent of the data of this data source. The bounds are in coordinate system of the projection of the data source.

    Declaration

    Objective-C

    - (MSFMapBounds *)getDataExtent;

    Swift

    func getDataExtent() -> MSFMapBounds!

    Return Value

    The extent of the data source.

  • Returns the extent of the data of this data source. The bounds are in coordinate system of the projection of the data source.

    Declaration

    Objective-C

    - (MSFMapBounds *)getDataExtentSwigExplicitMSFVectorDataSource;

    Swift

    func getDataExtentSwigExplicitMSFVectorDataSource() -> MSFMapBounds!

    Return Value

    The extent of the data source.

  • Returns the projection used by this data source.

    Declaration

    Objective-C

    - (MSFProjection *)getProjection;

    Swift

    func getProjection() -> MSFProjection!

    Return Value

    The projection used by this data source.

  • Loads all the elements within the defined envelope.

    Declaration

    Objective-C

    - (MSFVectorData *)loadElements:(MSFCullState *)cullState;

    Swift

    func loadElements(_ cullState: MSFCullState!) -> MSFVectorData!

    Parameters

    cullState

    State for describing view parameters and conservative view envelope.

    Return Value

    The vector of loaded vector elements. If no elements are available, null may be returned.

  • Notifies listeners that all vector elements have changed. This method refreshes all the existing vector elements in the data source.

    Declaration

    Objective-C

    - (void)notifyElementsChanged;

    Swift

    func notifyElementsChanged()
  • Constructs an abstract VectorDataSource object.

    Declaration

    Objective-C

    - (id)initWithProjection:(MSFProjection *)projection;

    Swift

    init!(projection: MSFProjection!)

    Parameters

    projection

    The projection used by this data source.

  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;

    Swift

    func dealloc()