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
element
The 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
element
The 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
element
The element which was unselected
-
Called when element is unselected.
Declaration
Objective-C
- (void)onElementDeselectedSwigExplicitNTVectorEditEventListener: (NTVectorElement *)element;
Parameters
element
The 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
element
The element that is being edited
geometry
The modified geometry for the element
-
Called when element should be deleted.
Declaration
Objective-C
- (void)onElementDelete:(NTVectorElement *)element;
Parameters
element
The element that needs to be deleted
-
Called before element or vertex is dragged.
Declaration
Objective-C
- (enum NTVectorElementDragResult)onDragStart: (NTVectorElementDragInfo *)dragInfo;
Parameters
dragInfo
The 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
dragInfo
The 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
dragInfo
The 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
dragInfo
The 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
dragInfo
The 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
dragInfo
The 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
element
The vector element being dragged
dragPointStyle
Drag 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;