public class AccessObjectMaskSimple extends Object implements AccessObjectMask<ObjectMask>
ObjectMask
s.Constructor and Description |
---|
AccessObjectMaskSimple() |
Modifier and Type | Method and Description |
---|---|
ObjectMask |
clipTo(ObjectMask element,
Extent extent)
Ensures the element lies within a certain extent.
|
ObjectMask |
createFrom(int index,
ObjectMask object)
Creates an element of type
T from an object-representation and index. |
ObjectMask |
objectFor(ObjectMask element)
An object-mask for a given element.
|
ObjectMask |
shiftBy(ObjectMask element,
ReadableTuple3i quantity)
Positionally-shifts an element by a given quantity in the positive direction.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
boundingBoxFor
public ObjectMask objectFor(ObjectMask element)
AccessObjectMask
This operation is assumed to involve negligible computational cost.
objectFor
in interface AccessObjectMask<ObjectMask>
element
- the element.public ObjectMask shiftBy(ObjectMask element, ReadableTuple3i quantity)
AccessObjectMask
shiftBy
in interface AccessObjectMask<ObjectMask>
element
- the element to shift by.quantity
- the quantity to shift by.element
but positionally-shifted.public ObjectMask createFrom(int index, ObjectMask object)
AccessObjectMask
T
from an object-representation and index.createFrom
in interface AccessObjectMask<ObjectMask>
index
- the index of the object-representation in terms of the original list.object
- an object-representation corresponding to this index.public ObjectMask clipTo(ObjectMask element, Extent extent)
AccessObjectMask
clipTo
in interface AccessObjectMask<ObjectMask>
element
- the element.extent
- the extent to clip to.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.