edu.jhmi.rad.medic.utilities
Class MedicUtil

java.lang.Object
  extended by edu.jhmi.rad.medic.utilities.MedicUtil

public class MedicUtil
extends java.lang.Object

A collection of utilities for I/O, GUI, interface with MIPAV, etc.

Author:
Pierre-Louis Bazin, Blake Lucas

Field Summary
protected static boolean quiet
          The quiet.
 
Constructor Summary
MedicUtil()
           
 
Method Summary
static void displayError(java.lang.String message)
          Display error.
static void displayMessage(java.lang.String message)
          Display message.
static ViewUserInterface getUI()
          Singleton method to get User Interface.
static boolean isQuiet()
          Checks if is quiet.
static void setQuiet(boolean q)
          Sets the quiet.
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

quiet

protected static boolean quiet
The quiet.

Constructor Detail

MedicUtil

public MedicUtil()
Method Detail

setQuiet

public static void setQuiet(boolean q)
Sets the quiet.

Parameters:
q - the new quiet

isQuiet

public static boolean isQuiet()
Checks if is quiet.

Returns:
true, if is quiet

getUI

public static ViewUserInterface getUI()
Singleton method to get User Interface. WARNING: DO NOT USE THIS WITH JIST

Returns:
userInterface

displayMessage

public static void displayMessage(java.lang.String message)
Display message.

Parameters:
message - the message

displayError

public static void displayError(java.lang.String message)
Display error.

Parameters:
message - the message

updateFileInfo

public static final 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).

Parameters:
image - the image
resultImage - the result image

updateFileInfo

public static final 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).

Parameters:
info - the info
resultImage - the result image