Package qupath.lib.gui.viewer.overlays
Class ZProjectOverlay
java.lang.Object
qupath.lib.gui.viewer.overlays.AbstractOverlay
qupath.lib.gui.viewer.overlays.AbstractImageOverlay
qupath.lib.gui.viewer.overlays.ZProjectOverlay
- All Implemented Interfaces:
PathOverlay
-
Property Summary
PropertiesProperties inherited from class qupath.lib.gui.viewer.overlays.AbstractImageOverlay
interpolation
-
Nested Class Summary
Nested classes/interfaces inherited from class qupath.lib.gui.viewer.overlays.AbstractOverlay
AbstractOverlay.LocationStringFunction
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ZProjectOverlay
create
(QuPathViewer viewer) Gets the value of theprojection
property.Get theImageRenderer
used with this overlay, which may be null.void
paintOverlay
(Graphics2D g2d, ImageRegion imageRegion, double downsampleFactor, ImageData<BufferedImage> imageData, boolean paintCompletely) Paint the overlay to a graphics object.Get theImageRenderer
property used with this overlay.void
setProjection
(ZProjectedImageServer.Projection projection) Sets the value of theprojection
property.void
setRenderer
(ImageRenderer renderer) Set theImageRenderer
property used with this overlay.Methods inherited from class qupath.lib.gui.viewer.overlays.AbstractImageOverlay
getInterpolation, interpolationProperty, setInterpolation, setInterpolation
Methods inherited from class qupath.lib.gui.viewer.overlays.AbstractOverlay
getAlphaComposite, getLocationString, getLocationStringFunction, getOpacity, getOverlayOptions, getPreferredOverlayColor, isVisible, setAlphaComposite, setLocationStringFunction, setOpacity, setPreferredOverlayColor
-
Property Details
-
projection
- See Also:
-
renderer
Get theImageRenderer
property used with this overlay.- See Also:
-
-
Constructor Details
-
ZProjectOverlay
-
-
Method Details
-
create
-
getProjection
Gets the value of theprojection
property.- Property description:
- Returns:
- the value of the
projection
property - See Also:
-
projectionProperty
- Returns:
- the
projection
property - See Also:
-
setProjection
Sets the value of theprojection
property.- Property description:
- Parameters:
projection
- the value for theprojection
property- See Also:
-
rendererProperty
Get theImageRenderer
property used with this overlay.- Returns:
- See Also:
-
setRenderer
Set theImageRenderer
property used with this overlay. -
getRenderer
Get theImageRenderer
used with this overlay, which may be null.- Returns:
-
paintOverlay
public void paintOverlay(Graphics2D g2d, ImageRegion imageRegion, double downsampleFactor, ImageData<BufferedImage> imageData, boolean paintCompletely) Description copied from interface:PathOverlay
Paint the overlay to a graphics object. The graphics object will have a transform applied to it, so the painting should make use of coordinates in the original image space.- Specified by:
paintOverlay
in interfacePathOverlay
- Overrides:
paintOverlay
in classAbstractImageOverlay
- Parameters:
g2d
- Graphics2D object to which drawing should be performed. This should have any transform already applied to it.imageRegion
- The maximum image region that should be shown.downsampleFactor
- The downsample factor at which the overlay will be viewed. There is no need for rescaling according to this value since it has already been applied to theGraphics2D
as part of itsAffineTransform
, however it may optionally be needed within the method e.g. to correct line thicknesses.imageData
- theImageData
associated with this overlay. If the overlay is being displayed on a viewer, this is theImageData
open within the viewer. Not all overlays require this, and it may be null.paintCompletely
- If true, the method is permitted to return without completely painting everything, for performance reasons.
-