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

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

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

Метод Описание
CreateFeatureWorkspace ( string workspaceNameString ) : IFeatureWorkspace

Create the feature workspace

CreateObserversFeatureClass ( IFeatureWorkspace featWorkspace, string name ) : IFeatureClass

Create the point feature class for observer locations

GetSpatialAnalystLicense ( ) : esriLicenseStatus

Check out spatial analyst license

RLOSViewModel ( ) : System

One and only constructor

SetDatabaseFieldValue ( IRowBuffer ipRowBuffer, string strFieldName, object oFieldValue ) : void

Sets a database fields value Throws an exception if the field is not found.

StartEditOperation ( IWorkspace ipWorkspace ) : void

Start Editing operation

StopEditOperation ( IWorkspace ipWorkspace ) : bool

Stop Editing operation

UnqueValueRenderer ( IFeatureWorkspace workspace, IFeatureClass fc ) : IFeatureRenderer

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

Метод Описание
CreateMapElement ( ) : void

Where all of the work is done. Override from TabBaseViewModel

CreateMaskFeatureClass ( IFeatureWorkspace featWorkspace, string name ) : IFeatureClass

Create a polygon feature class used to store buffer geometries for observer points

EnableOkCancelClearBtns ( bool enable ) : void

Enable or disable the form buttons

GenerateRasterRenderer ( IRaster pRaster ) : IRasterRenderer

Generates a raster renderer using the provided settings

GetAngularDistance ( IMap map, double inputDistance, AngularTypes angularType ) : double

Method to get an angular distance in the correct units for the map

GetAngularDistanceFromTo ( AngularTypes fromType, AngularTypes toType, double input ) : double

Method to convert to/from different types of angular units

GetAngularType ( int angularUnitFactoryCode ) : AngularTypes

Retrieves the angular type based on the esriSRUnit type

GetConversionFactor ( ISpatialReference ipSpatialReference ) : double

Gets native units to meters conversion factor

GetLayerPath ( ILayer layer ) : string

Return the layer file path of the provided layer

GetLinearDistance ( IMap map, double inputDistance, DistanceTypes distanceType ) : double
IntersectOutput ( IRasterLayer rasterLayer, IDataset ipDataset, IFeatureWorkspace workspace, List geomList ) : string

Run RasterToPoly tool to convert input raster to poly's. Then run Intersect if input geomList has features

OnCancelCommand ( object obj ) : void
OnClearCommand ( object obj ) : void
OnDeleteAllPointsCommand ( object obj ) : void
OnDeletePointCommand ( object obj ) : void
OnNewMapPointEvent ( object obj ) : void

Override this event to collect observer points based on tool mode Setting the observer point to blue since the output is green / red

OnSubmitCommand ( object obj ) : void
Reset ( bool toolReset ) : void
SetFieldValues ( double finalObserverOffset, double finalSurfaceOffset, double finalMinDistance, double finalMaxDistance, double finalLeftHorizontalFOV, double finalRightHorizontalFOV, double finalBottomVerticalFOV, double finalTopVerticalFOV, IFeature ipFeature ) : void

Set the values for the associated fields

SetGPMask ( IFeatureWorkspace workspace, List geomList, IGeoProcessor2 gp, string fcName ) : string

Set a mask on the gp object to buffer the output to the specified distance

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

CreateFeatureWorkspace() публичный статический Метод

Create the feature workspace
public static CreateFeatureWorkspace ( string workspaceNameString ) : IFeatureWorkspace
workspaceNameString string Workspace name
Результат IFeatureWorkspace

CreateObserversFeatureClass() публичный статический Метод

Create the point feature class for observer locations
public static CreateObserversFeatureClass ( IFeatureWorkspace featWorkspace, string name ) : IFeatureClass
featWorkspace IFeatureWorkspace
name string
Результат IFeatureClass

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

Check out spatial analyst license
public GetSpatialAnalystLicense ( ) : esriLicenseStatus
Результат esriLicenseStatus

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

One and only constructor
public RLOSViewModel ( ) : System
Результат System

SetDatabaseFieldValue() публичный статический Метод

Sets a database fields value Throws an exception if the field is not found.
public static SetDatabaseFieldValue ( IRowBuffer ipRowBuffer, string strFieldName, object oFieldValue ) : void
ipRowBuffer IRowBuffer The tables row buffer
strFieldName string The fields name
oFieldValue object The value to set
Результат void

StartEditOperation() публичный статический Метод

Start Editing operation
public static StartEditOperation ( IWorkspace ipWorkspace ) : void
ipWorkspace IWorkspace IWorkspace
Результат void

StopEditOperation() публичный статический Метод

Stop Editing operation
public static StopEditOperation ( IWorkspace ipWorkspace ) : bool
ipWorkspace IWorkspace IWorkspace
Результат bool

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

public UnqueValueRenderer ( IFeatureWorkspace workspace, IFeatureClass fc ) : IFeatureRenderer
workspace IFeatureWorkspace
fc IFeatureClass
Результат IFeatureRenderer