Package qupath.lib.gui.viewer
Class DownsampledShapeCache
java.lang.Object
qupath.lib.gui.viewer.DownsampledShapeCache
Helper class for managing simplified versions of a shape for rendering shapes at lower resolutions.
- Since:
- v0.6.0
- 
Method SummaryModifier and TypeMethodDescriptionstatic ShapegetShapeForDownsample(ROI roi, double downsample) Get the shape for a particular downsample.
- 
Method Details- 
getShapeForDownsampleGet 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 returnROI.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
 
 
-