|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.jhu.ece.iacl.jist.io.MipavController
public class MipavController
Image Manipulation Utilities that require ViewUserInterface.
Field Summary | |
---|---|
protected static boolean |
quiet
The quiet. |
protected static java.io.File |
relativePath
The relative path. |
protected static java.io.File |
truePath
The true path. |
protected static java.io.File |
workingDirectory
The working directory. |
Constructor Summary | |
---|---|
MipavController()
|
Method Summary | |
---|---|
static void |
displayError(java.lang.String message)
Display error. |
static void |
displayMessage(java.lang.String message)
Display message. |
static java.io.File |
getDefaultWorkingDirectory()
Gets the default working directory. |
static ModelImage |
getImageByName(java.lang.String name)
Select an image from the registry by image name. |
static java.util.Vector<java.lang.String> |
getImageNames()
Get the names of all registered MIPAV images. |
static java.util.Vector<ModelImage> |
getImages()
Get all registered MIPAV images. |
static ImageVariableTable |
getImageVariableTable()
Gets the image variable table. |
static ViewUserInterface |
getUI()
Singleton method to get User Interface. |
static void |
init()
Inits the. |
static boolean |
isQuiet()
Checks if is quiet. |
static java.util.ArrayList<ImageData> |
openFileDialog(java.io.File oldFile)
Create open file dialog to select either RAW or XML file types. |
static void |
setDefaultWorkingDirectory(java.io.File f)
Sets the default working directory. |
static void |
setImageVariableTable(ImageVariableTable imgTable)
Sets the image variable table. |
static void |
setQuiet(boolean q)
Sets the quiet. |
static void |
setRelativePath(java.io.File relativeP)
Sets the relative path. |
static void |
setRelativePath(java.io.File relativeP,
java.io.File trueP)
Sets the relative path. |
static java.io.File |
translatePath(java.io.File f)
Translate path. |
static void |
updateFileInfo(FileInfoBase info,
ModelImage resultImage)
Copy important file information between ModelImage structures, assuming all slices have same properties (uses only the first slice from the source). |
static void |
updateFileInfo(ModelImage image,
ModelImage resultImage)
Copy important file information between ModelImage structures, assuming all slices have same properties (uses only the first slice from the source). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static java.io.File workingDirectory
protected static java.io.File relativePath
protected static java.io.File truePath
protected static boolean quiet
Constructor Detail |
---|
public MipavController()
Method Detail |
---|
public static void setImageVariableTable(ImageVariableTable imgTable)
imgTable
- the new image variable tablepublic static ImageVariableTable getImageVariableTable()
public static void init()
public static java.util.ArrayList<ImageData> openFileDialog(java.io.File oldFile)
oldFile
- the old file
public static void setDefaultWorkingDirectory(java.io.File f)
f
- the new default working directorypublic static java.io.File getDefaultWorkingDirectory()
public static java.util.Vector<ModelImage> getImages()
public static ModelImage getImageByName(java.lang.String name)
name
- image name
public static java.util.Vector<java.lang.String> getImageNames()
public static void setRelativePath(java.io.File relativeP, java.io.File trueP)
relativeP
- the relative ptrueP
- the true ppublic static void setRelativePath(java.io.File relativeP)
relativeP
- the new relative pathpublic static java.io.File translatePath(java.io.File f)
f
- the f
public static void setQuiet(boolean q)
q
- the new quietpublic static boolean isQuiet()
public static ViewUserInterface getUI()
public static void displayMessage(java.lang.String message)
message
- the messagepublic static void displayError(java.lang.String message)
message
- the messagepublic static final void updateFileInfo(ModelImage image, ModelImage resultImage)
image
- the imageresultImage
- the result imagepublic static final void updateFileInfo(FileInfoBase info, ModelImage resultImage)
info
- the inforesultImage
- the result image
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |