FieldAnalysis.withDiscreteFieldFunction constructor
- required DiscreteFieldFunction function,
- required ColormapRenderer renderer,
Creates a FieldAnalysis with a DiscreteFieldFunction and a ColormapRenderer.
If the renderer is created with an empty or null colormap, the whole analysis is transparent.
If the color map does not contain a color mapped to any of the values in the function result, the displayed result is transparent.
Regions where the function result has no data are transparent.
Parameters:
function— A DiscreteFieldFunction to evaluate and visualize.renderer— A renderer that controls how the DiscreteFieldFunction is visualized.