NTVectorEditEventListener
@interface NTVectorEditEventListener : NSObject {
void *swigCPtr;
BOOL swigCMemOwn;
}
Listener interface for catching various events during map editing interactions.
-
Called when element is being selected. Can be used to disallow element selection.
Declaration
Objective-C
- (BOOL)onElementSelect:(NTVectorElement *)element;Parameters
elementThe element being selected
Return Value
true if the element is selectable, false otherwise
-
Called when element is being selected. Can be used to disallow element selection.
Declaration
Objective-C
- (BOOL)onElementSelectSwigExplicitNTVectorEditEventListener: (NTVectorElement *)element;Parameters
elementThe element being selected
Return Value
true if the element is selectable, false otherwise
-
Called when element is unselected.
Declaration
Objective-C
- (void)onElementDeselected:(NTVectorElement *)element;Parameters
elementThe element which was unselected
-
Called when element is unselected.
Declaration
Objective-C
- (void)onElementDeselectedSwigExplicitNTVectorEditEventListener: (NTVectorElement *)element;Parameters
elementThe element which was unselected
-
Called when element is being modified. It the responsibility of the implementation of this method to update actual vector element geometry. The geometry may be modified before updating the vector element, but topology of the element MUST not change!
Declaration
Objective-C
- (void)onElementModify:(NTVectorElement *)element geometry:(NTGeometry *)geometry;Parameters
elementThe element that is being edited
geometryThe modified geometry for the element
-
Called when element should be deleted.
Declaration
Objective-C
- (void)onElementDelete:(NTVectorElement *)element;Parameters
elementThe element that needs to be deleted
-
Called before element or vertex is dragged.
Declaration
Objective-C
- (enum NTVectorElementDragResult)onDragStart: (NTVectorElementDragInfo *)dragInfo;Parameters
dragInfoThe information about the element or vertex.
Return Value
The intended result of dragging.
-
Called before element or vertex is dragged.
Declaration
Objective-C
- (enum NTVectorElementDragResult) onDragStartSwigExplicitNTVectorEditEventListener: (NTVectorElementDragInfo *)dragInfo;Parameters
dragInfoThe information about the element or vertex.
Return Value
The intended result of dragging.
-
Called when element or vertex is being dragged to specific location.
Declaration
Objective-C
- (enum NTVectorElementDragResult)onDragMove: (NTVectorElementDragInfo *)dragInfo;Parameters
dragInfoThe information about the element or vertex.
Return Value
The intended result of dragging.
-
Called when element or vertex is being dragged to specific location.
Declaration
Objective-C
- (enum NTVectorElementDragResult) onDragMoveSwigExplicitNTVectorEditEventListener: (NTVectorElementDragInfo *)dragInfo;Parameters
dragInfoThe information about the element or vertex.
Return Value
The intended result of dragging.
-
Called when element or vertex dragging is finished.
Declaration
Objective-C
- (enum NTVectorElementDragResult)onDragEnd:(NTVectorElementDragInfo *)dragInfo;Parameters
dragInfoThe information about the element or vertex.
Return Value
The intended result of dragging.
-
Called when element or vertex dragging is finished.
Declaration
Objective-C
- (enum NTVectorElementDragResult) onDragEndSwigExplicitNTVectorEditEventListener: (NTVectorElementDragInfo *)dragInfo;Parameters
dragInfoThe information about the element or vertex.
Return Value
The intended result of dragging.
-
Called when drag point style is needed.
Declaration
Objective-C
- (NTPointStyle *)onSelectDragPointStyle:(NTVectorElement *)element dragPointStyle:(enum NTVectorElementDragPointStyle) dragPointStyle;Parameters
elementThe vector element being dragged
dragPointStyleDrag point style.
Return Value
The point style to use for the drag point.
-
Undocumented
Declaration
Objective-C
-(id)init; -
Undocumented
Declaration
Objective-C
-(void)dealloc;
View on GitHub
NTVectorEditEventListener Class Reference