public CIMPointCloudRenderer Renderer {get; set;}
Public Property Renderer As CIMPointCloudRenderer
public CIMPointCloudRenderer Renderer {get; set;}
Public Property Renderer As CIMPointCloudRenderer
//Must be called on the MCT //var pcsl = ...; var def = pcsl.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 pcsl.SetDefinition(def);
//Must be called on the MCT //var pcsl = ...; var def = pcsl.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 pcsl.SetDefinition(def);
//Must be called on the MCT //var pcsl = ...; var def = pcsl.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 pcsl.SetDefinition(def);
Target Platforms: Windows 11, Windows 10