Class DownsampledShapeCache

java.lang.Object
qupath.lib.gui.viewer.DownsampledShapeCache

public class DownsampledShapeCache extends Object
Helper class for managing simplified versions of a shape for rendering shapes at lower resolutions.
Since:
v0.6.0
  • Method Details

    • getShapeForDownsample

      public static Shape getShapeForDownsample(ROI roi, double downsample)
      Get the shape for a particular downsample. Important! Because the purpose of this class is efficiency, the returned shape must not be modified. Also, it is permitted to return ROI.getShape() for simple shapes that can already be rendered efficiently.
      Parameters:
      roi - the roi for which to get the shape
      downsample - the downsample factor
      Returns:
      the shape to render at the specified downsample