public interface ThreeDimensionalBooleanAccess extends ThreeDimensionalBooleanReadAccess, ThreeDimensionalAccess<java.lang.Boolean>
Modifier and Type | Field and Description |
---|---|
static ThreeDimensionalBooleanAccess |
EMPTY
Empty 3dimensional boolean access.
|
Modifier and Type | Method and Description |
---|---|
default void |
changeAllValues(BooleanOperator1 operator)
Change all values by applying an operator.
|
default void |
changeValueAt(BooleanOperator1 operator,
int ix,
int iy,
int iz)
Change the value at the given indexes.
|
default void |
fillValuesByIndex(IntPredicate3 setter)
Set all values depending on their indexes.
|
default void |
setElementAt(java.lang.Boolean element,
int ix,
int iy,
int iz)
Set the element at the given indexes.
|
void |
setValueAt(boolean value,
int ix,
int iy,
int iz)
Set the value at the given indexes.
|
default TwoDimensionalBooleanAccess |
subAtX(int fixX)
Get a 2-dimensional view of the plane at the given X index.
|
default TwoDimensionalBooleanAccess |
subAtY(int fixY)
Get a 2-dimensional view of the plane at the given Y index.
|
default TwoDimensionalBooleanAccess |
subAtZ(int fixZ)
Get a 2-dimensional view of the plane at the given Z index.
|
getElementAt, getValueAt, singleton
changeAll, changeAll, empty, fillByIndex, setElement
getElement, getNumDimensions, getNumElements, getSize, getSizes, sizeX, sizeY, sizeZ, view, visitAll, visitAll
change, setAll, setFrom, setFrom, setFrom
empty, linearized
static final ThreeDimensionalBooleanAccess EMPTY
void setValueAt(boolean value, int ix, int iy, int iz)
value
- value to setix
- X indexiy
- Y indexiz
- Z indexdefault void changeValueAt(@NotNull BooleanOperator1 operator, int ix, int iy, int iz)
operator
- operator to apply to the valueix
- X indexiy
- Y indexiz
- Z indexdefault void changeAllValues(@NotNull BooleanOperator1 operator)
operator
- operator to applydefault void setElementAt(@NotNull java.lang.Boolean element, int ix, int iy, int iz)
ThreeDimensionalAccess
setElementAt
in interface ThreeDimensionalAccess<java.lang.Boolean>
element
- element to setix
- index in X direction from 0
(included) to ThreeDimensionalReadAccess.sizeX()
(excluded)iy
- index in Y direction from 0
(included) to ThreeDimensionalReadAccess.sizeY()
(excluded)iz
- index in Y direction from 0
(included) to ThreeDimensionalReadAccess.sizeZ()
(excluded)@NotNull default TwoDimensionalBooleanAccess subAtX(int fixX)
ThreeDimensionalReadAccess
subAtX
in interface ThreeDimensionalAccess<java.lang.Boolean>
subAtX
in interface ThreeDimensionalBooleanReadAccess
subAtX
in interface ThreeDimensionalReadAccess<java.lang.Boolean>
fixX
- fix X indexfixX
@NotNull default TwoDimensionalBooleanAccess subAtY(int fixY)
ThreeDimensionalReadAccess
subAtY
in interface ThreeDimensionalAccess<java.lang.Boolean>
subAtY
in interface ThreeDimensionalBooleanReadAccess
subAtY
in interface ThreeDimensionalReadAccess<java.lang.Boolean>
fixY
- fix Y indexfixY
@NotNull default TwoDimensionalBooleanAccess subAtZ(int fixZ)
ThreeDimensionalReadAccess
subAtZ
in interface ThreeDimensionalAccess<java.lang.Boolean>
subAtZ
in interface ThreeDimensionalBooleanReadAccess
subAtZ
in interface ThreeDimensionalReadAccess<java.lang.Boolean>
fixZ
- fix Z indexfixZ
default void fillValuesByIndex(@NotNull IntPredicate3 setter)
setter
- setter which provides the value to set for each index combination