

Public NotInheritable Class PointCloudSceneLayer Inherits Layer Implements ArcGIS.Desktop.Core.IMetadataInfo, IMetadataSource, System.ComponentModel.INotifyPropertyChanged
public sealed class PointCloudSceneLayer : Layer, ArcGIS.Desktop.Core.IMetadataInfo, IMetadataSource, System.ComponentModel.INotifyPropertyChanged
{
var scenelayerName = pointCloudSceneLayer?.Name;
}
{
// Note: call within QueuedTask.Run()
{
var def = pointCloudSceneLayer.GetDefinition() as CIMPointCloudLayer;
//Get the ColorModulation off the renderer
var modulation = def.Renderer.ColorModulation;
if (modulation == null)
modulation = new CIMColorModulationInfo();
//Set the minimum and maximum intensity as needed
modulation.MinValue = 0;
modulation.MaxValue = 100.0;
//apply back
def.Renderer.ColorModulation = modulation;
//Commit changes back to the CIM
pointCloudSceneLayer.SetDefinition(def);
}
}
{
// Note: call within QueuedTask.Run()
{
var def = pointCloudSceneLayer.GetDefinition() as CIMPointCloudLayer;
//Set the point shape and sizing on the renderer
def.Renderer.PointShape = PointCloudShapeType.DiskShaded;
var pointSize = new CIMPointCloudFixedSizeAlgorithm()
{
UseRealWorldSymbolSizes = false,
Size = 8
};
def.Renderer.PointSizeAlgorithm = pointSize;
//Commit changes back to the CIM
pointCloudSceneLayer.SetDefinition(def);
}
}
{
// Note: call within QueuedTask.Run()
{
var def = pointCloudSceneLayer.GetDefinition() as CIMPointCloudLayer;
//Set the point shape and sizing on the renderer
def.Renderer.PointShape = PointCloudShapeType.DiskFlat;//default
var scaleSize = new CIMPointCloudSplatAlgorithm()
{
MinSize = 8,
ScaleFactor = 1.0 //100%
};
def.Renderer.PointSizeAlgorithm = scaleSize;
//Commit changes back to the CIM
pointCloudSceneLayer.SetDefinition(def);
}
}
{
// Note: call within QueuedTask.Run()
{
var def = pointCloudSceneLayer.GetDefinition() as CIMPointCloudLayer;
//PointsBudget - corresponds to Display Limit on the UI
// - the absolute maximum # of points to display
def.PointsBudget = 1000000;
//PointsPerInch - corresponds to Density Min --- Max on the UI
// - the max number of points per display inch to renderer
def.PointsPerInch = 15;
//Commit changes back to the CIM
pointCloudSceneLayer.SetDefinition(def);
}
}
System.Object
ArcGIS.Desktop.Framework.Contracts.PropertyChangedBase
ArcGIS.Desktop.Mapping.MapMember
ArcGIS.Desktop.Mapping.Layer
ArcGIS.Desktop.Mapping.PointCloudSceneLayer
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)