|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Track
Field Summary | |
static float |
SAMPLING_RATE
|
static int |
SLICE_DEPTH
|
static float |
SPEED_OF_SOUND
|
Constructor Summary | |
Track()
Emptry constructor to be used for cloning. |
|
Track(java.lang.String filename)
Create a track object from the serialized object specified by the indicated filename. |
|
Track(java.lang.String filename,
int startLine,
int n)
Create a track object from a synch file segment. |
Method Summary | |
void |
boundMask(int start,
int stop)
Apply a dynamic range filter to the density mask |
void |
cloneTrack(Track t)
Clone the given track into the current track object. |
float |
convertWaveDistance(int sliceIndex,
int sampleIndex)
Convert an indexed data point into a distance from the sonar source. |
void |
createNewImage()
Create a new image from the density data and update the image. |
static int |
densityToRGB(int d,
int min,
int max)
Convert a density to a RGB color value. |
int |
getDensityArraySize()
Returns the number of data points in the vertical slice. |
int |
getHeight()
|
java.awt.image.BufferedImage |
getImage()
Returns an object reference to the current track image. |
java.lang.String |
getName()
Returns the object name. |
int |
getWidth()
Returns the number of vertical slices. |
void |
modifyMask(int start,
int stop)
Modify the density mask to eliminate densities ranges from the display image. |
void |
printData()
Print out all the time, position, and density bounds for each vertical slice. |
void |
printInfo()
Print out track parameters. |
void |
readData(java.lang.String filename,
int startLine,
int n,
int sliceDepth)
Read in a track object from a synch file segment. |
void |
readObject()
Reload the serialized object. |
void |
readObject(java.lang.String filename)
Read in the serialized object using the specified filename. |
void |
resetMask(boolean b)
Reset of the density mask to the specified value. |
void |
setObjectName(java.lang.String objectName)
Sets the track's object name to objectName. |
java.lang.String |
toString()
Return the object name. |
void |
updateImage()
Render the track using the current density mask and dynamic-range extent. |
void |
writeObject()
Store the track as a serialized object. |
void |
writeObject(java.lang.String objectName)
Write the track as a serialized object using the specified filename. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final int SLICE_DEPTH
public static final float SPEED_OF_SOUND
public static final float SAMPLING_RATE
Constructor Detail |
public Track()
public Track(java.lang.String filename) throws java.io.IOException
filename
- the name of the object filepublic Track(java.lang.String filename, int startLine, int n) throws java.io.IOException
filename
- the name of the object filestartLine
- the line to starting reading fromn
- the number of vertical slices to readMethod Detail |
public java.lang.String toString()
public java.lang.String getName()
public void boundMask(int start, int stop)
start
- the lower density boundstop
- the higher density boundpublic void modifyMask(int start, int stop)
start
- the lower density boundstop
- the upper density boundpublic void resetMask(boolean b)
b
- value to set the mask values topublic void readObject() throws java.io.IOException
public void readObject(java.lang.String filename) throws java.io.IOException
filename
- the filename of the objectpublic void writeObject() throws java.io.IOException
public void writeObject(java.lang.String objectName) throws java.io.IOException
filename
- the name of the object filepublic void cloneTrack(Track t)
t
- the track to clonepublic int getWidth()
public int getHeight()
public int getDensityArraySize()
public java.awt.image.BufferedImage getImage()
public void setObjectName(java.lang.String objectName)
objectName
- the namepublic void printInfo()
public void printData()
public void readData(java.lang.String filename, int startLine, int n, int sliceDepth) throws java.io.IOException
filename
- the name of the synch filestartLine
- the line to start reading fromn
- the number of lines to readsliceDepth
- the number of datapoints in a vertical slicepublic void createNewImage()
public void updateImage()
public float convertWaveDistance(int sliceIndex, int sampleIndex)
sliceIndex
- index of the vertical slicesampleIndex
- index of the sample within the vertical slicepublic static int densityToRGB(int d, int min, int max)
d
- the density valuemin
- the minimum density boundmax
- the maximum density bound
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |