C# Class ArcMapAddinVisibility.ViewModels.LOSBaseViewModel

Inheritance: TabBaseViewModel
显示文件 Open project: Esri/visibility-addin-dotnet

Private Properties

Property Type Description
DeletePoints void
GetOffsetInZUnits double
IsPointWithinExtent bool
IsValidPoint bool
OnActivateTool void
OnDeleteAllPointsCommand void
OnDeletePointCommand void
OnDisplayCoordinateTypeChanged void
OnEditPropertiesDialogCommand void
OnMapTocUpdated void
OnNewMapPointEvent void
Reset void
ResetSurfaceNames void

Public Methods

Method Description
GetLayerFromMapByName ( IMap map, string name ) : ILayer

returns ILayer if found in the map layer collection

GetSurfaceFromMapByName ( IMap map, string name ) : ISurface

Method to get a ISurface from a map with layer name

GetSurfaceNamesFromMap ( IMap map, bool IncludeTinLayers = false ) : List

Method to get all the names of the raster/tin layers that support ISurface we use this method to populate a combobox for input selection of surface layer

LOSBaseViewModel ( ) : System

Private Methods

Method Description
DeletePoints ( List observers ) : void
GetOffsetInZUnits ( IMap map, double offset, double zFactor, DistanceTypes distanceType ) : double

Method to get a z offset distance in the correct units for the map

IsPointWithinExtent ( IPoint point, IEnvelope env ) : bool

Method used to check to see if a point is contained by an envelope

IsValidPoint ( IPoint point, bool showPopup = false ) : bool

Method to check to see point is withing the currently selected surface returns true if there is no surface selected or point is contained by layer AOI returns false if the point is not contained in the layer AOI

OnActivateTool ( object obj ) : void

Override this method to implement a "Mode" to separate the input of observer points and target points

OnDeleteAllPointsCommand ( object obj ) : void
OnDeletePointCommand ( object obj ) : void

Command method to delete points

OnDisplayCoordinateTypeChanged ( object obj ) : void

Method to handle the display coordinate type change Need to update the list boxes

OnEditPropertiesDialogCommand ( object obj ) : void

Handler for opening the edit properties dialog

OnMapTocUpdated ( object obj ) : void

Method called when the map TOC is updated Reset surface names

OnNewMapPointEvent ( object obj ) : void

Override this event to collect observer points based on tool mode

Reset ( bool toolReset ) : void

Override to add aditional items in the class to reset tool

ResetSurfaceNames ( IMap map ) : void

Method used to reset the currently selected surfacename Use when toc items or map changes, on tab selection changed, etc

Method Details

GetLayerFromMapByName() public method

returns ILayer if found in the map layer collection
public GetLayerFromMapByName ( IMap map, string name ) : ILayer
map IMap IMap
name string string name of layer
return ILayer

GetSurfaceFromMapByName() public method

Method to get a ISurface from a map with layer name
public GetSurfaceFromMapByName ( IMap map, string name ) : ISurface
map IMap IMap that contains surface layer
name string Name of the layer that you are looking for
return ISurface

GetSurfaceNamesFromMap() public method

Method to get all the names of the raster/tin layers that support ISurface we use this method to populate a combobox for input selection of surface layer
public GetSurfaceNamesFromMap ( IMap map, bool IncludeTinLayers = false ) : List
map IMap IMap
IncludeTinLayers bool
return List

LOSBaseViewModel() public method

public LOSBaseViewModel ( ) : System
return System