public class Outline extends DrawObject
Constructor and Description |
---|
Outline()
Creates with an outline-width of 1 voxel.
|
Outline(int outlineWidth)
Create with a particular outline-width.
|
Outline(int outlineWidth,
boolean includeZ) |
Modifier and Type | Method and Description |
---|---|
void |
drawSingle(ObjectWithProperties object,
RGBStack stack,
ObjectDrawAttributes attributes,
int iteration,
BoundingBox restrictTo)
Draws a single-object on top of a RGB-stack.
|
int |
getOutlineWidth()
The size of the outline, in terms of the number of voxels.
|
boolean |
isIncludeZ()
If true the outline is also applied in the z-dimension, otherwise this is ignored as possible
boundary
|
void |
setIncludeZ(boolean includeZ)
If true the outline is also applied in the z-dimension, otherwise this is ignored as possible
boundary
|
void |
setOutlineWidth(int outlineWidth)
The size of the outline, in terms of the number of voxels.
|
drawCollection, drawCollection
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public Outline()
public Outline(int outlineWidth)
outlineWidth
- the size of the outline, in terms of the number of voxels.public Outline(int outlineWidth, boolean includeZ)
public void drawSingle(ObjectWithProperties object, RGBStack stack, ObjectDrawAttributes attributes, int iteration, BoundingBox restrictTo) throws OperationFailedException
DrawObject
drawSingle
in class DrawObject
object
- the object to draw.stack
- the image to draw on.attributes
- attributes for each object when drawing.iteration
- the current iteration.restrictTo
- a restriction on which part of stack we draw onto to (considered in terms
of the possibly-zoomed pixel coordinates).OperationFailedException
- if the object cannot be successfully drawn.public int getOutlineWidth()
public void setOutlineWidth(int outlineWidth)
public boolean isIncludeZ()
public void setIncludeZ(boolean includeZ)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.