C# 클래스 ProAppDistanceAndDirectionModule.ViewModels.ProTabBaseViewModel

상속: BaseViewModel
파일 보기 프로젝트 열기: Esri/distance-direction-addin-dotnet

공개 메소드들

메소드 설명
DeactivateTool ( string toolname ) : void

Method used to deactivate tool

ProTabBaseViewModel ( ) : System

비공개 메소드들

메소드 설명
AddGraphicToMap ( Geometry geom, CIMColor color, bool IsTempGraphic = false, double size = 1.0 ) : System.Threading.Tasks.Task
AddGraphicToMap ( Geometry geom, bool IsTempGraphic = false, double size = 1.0 ) : void
ClearTempGraphics ( ) : void

Method to clear all temp graphics

CreateMapElement ( ) : void

Method is called when a user pressed the "Enter" key or when a second point is created for a line from mouse clicks Derived class must override this method in order to create map elements Clears temp graphics by default

GetFormattedPoint ( MapPoint point ) : string

Method will return a formatted point as a string based on the configuration settings for display coordinate type

GetGeodesicDistance ( MapPoint p1, MapPoint p2 ) : double
GetGraphicType ( ) : GraphicTypes
GetLinearUnit ( DistanceTypes dtype ) : LinearUnit
GetMapPointFromString ( string coordinate ) : MapPoint

Method used to convert a string to a known coordinate Assumes WGS84 for now Uses the IConversionNotation interface

IsValid ( System obj ) : bool
OnClearGraphics ( ) : void

Clears all the graphics from the maps graphic container Inlucdes temp and map graphics Only removes temp and map graphics that were created by this add-in

OnEditPropertiesDialog ( ) : void

Handler for opening the edit properties dialog

OnEnterKeyCommand ( object obj ) : void

Handler for the "Enter"key command Calls CreateMapElement

OnMouseMoveEvent ( object obj ) : void

Handler for the mouse move event When the mouse moves accross the map, IPoints are returned to aid in updating feedback to user

OnNewMapPointEvent ( object obj ) : void

Handler for the new map point click event

OnSaveAs ( ) : void

Saves graphics to file gdb or shp file

OnTabItemSelected ( object obj ) : void

Handler for the tab item selected event Helps keep track of which tab item/viewmodel is active

Reset ( bool toolReset ) : void

Method used to totally reset the tool reset points, feedback clear out textboxes

ResetFeedback ( ) : void

Resets feedback aka cancels feedback

ResetPoints ( ) : void

Resets Points 1 and 2

SetGeodesicDistance ( MapPoint p1, MapPoint p2 ) : void
UpdateDistanceFromTo ( DistanceTypes fromType, DistanceTypes toType, double input ) : double

Ugly method to convert to/from different types of distance units

UpdateFeedbackWithGeoLine ( LineSegment segment ) : void

메소드 상세

DeactivateTool() 공개 메소드

Method used to deactivate tool
public DeactivateTool ( string toolname ) : void
toolname string
리턴 void

ProTabBaseViewModel() 공개 메소드

public ProTabBaseViewModel ( ) : System
리턴 System