public class PackedIndexSpaceID extends IndexSpaceID implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
protected int |
packedID |
Constructor and Description |
---|
PackedIndexSpaceID(IndexSpaceID id)
Constructs a PackedIndexSpaceID from the contents of the IndexSpaceID argument.
|
PackedIndexSpaceID(int i)
Constructs a one dimensional PackedIndexSpaceID with axis value set
to the argument.
|
PackedIndexSpaceID(int[] axes)
Constructs a PackedIndexSpaceID with dimensionality matching the length of the
parameter array.
|
PackedIndexSpaceID(int i,
int j)
Constructs a two dimensional PackedIndexSpaceID with axis values set
to the given values.
|
PackedIndexSpaceID(int i,
int j,
int k)
Constructs a three dimensional PackedIndexSpaceID with axis values set
to the given values.
|
Modifier and Type | Method and Description |
---|---|
void |
assign(PackedIndexSpaceID id)
Set the axes of this id to the axes of the parameter id.
|
java.lang.Object |
clone()
Return a copy of this IndexSpaceID.
|
IndexSpaceID |
copyID()
Return a copy of this IndexSpaceID.
|
int |
dim()
Returns the dimensionality of this IndexSpaceID.
|
int |
getCoord(int axisnumber)
Get the value corresponding to the specified axis.
|
int[] |
getCoords(int[] coords)
Fill the array argument with the coordinate values for this ISID.
|
static void |
main(java.lang.String[] args) |
void |
setCoord(int axisnumber,
int value)
Set the specified axis to the specified value.
|
java.lang.String |
toString()
Return a String representing the object.
|
add, add, containedBy, divide, equals, getCoords, greaterThanOrEqual, lessThanOrEqual, mod, multiply, negate, project, scale, scale, setDimensionsInUnits, shift, subtract, subtract, subtract, toString, volume
public PackedIndexSpaceID(int i)
public PackedIndexSpaceID(int i, int j)
public PackedIndexSpaceID(int i, int j, int k)
public PackedIndexSpaceID(int[] axes)
public PackedIndexSpaceID(IndexSpaceID id)
public final IndexSpaceID copyID()
copyID
in class IndexSpaceID
public java.lang.Object clone()
public final void assign(PackedIndexSpaceID id)
public int getCoord(int axisnumber)
getCoord
in class IndexSpaceID
public int[] getCoords(int[] coords)
getCoords
in class IndexSpaceID
public void setCoord(int axisnumber, int value)
public int dim()
public java.lang.String toString()
toString
in class IndexSpaceID
public static void main(java.lang.String[] args)