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 Summary
Modifier and TypeMethodDescriptionstatic Shape
getShapeForDownsample
(ROI roi, double downsample) Get the shape for a particular downsample.
-
Method Details
-
getShapeForDownsample
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 returnROI.getShape()
for simple shapes that can already be rendered efficiently.- Parameters:
roi
- the roi for which to get the shapedownsample
- the downsample factor- Returns:
- the shape to render at the specified downsample
-