public VoxelVariableStatistics Statistics {get;}
Public ReadOnly Property Statistics As VoxelVariableStatistics
public VoxelVariableStatistics Statistics {get;}
Public ReadOnly Property Statistics As VoxelVariableStatistics
//var voxelLayer = ... ; //Must be on the QueuedTask.Run() //Get the variable profile on which to access the data var variable = voxelLayer.SelectedVariableProfile; //or use ...voxelLayer.GetVariableProfiles() //Data range //At 2.x - //var min = variable.GetVariableStatistics().MinimumValue; //var max = variable.GetVariableStatistics().MaximumValue; var min = variable.Statistics.MinimumValue; var max = variable.Statistics.MaximumValue; //Color range (Continuous only) double color_min, color_max; if (variable.DataType == VoxelVariableDataType.Continuous) { var renderer = variable.Renderer as CIMVoxelStretchRenderer; color_min = renderer.ColorRangeMin; color_max = renderer.ColorRangeMax; }
Target Platforms: Windows 11, Windows 10, Windows 8.1