VivoQuant
Public Slots | Public Member Functions | Protected Member Functions | Friends | List of all members
MainWin Class Reference

Object for accessing the UI's main window functions. More...

Public Slots

void loadScript ()
 Download DICOM files from an openin URL.
 
void importBrukerMR (string directory=string())
 Imports a Bruker file via dialog box. More...
 
void print ()
 Prompts a dialog message asking which Slice View the user wants an image of.
 
void zoomIn ()
 Zooms in the Display.
 
void zoomOut ()
 Zooms out of the Display.
 
void normalSize ()
 Sets the slice images to their original size.
 
void toggleFullScreen ()
 Switches the users viewer settings so that the entire computer screen displays VivoQuant.
 
void showManual ()
 Opens the VivoQuant Manual.
 
void saveImage ()
 Opens the 'Save Image' User Interface.
 
void saveMovie ()
 Opens the 'Save Movie' User Interface.
 
void scaleImage (float factor)
 Scales the images in the Display to a desired size. More...
 
void showMinMaxTool ()
 Displays the 'Min/Max' Tool.
 
void showWorklistTool ()
 Displays the 'Worklist' Tool.
 
void showHistogram ()
 Displays the 'Histogram' tool User Interface.
 
void bedRemoval ()
 Runs the 'Bed Removal' module.
 
void advancedBedRemoval ()
 Opens the 'Bed Removal' tool User Interface.
 
void showHints ()
 Opens the 'Hints' User Interface.
 
void setupLayout2x2 ()
 Sets the Display layout to be 2x2.
 
void setupLayout1x4 ()
 Sets the Display layout to be 1x4.
 
void setupLayoutMIP ()
 Sets the Display layout to display only the MIP view.
 
void setupLayoutTrans ()
 Sets the Display layout to display only the Transversal slice view.
 
void setupLayoutSlice ()
 Sets the Display to the 'Slices Only' layout.
 
void toggleCrosshair ()
 Toggles the Crosshair on/off.
 
void setViewMode (int id)
 Sets the Viewmode to the desired mode. More...
 
void showConfig ()
 Opens the 'Configuration' User Interface.
 
void showCalibCTGeometrical ()
 Opens the 'NanoSPECT/CT Geometrical Calibration' User Interface.
 
void showCalibMMP ()
 Opens the 'MultiPlexing-MultiPinhole Calibration' User Interface.
 
void showDICOMDump ()
 Opens the DICOM header User Interface.
 
void renameDICOM ()
 Opens the 'Rename DICOM files' User Interface.
 
void relabelDICOMStudies (bool quiet=false)
 Opens the 'Relabel DICOM Series' User Interface. More...
 
void anonymizeDICOM (bool quiet=false)
 Opens the 'DICOM Anonymizer' User Interface. More...
 
void closeAnonymizeDICOM ()
 Closes the 'DICOM Anonymizer' User Interface.
 
void closeDICOMRelabeler ()
 Closes the 'DICOM Relabeler' User Interface.
 
void imageToCapture ()
 Opens the 'Open Image File' User Interface.
 
void saveSession (string name=string(), bool quiet=false)
 Saves a VivoQuant session. More...
 
void loadSession ()
 Opens the 'Load Session' User Interface.
 
void loadSession (string name, bool quiet=false)
 Opens a VivoQuant session. More...
 
void exportSession ()
 Opens the 'Export Session' User Interface to export a session to the current iPACS Repository in use.
 
void toggleVCView ()
 Toggles on/off the 'Visual Control' tool. More...
 
void toggleMCView ()
 Toggles on/off the 'MIP Control' tool. More...
 
void toggleDMView ()
 Toggles on/off the 'Data Manager' tool. More...
 
void toggleMinMaxTool ()
 Toggles on/off the 'Min/Max' tool. More...
 
void toggleWorkflowWidget ()
 Toggles on/off the 'Workflow' tool. More...
 
void openFromIPACSDialog ()
 Opens the 'Open from iPACS Dialog' User Interface. More...
 
void undo ()
 "Un-does" the previous action completed in VivoQuant More...
 
void redo ()
 "Re-does" the previous action completed in VivoQuant More...
 
void resetView ()
 Resets the view transform for the current view.
 
void showMModeSegmentationTool ()
 Opens the 'M-Mode Segmentation Tool' User Interface.
 
void openCorthicknessTool ()
 Open Cortical Thickness Tool.
 

Public Member Functions

void setViewMode (string vm, string op=string())
 Sets the view mode and the operator. More...
 
Array< string > saveImage (string filename, int objectType, int colBarType=0, int dcmRepType=0, int magnification=1)
 Saves an image of the specified plane. More...
 
Array< string > saveMovie (string filename, int objectType, int colBarType=0, int dcmRepType=0)
 Saves a movie (.gif) of the desired planar or 3D view. More...
 
void toggleMIP (bool toEnable)
 Turns the MIP viewer on or off. More...
 
void installMouseRatAtlas ()
 Installs the default rodent atlas libraries.
 
void scriptOpenECRF (DicomRepository *rep, string uid, int dataIndex=0, string level=string(), string form=string(), bool loadLatest=false, string formVersion="1", string formType="")
 Opens data point form "type" from the iPACS corresponding to data at "dataIndex". More...
 

Protected Member Functions

void openFromIPACSFile (string filename)
 Opens a file from a known iPACS repository. More...
 
void openFromIPACS (string url)
 Download an ipacs file from an iPACS URL. More...
 
