NTVectorElement
@interface NTVectorElement : NSObject {
void *swigCPtr;
BOOL swigCMemOwn;
}
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;
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;
Return Value
The hash value of this object.
-
Returns the bounds of this vector element.
Declaration
Objective-C
- (NTMapBounds *)getBounds;
Return Value
The bounds of this vector element.
-
Returns the geometry object that defines the location of this vector element.
Declaration
Objective-C
- (NTGeometry *)getGeometry;
Return Value
The geometry object of this vector element.
-
Returns the internal id of this vector element.
Declaration
Objective-C
- (long long)getId;
Return 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;
Parameters
id
The 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
- (NTStringVariantMap *)getMetaData;
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:(NTStringVariantMap *)metaData;
Parameters
metaData
The 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;
Parameters
key
The 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
- (NTVariant *)getMetaDataElement:(NSString *)key;
Parameters
key
The 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:(NTVariant *)element;
Parameters
key
The new key.
element
The new value.
-
Returns the state of the visibility flag of this vector element.
Declaration
Objective-C
- (BOOL)isVisible;
Return 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;
Parameters
visible
The 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;
-
Undocumented
Declaration
Objective-C
-(void)dealloc;