Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_DATA_SCALE_INTERCEPT |
static double |
DEFAULT_DATA_SCALE_SLOPE |
Constructor and Description |
---|
ImageRange(double iMin,
double iMax,
double dMin,
double dMax)
The only class constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Returns a copy of this object.
|
boolean |
equals(Object obj) |
float[] |
getDataScaleIntercepts()
Returns the data scale intercepts.
|
float[] |
getDataScaleSlopes()
Returns the data scale slopes.
|
double |
getDisplayMax()
Returns the display max.
|
double |
getDisplayMin()
Returns the display min.
|
double |
getImageMax()
Returns the image max.
|
long |
getImageMaxOffset()
Returns the offset of the maximum voxel.
|
double |
getImageMin()
Returns the image min.
|
long |
getImageMinOffset()
Returns the offset of the minimum voxel.
|
boolean |
hasDefaultDataScaleIntercept()
Checks if all data scale intercepts are default.
|
static boolean |
hasDefaultDataScaleIntercept(float[] someIntercepts)
Checks if all data scale intercepts are default.
|
boolean |
hasDefaultDataScaleSlope()
Checks if all data scale slopes are default.
|
static boolean |
hasDefaultDataScaleSlope(float[] someSlopes)
Checks if all data scale slopes are default.
|
boolean |
hasGlobalDataScaleIntercept()
Checks if all data scale intercepts are the same.
|
boolean |
hasGlobalDataScaleSlope()
Checks if all data scale slopes are the same.
|
int |
hashCode() |
void |
setDataScaleIntercepts(float[] val)
Sets the data scale intercepts.
|
void |
setDataScaleSlopes(float[] val)
Sets the data scale slopes.
|
void |
setDisplayMax(double val)
Sets the display max.
|
void |
setDisplayMin(double val)
Sets the display min.
|
void |
setGlobalDataScaleIntercept(int num,
float val)
Sets global data scale intercept.
|
void |
setGlobalDataScaleSlope(int num,
float val)
Sets global data scale slope.
|
void |
setImageMax(double val)
Sets the image max.
|
void |
setImageMaxOffset(long imageMaxOffset)
Sets the offset of the maximum voxel.
|
void |
setImageMin(double val)
Sets the image min.
|
void |
setImageMinOffset(long imageMinOffset)
Sets the offset of the minimum voxel.
|
String |
toString()
Returns a string representation of this object.
|
public static final double DEFAULT_DATA_SCALE_INTERCEPT
public static final double DEFAULT_DATA_SCALE_SLOPE
public ImageRange(double iMin, double iMax, double dMin, double dMax)
iMin
- the image miniMax
- the image maxdMin
- the display mindMax
- the display maxpublic static boolean hasDefaultDataScaleIntercept(float[] someIntercepts)
someIntercepts
- the data scale intercepts to checkpublic static boolean hasDefaultDataScaleSlope(float[] someSlopes)
someSlopes
- the data scale slopes to checkpublic Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
- clone not supported exceptionpublic float[] getDataScaleIntercepts()
public float[] getDataScaleSlopes()
public double getDisplayMax()
public double getDisplayMin()
public double getImageMax()
public long getImageMaxOffset()
public double getImageMin()
public long getImageMinOffset()
public boolean hasDefaultDataScaleIntercept()
public boolean hasDefaultDataScaleSlope()
public boolean hasGlobalDataScaleIntercept()
public boolean hasGlobalDataScaleSlope()
public void setDataScaleIntercepts(float[] val)
val
- the data scale interceptspublic void setDataScaleSlopes(float[] val)
val
- the data scale slopespublic void setDisplayMax(double val)
val
- the display maxpublic void setDisplayMin(double val)
val
- the display minpublic void setGlobalDataScaleIntercept(int num, float val)
num
- the number of slicesval
- the data scale interceptpublic void setGlobalDataScaleSlope(int num, float val)
num
- the number of slicesval
- the data scale slopepublic void setImageMax(double val)
val
- the image maxpublic void setImageMaxOffset(long imageMaxOffset)
imageMaxOffset
- offsetpublic void setImageMin(double val)
val
- the image minpublic void setImageMinOffset(long imageMinOffset)
imageMinOffset
- offset