11 #ifndef CXGENERICSCRIPTFILTER_H 12 #define CXGENERICSCRIPTFILTER_H 64 virtual QString getType()
const;
65 virtual QString getName()
const;
66 virtual QString getHelp()
const;
68 virtual bool execute();
69 virtual bool postProcess();
73 void setParameterFilePath(QString path);
78 virtual void createOptions();
79 virtual void createInputTypes();
80 virtual void createOutputTypes();
81 QString createCommandString(
ImagePtr input);
82 bool runCommandStringAndWait(QString command);
83 QString getCustomPath();
84 void setupOutputColors(QStringList colorList);
85 QColor createColor(QStringList color);
86 QColor getDefaultColor();
87 void createOutputMesh(QColor color);
88 bool readGeneratedSegmentationFiles(
bool createOutputVolume,
bool createOutputMesh);
89 QString createImageName(QString parentName, QString filePath);
90 void createOutputVolume();
91 void deleteNotUsedFiles(QString fileNameMhd,
bool createOutputVolume);
92 QString getScriptPath();
93 QString getInputFilePath(
ImagePtr input);
94 QString getOutputFilePath(
ImagePtr input);
101 bool environmentExist(QString path);
103 QString getEnvironmentBasePath(QString environmentPath);
104 QString findRequirementsFileLocation(QString path);
105 bool createVirtualPythonEnvironment(QString environmentPath, QString requirementsPath);
106 bool isVirtualEnvironment(QString path);
107 QString getFixedEnvironmentSubdir();
127 void scriptFileChanged();
128 void processStateChanged();
129 void processFinished(
int code, QProcess::ExitStatus status);
130 void processError(QProcess::ProcessError error);
131 void processReadyRead();
132 void processReadyReadError();
133 bool createProcess();
134 bool deleteProcess();
135 bool disconnectProcess();
145 #endif // CXGENERICSCRIPTFILTER_H
QStringList mOutoutOrgans
boost::shared_ptr< class VisServices > VisServicesPtr
QString mResultFileEnding
boost::shared_ptr< class Image > ImagePtr
boost::shared_ptr< class FilePreviewProperty > FilePreviewPropertyPtr
ProcessWrapperPtr mCommandLine
QStringList mOutputClasses
SelectDataStringPropertyBasePtr mOutputImageSelectDataPtr
QString mScriptPathAddition
BoolPropertyPtr mOutputMeshOption
QString mOutputChannelName
QStringList mOutputColorList
FilePreviewPropertyPtr mScriptFilePreview
StringPropertySelectMeshPtr mOutputMeshSelectMeshPtr
boost::shared_ptr< class SelectDataStringPropertyBase > SelectDataStringPropertyBasePtr
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
QList< QColor > mOutputColors
boost::shared_ptr< class GenericScriptFilter > GenericScriptFilterPtr
PatientModelServicePtr mPatientModelService
FilePathPropertyPtr mScriptFile
boost::shared_ptr< class ProcessWrapper > ProcessWrapperPtr
boost::shared_ptr< class FilePathProperty > FilePathPropertyPtr
QStringList mOutputClasses
boost::shared_ptr< class BoolProperty > BoolPropertyPtr
vtkImageDataPtr mRawResult
boost::shared_ptr< class StringPropertySelectMesh > StringPropertySelectMeshPtr
Namespace for all CustusX production code.