MLABNetwork Class Reference
[Modules and NetworksScripting]

This class represents a network of MLABModule instances. More...

List of all members.

Public Slots

void autoArrangeSelection ()
void cloneSelection ()
void copySelection ()
MLABModulecreateModule (const QString &name)
void cutSelection ()
void deselectAll ()
QString filename ()
MLABModulegetSingleSelectedModule ()
void invertSelection ()
QString localPath ()
MLABMacroModuleowner ()
void pasteSelection ()
void redo ()
void removeModule (MLABModule *module)
void removeModuleUndoable (MLABModule *module)
void removeNonPersistent ()
void removeSelection (bool undoable=true)
void selectAll ()
void selectSingleModule (MLABModule *module)
void translateSelection (const QPoint &delta)
void undo ()

Protected Member Functions

void distributeSelection (DistributeType distributeType)


Detailed Description

This class represents a network of MLABModule instances.

The MLABNetwork is typically not needed in scripting, since MLABModule::addModule() MLABModule::remove() etc. access the MLABNetwork indirectly.


Member Function Documentation

void MLABNetwork::autoArrangeSelection (  )  [slot]

auto-arrange the module selection in the network.

if no modules are selected, all modules in the network are being auto-arranged. NOTE that the algorithm for the auto-arranging is a very simple one: it does not take module groups, multiple non-connected networks or any semantic into account.

void MLABNetwork::cloneSelection (  )  [slot]

clone selection

void MLABNetwork::copySelection (  )  [slot]

copy selection

MLABModule* MLABNetwork::createModule ( const QString &  name  )  [slot]

create and add a new module to the network If the module is not found in the database, NULL is returned! If the module cant be created because of ML or OpenInventor, it is still added but has an invalid state (use isValid() to check)

void MLABNetwork::cutSelection (  )  [slot]

cut selection

void MLABNetwork::deselectAll (  )  [slot]

deselect all

void MLABNetwork::distributeSelection ( DistributeType  distributeType  )  [protected]

distribute the module selection according to the given type

QString MLABNetwork::filename (  )  [slot]

returns absolute filename of this network (may be null)

MLABModule* MLABNetwork::getSingleSelectedModule (  )  [slot]

get module that is currently selected (if only one module IS selected), otherwise NULL

void MLABNetwork::invertSelection (  )  [slot]

invert selection

QString MLABNetwork::localPath (  )  [slot]

returns the absolute local path of this filename (may be null)

MLABMacroModule* MLABNetwork::owner (  )  [slot]

get owner (MacroModule, can be NULL)

void MLABNetwork::pasteSelection (  )  [slot]

paste selection

void MLABNetwork::redo (  )  [slot]

redo last command (and redraw)

void MLABNetwork::removeModule ( MLABModule module  )  [slot]

remove a module from the network (immediate deletion of the module)

void MLABNetwork::removeModuleUndoable ( MLABModule module  )  [slot]

remove a module from the network (undoable)

void MLABNetwork::removeNonPersistent (  )  [slot]

remove all non persistent modules

void MLABNetwork::removeSelection ( bool  undoable = true  )  [slot]

remove selection from the network (undoable)

void MLABNetwork::selectAll (  )  [slot]

select all

void MLABNetwork::selectSingleModule ( MLABModule module  )  [slot]

select the given module (and only that module, other selections are cleared)

void MLABNetwork::translateSelection ( const QPoint &  delta  )  [slot]

translates the selected modules by delta

void MLABNetwork::undo (  )  [slot]

undo last command (and redraw)


Generated on Sat Sep 3 18:38:03 2011 for MeVisLab Scripting Reference by  doxygen 1.5.8