13#ifndef __vtkSlicerCLIModuleLogic_h
14#define __vtkSlicerCLIModuleLogic_h
21class ModuleDescription;
32#include "qSlicerBaseQTCLIExport.h"
40class Q_SLICER_BASE_QTCLI_EXPORT vtkSlicerCLIModuleLogic :
51 static vtkSlicerCLIModuleLogic *
New();
53 void PrintSelf(ostream& os, vtkIndent indent)
override;
86 unsigned long vtkNotUsed(event),
87 void * vtkNotUsed(callData)){}
137 void *callData)
override;
143 const std::string& type,
144 const std::string& name,
145 const std::vector<std::string>& extensions,
149 const ModuleParameter& p);
183 vtkSlicerCLIModuleLogic();
184 ~vtkSlicerCLIModuleLogic()
override;
185 vtkSlicerCLIModuleLogic(
const vtkSlicerCLIModuleLogic&) =
delete;
186 void operator=(
const vtkSlicerCLIModuleLogic&) =
delete;
189 vtkInternal * Internal;
40class Q_SLICER_BASE_QTCLI_EXPORT vtkSlicerCLIModuleLogic : {
…};
MRML node for representing the parameters allowing to run a command line interface module (CLI)....
MRML node to represent a hierarchy of models.
Abstract Superclass for all specific types of MRML nodes.
A set of MRML Nodes that supports serialization and undo/redo.
vtkMRMLCommandLineModuleNode * CreateNode()
virtual void DeleteTemporaryFilesOff()
const ModuleDescription & GetDefaultModuleDescription() const
void ApplyTask(void *clientdata)
virtual void RedirectModuleStreamsOn()
For debugging, control redirection of cout and cerr.
void ProcessMRMLNodesEvents(vtkObject *caller, unsigned long event, void *callData) override
Reimplemented to observe CLI node.
std::string ConstructTemporarySceneFileName(vtkMRMLScene *scene)
void AddCompleteModelHierarchyToMiniScene(vtkMRMLScene *, vtkMRMLModelHierarchyNode *, MRMLIDMap *sceneToMiniSceneMap, std::set< std::string > &filesToDelete)
virtual void ProcessMrmlEvents(vtkObject *vtkNotUsed(caller), unsigned long vtkNotUsed(event), void *vtkNotUsed(callData))
void SetAllowInMemoryTransfer(int value)
void SetMRMLApplicationLogic(vtkMRMLApplicationLogic *logic) override
Set the application logic.
std::string ConstructTemporaryFileName(const std::string &tag, const std::string &type, const std::string &name, const std::vector< std::string > &extensions, CommandLineModuleType commandType)
std::string GetDefaultParameterValue(const std::string &name) const
static void ProgressCallback(void *)
int GetCoordinateSystemFromString(const char *coordinateSystemStr) const
static vtkSlicerCLIModuleLogic * New()
void SetMRMLSceneInternal(vtkMRMLScene *newScene) override
Reimplemented to observe NodeAddedEvent.
bool SetDefaultParameterValue(const std::string &name, const std::string &value)
void AutoRun(vtkMRMLCommandLineModuleNode *cliNode)
Call apply because the node requests it.
int GetDeleteTemporaryFiles() const
void Apply(vtkMRMLCommandLineModuleNode *node, bool updateDisplay=true)
void SetRedirectModuleStreams(int value)
void OnMRMLSceneNodeAdded(vtkMRMLNode *node) override
Reimplemented for AutoRun mode.
vtkMRMLCommandLineModuleNode * CreateNodeInScene()
virtual void DeleteTemporaryFilesOn()
For debugging, control deletion of temp files.
int GetRedirectModuleStreams() const
void ApplyAndWait(vtkMRMLCommandLineModuleNode *node, bool updateDisplay=true)
virtual void RedirectModuleStreamsOff()
bool IsCommandLineModuleNodeUpdatingDisplay(vtkMRMLCommandLineModuleNode *commandLineModuleNode) const
static void RemoveProgressInfoFromProcessOutput(std::string &text)
void SetDeleteTemporaryFiles(int value)
Events
List of custom events fired by the class.
@ RequestHierarchyEditEvent
void PrintSelf(ostream &os, vtkIndent indent) override
void SetDefaultModuleDescription(const ModuleDescription &moduleDescription)
int GetAllowInMemoryTransfer() const
void ProcessMRMLLogicsEvents(vtkObject *, long unsigned int, void *) override
Reimplemented to observe vtkSlicerApplicationLogic.
std::string FindHiddenNodeID(const ModuleDescription &d, const ModuleParameter &p)