MeVisLab Scripting Reference
MLABDicomBrowserControl Class Reference

Inherits MLABSimpleWidgetControl.

Public Slots

void expandSelectedDataset (int listViewID)
void selectedParentDataset (int listViewID)
int numDatasets ()
QString rootDir ()
QString currentDir ()
void reload ()
void setProject (const QString &project)
bool setDicomHierarchy (const QString &name)
void setFilter (const QString &extension, const QString &include, const QString &exclude, bool recursive)
void setRootDir (const QString &dir)
void setCurrentDir (const QString &dir)
void setPathBrowser (MLABPathBrowserControl *c)
void setTableView (MLABDicomBrowserTableControl *t)
bool setDataset (const QString &dataset)
bool selectNextDataset ()
bool selectPrevDataset ()
bool isFirstSelected ()
bool isLastSelected ()
- Public Slots inherited from MLABWidgetControl
void adjustSize ()
virtual void setEnabled (bool flag)
virtual void setVisible (bool flag)
virtual bool isVisible ()
virtual void setFocus ()
virtual bool hasFocus ()
virtual void setToolTip (const QString &string)
virtual void setWhatsThis (const QString &string)
void displayWhatsThis ()
void displayWhatsThis (const QString &text)
virtual void setTitle (const QString &)
QWidget * widget ()
QLayout * layout ()
virtual QString windowHandle ()
virtual bool createScreenshot (const QString &filename, bool grabFromScreen=true, bool scaleToLowRes=false)
bool isReloadable () const
void reload (MLABTree *tree)
QString createGlobalScreenshot ()
QString applicationName ()
QSize size ()
int width ()
int height ()
int minWidth ()
int minHeight ()
int maxWidth ()
int maxHeight ()
virtual void setMinWidth (int s)
virtual void setMinHeight (int s)
void setMaxWidth (int s)
void setMaxHeight (int s)
QSize sizeHint ()
QSize minSize ()
QSize maxSize ()
void setMinSize (QSize size)
void setMaxSize (QSize size)
void updateLayout ()
int windowID ()
MLABWidgetControlcontrol (const QString &name)
float scaleFactor ()
MLABModulemodule ()
QString getType ()
QString getName ()
bool acceptDrops ()
void setAcceptDrops (bool flag)
void raiseWidget ()
void setStyleSheetFromString (const QString &styleSheetText)
void setStyleSheetFromFile (const QString &styleSheetFileName)
MLABTreetree ()
void updateMaxSize ()
bool expandX ()
bool expandY ()
MLABTreePtr getDefaultTagValues () const
virtual bool hasUncommittedChanges () const
virtual void applyUncommittedChanges ()
virtual void revertUncommittedChanges ()
MLABFieldfield () const

Detailed Description

DicomBrowser control.

This control shows a DicomBrowser.

MDL reference: DicomBrowser

Member Function Documentation

QString MLABDicomBrowserControl::currentDir ( )

Returns the current Dir of the DicomBrowser.

void MLABDicomBrowserControl::expandSelectedDataset ( int  listViewID)

Expand the selected Dataset.

bool MLABDicomBrowserControl::isFirstSelected ( )

Return true, if the first Dataset is selected.

bool MLABDicomBrowserControl::isLastSelected ( )

Return true, if the last Dataset is selected.

int MLABDicomBrowserControl::numDatasets ( )

Returns the number of datasets currently in the DicomBrowser.

void MLABDicomBrowserControl::reload ( )

Reload the DicomHierarchy from disk, used when the filesystem was updated.

QString MLABDicomBrowserControl::rootDir ( )

Returns the RootPath of the DicomBrowser.

void MLABDicomBrowserControl::selectedParentDataset ( int  listViewID)

Go to the Parent of the selected Dataset.

bool MLABDicomBrowserControl::selectNextDataset ( )

Select the next Dataset or the first, if none was selected before.

Return false, if there was no next Dataset.

bool MLABDicomBrowserControl::selectPrevDataset ( )

Select the previous Dataset or the last, if none was selected before.

Return false, if there was no previous Dataset.

void MLABDicomBrowserControl::setCurrentDir ( const QString &  dir)

Set the current Dir, normally used by PathBrowser, results in a reload of the DicomHierarchy.

bool MLABDicomBrowserControl::setDataset ( const QString &  dataset)

Set the current Dataset.

Must give full absPath e.g. as returned by selectedDatasets() Returns true on success, or false, e.g. if given dataset does not exist

bool MLABDicomBrowserControl::setDicomHierarchy ( const QString &  name)

Set a new DicomHierarchy, results in a reload. Returns false if the hierarchy does not exist.

void MLABDicomBrowserControl::setFilter ( const QString &  extension,
const QString &  include,
const QString &  exclude,
bool  recursive 

Set the file-filter for searching files.

void MLABDicomBrowserControl::setPathBrowser ( MLABPathBrowserControl c)

Set the PathBrowser for this DicomBrowser, results in an update of currentPath and a Reload.

void MLABDicomBrowserControl::setProject ( const QString &  project)

Set a new Project for the DicomBrowser, results in loading a new DicomHierarchy.

void MLABDicomBrowserControl::setRootDir ( const QString &  dir)

Set the RootDir, results in a Reaload of the DicomHierarchy.

void MLABDicomBrowserControl::setTableView ( MLABDicomBrowserTableControl t)

Set the TableView for this DicomBrowser.