13 #ifndef __vtkSlicerCLIModuleLogic_h    14 #define __vtkSlicerCLIModuleLogic_h    21 class ModuleDescription;
    22 class ModuleParameter;
    32 #include "qSlicerBaseQTCLIExport.h"    48   void PrintSelf(ostream& os, vtkIndent indent) 
override;
    52   void SetDefaultModuleDescription(
const ModuleDescription& moduleDescription);
    53   const ModuleDescription& GetDefaultModuleDescription()
const;
    59   bool SetDefaultParameterValue(
const std::string& name, 
const std::string& value);
    64   std::string GetDefaultParameterValue(
const std::string& name) 
const;
    81                                  unsigned long vtkNotUsed(event),
    82                                  void * vtkNotUsed(callData)){}
    85   virtual void DeleteTemporaryFilesOn();
    86   virtual void DeleteTemporaryFilesOff();
    87   void SetDeleteTemporaryFiles(
int value);
    88   int GetDeleteTemporaryFiles() 
const;
    91   void SetAllowInMemoryTransfer(
int value);
    92   int GetAllowInMemoryTransfer() 
const;
    95   virtual void RedirectModuleStreamsOn();
    96   virtual void RedirectModuleStreamsOff();
    97   void SetRedirectModuleStreams(
int value);
    98   int GetRedirectModuleStreams() 
const;
   116   void KillProcesses();
   132                                       void *callData) 
override;
   137   std::string ConstructTemporaryFileName(
const std::string& tag,
   138                                          const std::string& type,
   139                                          const std::string& name,
   142   std::string ConstructTemporarySceneFileName(
vtkMRMLScene *scene);
   143   std::string FindHiddenNodeID(
const ModuleDescription& d,
   144                                const ModuleParameter& p);
   147   void ApplyTask(
void *clientdata);
   150   static void ProgressCallback(
void *);
   154   bool IsCommandLineModuleNodeUpdatingDisplay(
   162     RequestHierarchyEditEvent = vtkCommand::UserEvent + 1
   170   int GetCoordinateSystemFromString(
const char* coordinateSystemStr)
const;
   179   vtkInternal * Internal;
 void PrintSelf(ostream &os, vtkIndent indent) override
static vtkSlicerModuleLogic * New()
The Usual vtk class functions. 
virtual void ProcessMRMLLogicsEvents(vtkObject *caller, unsigned long event, void *callData)
virtual void ProcessMrmlEvents(vtkObject *vtkNotUsed(caller), unsigned long vtkNotUsed(event), void *vtkNotUsed(callData))
virtual void ProcessMRMLNodesEvents(vtkObject *caller, unsigned long event, void *callData)
A set of MRML Nodes that supports serialization and undo/redo. 
virtual void OnMRMLSceneNodeAdded(vtkMRMLNode *)
virtual void SetMRMLApplicationLogic(vtkMRMLApplicationLogic *logic)
virtual void SetMRMLSceneInternal(vtkMRMLScene *newScene)
MRML node to represent a hierarchyu of models. 
Abstract Superclass for all specific types of MRML nodes. 
MRML node for representing the parameters allowing to run a command line interface module (CLI)...
Events
List of custom events fired by the class.