public abstract class DrawObject extends AnchorBean<DrawObject>
ObjectMask
on a RGBStack
.Constructor and Description |
---|
DrawObject() |
Modifier and Type | Method and Description |
---|---|
void |
drawCollection(ObjectCollectionWithProperties objects,
RGBStack stack,
ObjectDrawAttributes attributes)
Writes object-masks onto of a
RGBStack - across all of the stack. |
void |
drawCollection(ObjectCollectionWithProperties objects,
RGBStack stack,
ObjectDrawAttributes attributes,
BoundingBox boxContainer)
Writes object-masks onto of a
RGBStack - within a bounding box only. |
abstract void |
drawSingle(ObjectWithProperties object,
RGBStack stack,
ObjectDrawAttributes attributes,
int iteration,
BoundingBox restrictTo)
Draws a single-object on top of a RGB-stack.
|
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public void drawCollection(ObjectCollectionWithProperties objects, RGBStack stack, ObjectDrawAttributes attributes) throws OperationFailedException
RGBStack
- across all of the stack.objects
- object-masks to write.stack
- stack to write masks on top of.attributes
- Extracts attributes from objects relevant to drawing.OperationFailedException
- if the object cannot be successfully drawn.public void drawCollection(ObjectCollectionWithProperties objects, RGBStack stack, ObjectDrawAttributes attributes, BoundingBox boxContainer) throws OperationFailedException
RGBStack
- within a bounding box only.objects
- object-masks to write.stack
- Stack to write masks on top of.attributes
- Extracts attributes from objects relevant to drawing.boxContainer
- A bounding box, which restricts where we write out to.OperationFailedException
- if the object cannot be successfully drawn.public abstract void drawSingle(ObjectWithProperties object, RGBStack stack, ObjectDrawAttributes attributes, int iteration, BoundingBox restrictTo) throws OperationFailedException
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.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.