00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 @class AGSGeometry;
00020 @class AGSGraphic;
00021 @class AGSCompositeSymbol;
00022 @class AGSMarkerSymbol;
00023
00031 @interface AGSSketchGraphicsLayer : AGSGraphicsLayer <AGSMapViewTouchDelegate> {
00032 @private
00033 AGSGeometry *_geometry;
00034
00035 AGSGraphic *_graphic;
00036 AGSGraphic *_vertices;
00037 AGSGraphic *_midVertices;
00038 AGSGraphic *_selectedVertexGraphic;
00039
00040 AGSCompositeSymbol *_mainSymbol;
00041 AGSMarkerSymbol *_vertexSymbol;
00042 AGSMarkerSymbol *_midVertexSymbol;
00043 AGSMarkerSymbol *_selectedVertexSymbol;
00044
00045 NSArray *_kvoArray;
00046
00047 NSUndoManager *_undoManager;
00048 }
00049
00055 @property (nonatomic, retain) AGSGeometry *geometry;
00056
00061 @property (nonatomic, retain, readwrite) AGSCompositeSymbol *mainSymbol;
00062
00066 @property (nonatomic, retain, readwrite) AGSMarkerSymbol *selectedVertexSymbol;
00067
00071 @property (nonatomic, retain, readwrite) AGSMarkerSymbol *vertexSymbol;
00072
00076 @property (nonatomic, retain, readwrite) AGSMarkerSymbol *midVertexSymbol;
00077
00081 @property (nonatomic, retain, readonly) NSUndoManager *undoManager;
00082
00087 -(id)initWithGeometry:(AGSGeometry*)geometry;
00088
00093 -(BOOL)removeSelectedVertex;
00094
00100 -(void)removeVertexInPart:(int)partIndex atIndex:(int)coordinateIndex;
00101
00105 -(void)addPart;
00106
00111 -(void)removePartAtIndex:(int)partIndex;
00112
00117 -(BOOL)removeSelectedPart;
00118
00122 -(void)clear;
00123
00128 -(void)applyGeometry:(AGSGeometry*)geometry;
00129
00136 -(void)insertVertex:(AGSPoint*)point inPart:(int)partIndex atIndex:(int)coordinateIndex;
00137
00144 -(void)moveVertexInPart:(int)partIndex atIndex:(int)coordinateIndex toPoint:(AGSPoint*)point;
00145
00149 -(void)selectLastVertex;
00150
00154 -(void)mapView:(AGSMapView *)mapView didClickAtPoint:(CGPoint)screen mapPoint:(AGSPoint *)mappoint graphics:(NSDictionary *)graphics;
00155
00159 -(void)mapView:(AGSMapView *)mapView didEndTapAndHoldAtPoint:(CGPoint)screen mapPoint:(AGSPoint *)mappoint graphics:(NSDictionary *)graphics;
00160
00164 +(AGSCompositeSymbol*)defaultMainSymbol;
00165
00169 +(AGSMarkerSymbol*)defaultSelectedVertexSymbol;
00170
00174 +(AGSMarkerSymbol*)defaultVertexSymbol;
00175
00179 +(AGSMarkerSymbol*)defaultMidVertexSymbol;
00180
00181 @end