![]() |
This document is archived and information here might be outdated. Recommended version. |
| ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Classes > C > ControlsGlobeFlickerCommand CoClass (ArcObjects .NET 10.4 SDK) |
Reveals layers below the selected layer in the globe by flickering for the specified time duration.
The CLSID of this command is: {B90E6188-654F-48A9-903F-9B0E7234E99C}.
This command works with the ToolbarControl, GlobeControl and ArcGlobe.
This command requires a 3DAnalyst extension. Any ArcGIS Engine application using this command must check out a 3DAnalyst extension using either the LicenseControl or the AoInitialize object.
This command must be used in conjunction with CommandsEnvironment singleton object. Failure to instantiate the CommandsEnvironment singleton object results in this command internally using it's own instance of the CommandsEnvironment object and appearing disabled to the end user.
This command gets the layer to be swiped from the ILayerEffectProperties::FlickerLayer property on the CommandsEnvironment singleton. This can be set programmatically or interactively by the end user selecting a layer from the ControlsGlobeLayerListToolControl.
| Interfaces | Description |
|---|---|
| ICommand (esriSystemUI) | Provides access to members that define a COM command. |
usingESRI.ArcGIS.Controls;usingESRI.ArcGIS.SystemUI;publicpartialclassForm1 : Form {privateCommandsEnvironmentClass m_CommandsEnvironment=newCommandsEnvironmentClass();private voidForm1_Load(objectsender, System.EventArgs e) {//Set buddy controlaxToolbarControl1.SetBuddyControl(axGlobeControl1);//Add items to ToolbarControlaxToolbarControl1.AddItem("esriControls.ControlsGlobeOpenDocCommand", -1, -1,false, 0, esriCommandStyles.esriCommandStyleIconOnly); axToolbarControl1.AddItem("esriControls.ControlsGlobeFlickerCommand", -1, -1,true, 0, esriCommandStyles.esriCommandStyleIconOnly); axToolbarControl1.AddItem("esriControls.ControlsFlickerRateToolControl", -1, -1, false, 0, esriCommandStyles.esriCommandStyleIconOnly); axToolbarControl1.AddItem("esriControls.ControlsGlobeLayerListToolControl", -1, -1,false, 0, esriCommandStyles.esriCommandStyleIconOnly); } }
ImportsESRI.ArcGIS.ControlsImportsESRI.ArcGIS.SystemUIPublic ClassForm1Privatem_CommandsEnvironmentAs NewCommandsEnvironmentClassPrivate SubForm1_Load(ByValsenderAsSystem.Object,ByValeAsSystem.EventArgs)HandlesMyBase.Load'Set buddy controlAxToolbarControl1.SetBuddyControl(AxGlobeControl1)'Add items to ToolbarControlAxToolbarControl1.AddItem("esriControls.ControlsGlobeOpenDocCommand", -1, -1,False, 0, esriCommandStyles.esriCommandStyleIconOnly) AxToolbarControl1.AddItem("esriControls.ControlsGlobeFlickerCommand", -1, -1,True, 0, esriCommandStyles.esriCommandStyleIconOnly) AxToolbarControl1.AddItem("esriControls.ControlsFlickerRateToolControl", -1, -1,False, 0, esriCommandStyles.esriCommandStyleIconOnly) AxToolbarControl1.AddItem("esriControls.ControlsGlobeLayerListToolControl", -1, -1,False, 0, esriCommandStyles.esriCommandStyleIconOnly)End Sub EndClass