MSFVectorElement
Objective-C
@interface MSFVectorElement : NSObject {
void *swigCPtr;
BOOL swigCMemOwn;
}
Swift
class MSFVectorElement : NSObject
A base class for all vector elements (points, lines, texts, models, etc).
-
Checks if this object is equal to the specified object.
Declaration
Objective-C
- (BOOL)isEqual:(id)object;Swift
func isEqual(_ object: Any!) -> BoolParameters
objectThe 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() -> UIntReturn Value
The hash value of this object.
-
Returns the bounds of this vector element.
Return Value
The bounds of this vector element.
-
Returns the geometry object that defines the location of this vector element.
Return Value
The geometry object of this vector element.
-
Returns the internal id of this vector element.
Declaration
Objective-C
- (long long)getId;Swift
func getId() -> Int64Return Value
The internal id of this vector element.
-
Sets the internal id for this vector element. The id is used for internal caching, and should not be changed by the user. User id can added to meta data as a key-value pair.
Declaration
Objective-C
- (void)setId:(long long)arg1;Swift
func setId(_ arg1: Int64)Parameters
idThe new internal id for this vector element.
-
Returns a copy of the vector element meta data map. The changes you make to this map are NOT reflected in the actual meta data of the element.
Declaration
Objective-C
- (MSFStringVariantMap *)getMetaData;Swift
func getMetaData() -> MSFStringVariantMap!Return Value
A copy of the vector element meta data map.
-
Sets a new meta data map for the vector element. Old meta data values will be lost.
Declaration
Objective-C
- (void)setMetaData:(MSFStringVariantMap *)metaData;Swift
func setMetaData(_ metaData: MSFStringVariantMap!)Parameters
metaDataThe new meta data map for this vector element.
-
Returns true if the specified key exists in the vector element meta data map.
Declaration
Objective-C
- (BOOL)containsMetaDataKey:(NSString *)key;Swift
func containsMetaDataKey(_ key: String!) -> BoolParameters
keyThe key to check.
Return Value
True if the vector element meta data element exists.
-
Returns a meta data element corresponding to the key. If no value is found null variant is returned.
Declaration
Objective-C
- (MSFVariant *)getMetaDataElement:(NSString *)key;Swift
func getMetaDataElement(_ key: String!) -> MSFVariant!Parameters
keyThe key to use.
Return Value
The value corresponding to the key from the meta data map. If the key does not exists, empty variant is returned.
-
Adds a new key-value pair to the meta data map. If the key already exists in the map, it’s value will be replaced by the new value.
Declaration
Objective-C
- (void)setMetaDataElement:(NSString *)key element:(MSFVariant *)element;Swift
func setMetaData(_ key: String!, element: MSFVariant!)Parameters
keyThe new key.
elementThe new value.
-
Returns the state of the visibility flag of this vector element.
Declaration
Objective-C
- (BOOL)isVisible;Swift
func isVisible() -> BoolReturn Value
True if this vector element is visible.
-
Sets the state of the visibility flag for this vector element. If set to false the element will not be drawn.
Declaration
Objective-C
- (void)setVisible:(BOOL)visible;Swift
func setVisible(_ visible: Bool)Parameters
visibleThe new state of the visibility flag for the vector element.
-
Notifies this vector element’s datasource about the change in this element. The data source may then notify the layer to update the view.
Declaration
Objective-C
- (void)notifyElementChanged;Swift
func notifyChanged() -
Undocumented
Declaration
Objective-C
-(void)dealloc;Swift
func dealloc()