C# 클래스 ProAppVisibilityModule.ViewModels.ProTabBaseViewModel

Base class for all the common properties, commands and events for tab items
상속: BaseViewModel
파일 보기 프로젝트 열기: Esri/visibility-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, string text = "" ) : 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

GetDistanceFromTo ( DistanceTypes fromType, DistanceTypes toType, double input ) : double

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

OnActivateTool ( object obj ) : void
OnCancelCommand ( object obj ) : void
OnClearGraphics ( object obj ) : 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

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

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

ResetPoints ( ) : void

Resets Points 1 and 2

메소드 상세

DeactivateTool() 공개 메소드

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

ProTabBaseViewModel() 공개 메소드

public ProTabBaseViewModel ( ) : System
리턴 System