C# Class DynamicDisplayCompass.CompassCmd

Inheritance: BaseCommand
Show file Open project: Esri/arcobjects-sdk-community-samples

Public Methods

Method Description
CompassCmd ( ) : System

constructor

OnClick ( ) : void

Occurs when this command is clicked

OnCreate ( object hook ) : void

Occurs when this command is created

Private Methods

Method Description
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.

CreateDisplayLists ( ) : void

create the display list for the compass symbol

CreateTexture ( Bitmap bitmap ) : uint

Given a bitmap (GDI+), create for it an OpenGL texture and return its ID

in order to allow hardware acceleration, texture size must be power of two.

OnAfterDynamicDraw ( esriDynamicMapDrawPhase DynamicMapDrawPhase, IDisplay Display, IDynamicDisplay dynamicDisplay ) : void

DynamicMap AfterDynamicDraw event handler method

OnDeviceFrameUpdated ( IDisplayTransformation sender, bool sizeChanged ) : void

nDeviceFrameUpdated event handler

RegisterFunction ( Type registerType ) : void
UnregisterFunction ( Type registerType ) : void

Method Details

CompassCmd() public method

constructor
public CompassCmd ( ) : System
return System

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