Custom Arrow Drawing

Showing the OverView Map

This sample develops a plug-in that can draw custom arrow. In the Object Operations tab, a Arrow Drawing button will be added. If your layer is editable, click this button to draw arrows.

For developing, users need to draw custom graphics, such as five stars. The application supports to custom drawing graphics. And those models can be reused for map, layout, scene so as to realize 2D and 3D integration drawing.

Control/Object/Interface

Control/Object/Interface Property Methods
ArrowDrawing IsCompleted CalculatePoint, Distance, GetArrow, VerifyInput, ParameterInputMethod, GetGeometry, GeometryDrawingTrackingResult
CtrlAction FormClass Run()
Application ActiveApplication, Output  
GeometryDrawing IsCompleted GetGeometry, VerifyInput
IGeometryDrawingManager CurrentGeometryDrawing  

Basic Steps:

  1. Open CustomArrowDrawing.sln in the SuperMap Deskpro .NET SampleCode\CustomArrowDrawing\ folder with Microsoft Visual Studio 2008 and compile it.
  2. When succeeded, you can find two files generated: SuperMap.Desktop.CustomArrowDrawing.dll located in the SuperMap iDesktop 7C Bin\Plugins\ThemeStyleDesign folder and SuperMap.Desktop.CustomArrowDrawing.config located in the SuperMap iDesktop 7C WorkEnvironment\Default folder.
  3. Start SuperMap iDesktop 7C
  4. Open a datasource in current workspace.
  5. Create a new region dataset, and add the dataset to the map window.
  6. Keep the region data editable. In the Object Operations tab, click Draw Arrow.
  7. Draw any arrow in the editable layer.

Note