C# Class GlobeDynamicObjectTracking.TrackDynamicObject

Inheritance: BaseCommand, IDisposable
显示文件 Open project: Esri/arcobjects-sdk-community-samples

Public Methods

Method Description
Dispose ( ) : void
OnClick ( ) : void

Occurs when this command is clicked

OnCreate ( object hook ) : void

Occurs when this command is created

TrackDynamicObject ( ) : System

Class Ctor

Private Methods

Method Description
AddTrackElement ( IGlobeGraphicsLayer globeGraphicsLayer, esriGpsPositionInfo position ) : int

Adds a sphere element to the given graphics layer at the specified position

ArcGISCategoryRegistration ( Type registerType ) : void

Required method for ArcGIS Component Category registration - Do not modify the contents of this method with the code editor.

ArcGISCategoryUnregistration ( Type registerType ) : void

Required method for ArcGIS Component Category unregistration - Do not modify the contents of this method with the code editor.

GetFeatureLayer ( ) : IFeatureLayer

get a featurelayer that would be used by the real-time simulator

OnPositionUpdated ( esriGpsPositionInfo &position, bool estimate ) : void

The real-time feed position updated event handler

OpenFeatureClass ( ) : IFeatureClass

Opens a shapefile polyline featureclass

RegisterFunction ( Type registerType ) : void
TrackAboveTarget ( IGlobeCamera globeCamera, IPoint objectLocation ) : void

should the user choose to track the element from above, set the camera above the element

TrackDynamicObject_PositionUpdated ( esriGpsPositionInfo &position, bool estimate ) : void
TrackFollowTarget ( IGlobeCamera globeCamera, double newLon, double newLat, double newAlt, double oldLon, double oldLat, double oldAlt ) : void

If the user chose to track the element from behind, set the camera behind the element so that the camera will be placed on the line connecting the previous and the current element's position.

UnregisterFunction ( Type registerType ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

OnClick() public method

Occurs when this command is clicked
public OnClick ( ) : void
return void

OnCreate() public method

Occurs when this command is created
public OnCreate ( object hook ) : void
hook object Instance of the application
return void

TrackDynamicObject() public method

Class Ctor
public TrackDynamicObject ( ) : System
return System