|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.uthscsa.ric.visualization.SurfaceOverlay
public class SurfaceOverlay
A SurfaceOverlay contains data related to surface coloring, often associated with an overlay image.
Field Summary | |
---|---|
static float |
BRIGHTNESS_DEFAULT
|
static int |
DEFAULT_ALPHA
|
static String |
DEFAULT_LUT
|
protected boolean |
hasPreparedForTimepoints
|
protected boolean |
isBuilding
|
protected boolean |
isProcessAllTimepoints
|
Constructor Summary | |
---|---|
|
SurfaceOverlay(float[] scalarsArray,
Object overlay,
String colorTableName,
String name,
float min,
float max,
float brightness)
The constructor. |
|
SurfaceOverlay(FloatBuffer scalars,
Object overlay,
String colorTableName,
String name,
float min,
float max,
float brightness)
The constructor. |
protected |
SurfaceOverlay(Object overlay,
String colorTableName,
String name,
float min,
float max,
float brightness)
|
Method Summary | |
---|---|
protected void |
addScalars(Object obj,
int timepoint)
|
static void |
findScalarsRange(FloatBuffer scalars,
float[] range)
A utility method to scan the scalars buffer and find the maximum range. |
int |
getAlpha()
Returns the alpha value of this surface overlay (used for color mixing, 0-255). |
float |
getBrightness()
Returns the brightness of the overlay colors (default = 1.5). |
String |
getColorTableName()
Returns the color table name. |
float |
getMax()
Returns the maximum value of the color table range. |
float |
getMin()
Returns the minimum value of the color table range. |
String |
getName()
Returns the surface overlay name. |
int |
getNumScalars()
Returns the number of scalars. |
protected int |
getNumTimepoints()
|
Object |
getOverlay()
Returns the associated overlay object. |
FloatBuffer |
getScalars()
Returns the scalars buffer. |
float[] |
getScalarsArray()
Returns the scalars array (used in Java3D 1.3). |
float |
getScalarsValue(int offset)
Returns a scalar value. |
protected float |
getSearchDistance()
|
protected Object |
getTempRGBData()
|
protected boolean |
hasPreparedForTimepoints()
|
boolean |
isAssociatedWithImage()
Returns true if this SurfaceOverlay contains an overlay object. |
boolean |
isLoadedFromFile()
Returns true if the surface overlay was loaded from file. |
protected boolean |
isProcessAllTimepoints()
|
protected void |
prepareForTimepoints(int numTimepoints,
int currentTimepoint)
|
void |
setAlpha(int val)
Sets the alpha value of this surface overlay (used for color mixing, 0-255). |
void |
setBrightness(float val)
Sets the brightness of the overlay colors (default = 1.5). |
void |
setColorTableName(String name)
Sets the color table name. |
protected void |
setCurrentTimepoint(int timepoint)
|
void |
setName(String name)
Sets the surface overlay name. |
void |
setOverlay(Object ovl)
Sets the associated overlay object. |
protected void |
setProcessAllTimepoints(boolean bool)
|
void |
setScalars(FloatBuffer buf)
Sets the scalars buffer. |
void |
setScalarsValue(int offset,
float value)
Sets a scalar value. |
void |
setScreenRange(float min,
float max)
Sets the minimum and maximum values of the color table range. |
protected void |
setSearchDistance(float val)
|
protected void |
setTempRGBData(Object ob)
|
String |
toString()
Returns the same as getName(). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected boolean isBuilding
protected boolean hasPreparedForTimepoints
protected boolean isProcessAllTimepoints
public static final String DEFAULT_LUT
public static final float BRIGHTNESS_DEFAULT
public static final int DEFAULT_ALPHA
Constructor Detail |
---|
protected SurfaceOverlay(Object overlay, String colorTableName, String name, float min, float max, float brightness)
public SurfaceOverlay(FloatBuffer scalars, Object overlay, String colorTableName, String name, float min, float max, float brightness)
scalars
- the scalar values associated with this surface overlayoverlay
- the overlay objectcolorTableName
- the color table namename
- the surface overlay namemin
- the color table range minimummax
- the color table range maximumbrightness
- the brightness of the surface overlaypublic SurfaceOverlay(float[] scalarsArray, Object overlay, String colorTableName, String name, float min, float max, float brightness)
overlay
- the overlay objectcolorTableName
- the color table namename
- the surface overlay namemin
- the color table range minimummax
- the color table range maximumbrightness
- the brightness of the surface overlayMethod Detail |
---|
public String getColorTableName()
public void setColorTableName(String name)
name
- the color table namepublic String getName()
public void setName(String name)
name
- the surface overlay namepublic Object getOverlay()
public void setOverlay(Object ovl)
ovl
- the overlay objectpublic boolean isLoadedFromFile()
public boolean isAssociatedWithImage()
public FloatBuffer getScalars()
public float[] getScalarsArray()
public void setScalars(FloatBuffer buf)
buf
- the scalars bufferpublic float getScalarsValue(int offset)
offset
- offset into the buffer or array
public void setScalarsValue(int offset, float value)
offset
- offset into the buffer or arrayvalue
- the value to setpublic int getNumScalars()
public float getMin()
public float getMax()
public void setScreenRange(float min, float max)
min
- the minimum value of the color table rangemax
- the maximum value of the color table rangepublic int getAlpha()
public void setAlpha(int val)
val
- the alphapublic float getBrightness()
public void setBrightness(float val)
val
- the brightness of the overlay colorspublic static void findScalarsRange(FloatBuffer scalars, float[] range)
scalars
- a FloatBufferrange
- a float array containing at least two indices (min = 0, max = 1)public String toString()
toString
in class Object
protected void setTempRGBData(Object ob)
protected Object getTempRGBData()
protected float getSearchDistance()
protected void setSearchDistance(float val)
protected void prepareForTimepoints(int numTimepoints, int currentTimepoint)
protected void setCurrentTimepoint(int timepoint) throws Exception
Exception
protected void addScalars(Object obj, int timepoint) throws Exception
Exception
protected boolean hasPreparedForTimepoints()
protected int getNumTimepoints()
protected void setProcessAllTimepoints(boolean bool)
protected boolean isProcessAllTimepoints()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |