public class DrawColoredObjects extends Object
ObjectMask
with a color.
The color depending on whether it is paired or unpaired in an Assignment
.
Constructor and Description |
---|
DrawColoredObjects(DisplayStack background,
boolean flatten,
int outlineWidth) |
Modifier and Type | Method and Description |
---|---|
Stack |
createObjectsImage(Assignment<ObjectMask> assignment,
boolean left,
AssignmentColorPool colorPool)
Creates an image with the objects colored, as indicated in the class description.
|
public DrawColoredObjects(DisplayStack background, boolean flatten, int outlineWidth)
public Stack createObjectsImage(Assignment<ObjectMask> assignment, boolean left, AssignmentColorPool colorPool) throws OutputWriteFailedException
assignment
- the assignment to draw.left
- if true, draws the left objects from the assignment, otherwise the
right objects.colorPool
- the colors to use for drawing objects.OutputWriteFailedException
- if the image cannot be created.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.