C# Класс ArcMapAddinVisibility.ViewModels.LOSBaseViewModel

Наследование: TabBaseViewModel
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
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

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

GetLayerFromMapByName() публичный Метод

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
Результат ILayer

GetSurfaceFromMapByName() публичный Метод

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
Результат ISurface

GetSurfaceNamesFromMap() публичный Метод

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
Результат List

LOSBaseViewModel() публичный Метод

public LOSBaseViewModel ( ) : System
Результат System