public class ImageBounds extends Object
Constructor and Description |
---|
ImageBounds()
Default constructor.
|
ImageBounds(ImageBounds bounds)
Copy constructor.
|
ImageBounds(int minT,
int maxT) |
ImageBounds(int minX,
int maxX,
int minY,
int maxY,
int minZ,
int maxZ)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getMaxT()
Returns T upper bound.
|
int |
getMaxX()
Returns X upper bound.
|
int |
getMaxY()
Returns Y upper bound.
|
int |
getMaxZ()
Returns Z upper bound.
|
int |
getMinT()
Returns T lower bound.
|
int |
getMinX()
Returns X lower bound.
|
int |
getMinY()
Returns Y lower bound.
|
int |
getMinZ()
Returns Z lower bound.
|
boolean |
inBounds(int xLoc,
int yLoc,
int zLoc)
Returns true of the specified location is within bounds.
|
boolean |
isSingleSlice()
Returns true if the upper and lower bounds of X, Y, or Z are the same.
|
void |
setRangeT(int minT,
int maxT)
Set series bounds.
|
void |
setRangeX(int minX,
int maxX)
Set X bounds.
|
void |
setRangeY(int minY,
int maxY)
Set Y bounds.
|
void |
setRangeZ(int minZ,
int maxZ)
Set Z bounds.
|
void |
setValues(int minX,
int maxX,
int minY,
int maxY,
int minZ,
int maxZ)
Set XYZ bounds.
|
void |
setValues(int minX,
int maxX,
int minY,
int maxY,
int minZ,
int maxZ,
int minT,
int maxT)
Set XYZT bounds.
|
String |
toString()
Returns a string representation of this object.
|
boolean |
valuesHaveBeenSet()
Returns true if setValues() has been called.
|
public ImageBounds()
public ImageBounds(ImageBounds bounds)
bounds
- the ImageBounds to copypublic ImageBounds(int minT, int maxT)
public ImageBounds(int minX, int maxX, int minY, int maxY, int minZ, int maxZ)
minX
- the minimum x indexmaxX
- the maximum x indexminY
- the minimum y indexmaxY
- the maximum y indexminZ
- the minimum z indexmaxZ
- the maximum z indexpublic int getMaxT()
public int getMaxX()
public int getMaxY()
public int getMaxZ()
public int getMinT()
public int getMinX()
public int getMinY()
public int getMinZ()
public boolean inBounds(int xLoc, int yLoc, int zLoc)
xLoc
- X locationyLoc
- Y locationzLoc
- Z locationpublic boolean isSingleSlice()
public void setRangeT(int minT, int maxT)
minT
- the minimum series indexmaxT
- the maximum series indexpublic void setRangeX(int minX, int maxX)
minX
- the minimum x indexmaxX
- the maximum x indexpublic void setRangeY(int minY, int maxY)
minY
- the minimum y indexmaxY
- the minimum y indexpublic void setRangeZ(int minZ, int maxZ)
minZ
- the minimum z indexmaxZ
- the maximum z indexpublic void setValues(int minX, int maxX, int minY, int maxY, int minZ, int maxZ)
minX
- the minimum x indexmaxX
- the maximum x indexminY
- the minimum y indexmaxY
- the minimum y indexminZ
- the minimum z indexmaxZ
- the maximum z indexpublic void setValues(int minX, int maxX, int minY, int maxY, int minZ, int maxZ, int minT, int maxT)
minX
- the minimum x indexmaxX
- the maximum x indexminY
- the minimum y indexmaxY
- the minimum y indexminZ
- the minimum z indexmaxZ
- the maximum z indexminT
- the minimum series indexmaxT
- the maximum series indexpublic String toString()
public boolean valuesHaveBeenSet()