#include <mlabNetwork.h>
Inherits QObject.
This class represents a network of MLABModule instances. 
The MLABNetwork is typically not needed in scripting, as MLABModule::addModule() MLABModule::remove(), etc., accesses the MLABNetwork indirectly. 
 
◆ clearUndoHistory
  
  
      
        
          | void MLABNetwork::clearUndoHistory  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inlineslot   | 
  
 
Clears the undo history. This will release the memory held by modules in the undo buffer. 
 
 
◆ cloneSelection
  
  
      
        
          | bool MLABNetwork::cloneSelection  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
 
◆ copySelection
  
  
      
        
          | bool MLABNetwork::copySelection  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
 
◆ createLocalModule
  
  
      
        
          | MLABModule * MLABNetwork::createLocalModule  | 
          ( | 
          const QString & |           name | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
Creates and adds a new local module to the network. 
If the module is not a local module and also not found in the database, NULL is returned. Note that the precedence is for creating local macro modules, but if that fails, an existing global module will be used if available. If the module cannot be created because of ML or OpenInventor, it is still added but has an invalid state (use isValid() to check). 
 
 
◆ createModule
  
  
      
        
          | MLABModule * MLABNetwork::createModule  | 
          ( | 
          const QString & |           name | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
Creates and adds a new module to the network. 
If the module is not found in the database and is also no local module, NULL is returned. If the module cannot be created because of ML or OpenInventor, it is still added but has an invalid state (use isValid() to check). 
 
 
◆ cutSelection
  
  
      
        
          | bool MLABNetwork::cutSelection  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
 
◆ deselectAll
  
  
      
        
          | void MLABNetwork::deselectAll  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
 
◆ distributeSelection()
  
  
      
        
          | void MLABNetwork::distributeSelection  | 
          ( | 
          DistributeType |           distributeType | ) | 
           | 
         
       
   | 
  
protected   | 
  
 
Distributes the module selection according to the given type. 
 
 
◆ filename
  
  
      
        
          | QString MLABNetwork::filename  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
Returns the absolute filename of this network (may be empty). 
 
 
◆ getSingleSelectedModule
  
  
      
        
          | MLABModule * MLABNetwork::getSingleSelectedModule  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
 
◆ invertSelection
  
  
      
        
          | void MLABNetwork::invertSelection  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
 
◆ localPath
  
  
      
        
          | QString MLABNetwork::localPath  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
Returns the absolute local path of this filename (may be empty). 
 
 
◆ lookupModule
  
  
      
        
          | MLABModule * MLABNetwork::lookupModule  | 
          ( | 
          const QString & |           name | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
Finds and returns a module by instanceName. 
 
 
◆ modules
Returns a list of all modules in the network. 
 
 
◆ modulesConst()
      
        
          | const MLABModuleList & MLABNetwork::modulesConst  | 
          ( | 
           | ) | 
           | 
        
      
 
Returns direct access to the modules. 
 
 
◆ parentMacro
Returns the owner (MacroModule, can be NULL). 
 
 
◆ pasteSelection
  
  
      
        
          | bool MLABNetwork::pasteSelection  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
Pastes the selection. Returns true if anything was pasted. 
 
 
◆ redo
  
  
      
        
          | void MLABNetwork::redo  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
Redoes last command (and redraws). 
 
 
◆ removeModule
  
  
      
        
          | void MLABNetwork::removeModule  | 
          ( | 
          MLABModule * |           module | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
Removes a module from the network (immediate deletion of the module). 
 
 
◆ removeModuleUndoable
  
  
      
        
          | void MLABNetwork::removeModuleUndoable  | 
          ( | 
          MLABModule * |           module | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
Removes a module from the network (undoable). 
 
 
◆ removeNonPersistent
  
  
      
        
          | void MLABNetwork::removeNonPersistent  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
Removes all non persistent modules. 
 
 
◆ removeSelection
  
  
      
        
          | void MLABNetwork::removeSelection  | 
          ( | 
          bool |           undoable = true | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
 
◆ selectAll
  
  
      
        
          | void MLABNetwork::selectAll  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
 
◆ selectedModules
  
  
      
        
          | QList< MLABModule * > MLABNetwork::selectedModules  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
Returns a list of selected modules in the network. 
 
 
◆ selectSingleModule
  
  
      
        
          | void MLABNetwork::selectSingleModule  | 
          ( | 
          MLABModule * |           module | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
 
◆ translateSelection
  
  
      
        
          | void MLABNetwork::translateSelection  | 
          ( | 
          const QPoint & |           delta | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
Translates the selected modules by delta. 
 
 
◆ undo
  
  
      
        
          | void MLABNetwork::undo  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
slot   | 
  
 
Undoes last command (and redraws).