void openFromIPACSZipacs (string url)
 Download a zipacs file from a zipacs URL.
 
void showDICOMAnonymizer (int idx=-1, DataManager *dm=nullptr, bool quiet=false)
 Download DICOM files from an openin URL.
 

Friends

class ScriptMaster
 
class VisibilityManager
 

Detailed Description

Object for accessing the UI's main window functions.

This object can be used to perform toolbar related actions or to change the current view / operator.

See also ScriptMaster::mainWin() to obtain this object.

Member Function Documentation

◆ anonymizeDICOM

void anonymizeDICOM ( bool  quiet = false)
slot

Opens the 'DICOM Anonymizer' User Interface.

Parameters
quietSet to true to hide all popup dialog. The anonymization will automatically be applied to all dataset.
Note
See ScriptMaster::getDicomAnonymizer() to obtain the object

◆ importBrukerMR

void importBrukerMR ( string  directory = string())
slot

Imports a Bruker file via dialog box.

Parameters
directory(Optional) The directory of the desired file on iPACS

◆ loadSession

void loadSession ( string  name,
bool  quiet = false 
)
slot

Opens a VivoQuant session.

Parameters
nameThe name of the VivoQuant session being loaded

◆ openFromIPACS()

void openFromIPACS ( string  url)
protected

Download an ipacs file from an iPACS URL.

Parameters
urlThe web URL of the desired file on iPACS

◆ openFromIPACSDialog

void openFromIPACSDialog ( )
slot

Opens the 'Open from iPACS Dialog' User Interface.

◆ openFromIPACSFile()

void openFromIPACSFile ( string  filename)
protected

Opens a file from a known iPACS repository.

Parameters
filenameThe file name and path of the desired file to be opened by the function (eg: home/ipacs/projects/filename.txt)

◆ redo

void redo ( )
slot

"Re-does" the previous action completed in VivoQuant

◆ relabelDICOMStudies

void relabelDICOMStudies ( bool  quiet = false)
slot

Opens the 'Relabel DICOM Series' User Interface.

Parameters
quietSet to true to hide all popup dialog. The relabeling will automatically be applied to all dataset.
Note
See ScriptMaster::getDicomRelabeler() to obtain the object

◆ saveImage()

Array<string> saveImage ( string  filename,
int  objectType,
int  colBarType = 0,
int  dcmRepType = 0,
int  magnification = 1 
)

Saves an image of the specified plane.

Parameters
filenameThe location and desired name of the image you are about to save (eg: C:/Desktop/filename.png)
objectTypeThe plane in which you would like to capture an image (eg: 0 = MIP, 1 = Sag, 2 = Cor, 3 = Tra)

◆ saveMovie()

Array<string> saveMovie ( string  filename,
int  objectType,
int  colBarType = 0,
int  dcmRepType = 0 
)

Saves a movie (.gif) of the desired planar or 3D view.

Parameters
filenameThe location and desired name of the .gif file you are about to save (eg: C:/Desktop/filename.png
objectTypeThe plane in which the movie will use for the fly-through (eg: 0 = MIP, 1 = Sag, 2 = Cor, 3 = Tra)
Returns
A .gif file in the specified pathway

◆ saveSession

void saveSession ( string  name = string(),
bool  quiet = false 
)
slot

Saves a VivoQuant session.

Parameters
nameThe desired name of the session being saved

◆ scaleImage

void scaleImage ( float  factor)
slot

Scales the images in the Display to a desired size.

Parameters
factorThe scaling factor, or the quantity in which the current image dimensions will be multiplied

◆ scriptOpenECRF()

void scriptOpenECRF ( DicomRepository *  rep,
string  uid,
int  dataIndex = 0,
string  level = string(),
string  form = string(),
bool  loadLatest = false,
string  formVersion = "1",
string  formType = "" 
)

Opens data point form "type" from the iPACS corresponding to data at "dataIndex".

Parameters
loadLatestToggles whether the form is pre-populated with the latest datapoint

◆ setViewMode() [1/2]

void setViewMode ( string  vm,
string  op = string() 
)

Sets the view mode and the operator.

Parameters
vmThe desired viewer mode (Slice View, Tile View, Multi View, MPR View)
opThe operator within the view mode that is desired (Navigator, Reorientation/Registration, 3D ROI Tool, etc.)

◆ setViewMode [2/2]

void setViewMode ( int  id)
slot

Sets the Viewmode to the desired mode.

Parameters
idThe corresponding desired viewmode (0 = Slice View, 1 = Tile View, 2 = Multi View, 3 = MPR View)

◆ toggleDMView

void toggleDMView ( )
inlineslot

Toggles on/off the 'Data Manager' tool.

◆ toggleMCView

void toggleMCView ( )
inlineslot

Toggles on/off the 'MIP Control' tool.

◆ toggleMinMaxTool

void toggleMinMaxTool ( )
inlineslot

Toggles on/off the 'Min/Max' tool.

◆ toggleMIP()

void toggleMIP ( bool  toEnable)

Turns the MIP viewer on or off.

Parameters
toEnableA true/false value to instruct the function to turn the MIP on or off (True = on, False = off)

◆ toggleVCView

void toggleVCView ( )
inlineslot

Toggles on/off the 'Visual Control' tool.

◆ toggleWorkflowWidget

void toggleWorkflowWidget ( )
inlineslot

Toggles on/off the 'Workflow' tool.

◆ undo

void undo ( )
slot

"Un-does" the previous action completed in VivoQuant