NorMIT-nav
2023.01.05-dev+develop.0da12
An IGT application
|
#include <cxGenericScriptFilter.h>
Public Member Functions | |
GenericScriptFilter (VisServicesPtr services) | |
virtual | ~GenericScriptFilter () |
virtual QString | getType () const |
virtual QString | getName () const |
virtual QString | getHelp () const |
virtual bool | execute () |
virtual bool | postProcess () |
FilePathPropertyPtr | getParameterFile (QDomElement root) |
void | setParameterFilePath (QString path) |
FilePreviewPropertyPtr | getIniFileOption (QDomElement root) |
Public Member Functions inherited from cx::FilterImpl | |
virtual | ~FilterImpl () |
virtual QString | getUid () const |
virtual void | initialize (QDomElement root, QString uid="") |
virtual std::vector< PropertyPtr > | getOptions () |
virtual std::vector< SelectDataStringPropertyBasePtr > | getInputTypes () |
virtual std::vector< SelectDataStringPropertyBasePtr > | getOutputTypes () |
virtual bool | hasPresets () |
virtual PresetsPtr | getPresets () |
virtual QDomElement | generatePresetFromCurrentlySetOptions (QString name) |
virtual void | setActive (bool on) |
virtual bool | preProcess () |
Public Member Functions inherited from cx::Filter | |
Filter () | |
virtual | ~Filter () |
Public Attributes | |
PatientModelServicePtr | mPatientModelService |
Protected Slots | |
void | scriptFileChanged () |
void | processStateChanged () |
void | processFinished (int code, QProcess::ExitStatus status) |
void | processError (QProcess::ProcessError error) |
void | processReadyRead () |
void | processReadyReadError () |
bool | createProcess () |
bool | deleteProcess () |
bool | disconnectProcess () |
Protected Attributes | |
FilePathPropertyPtr | mScriptFile |
FilePreviewPropertyPtr | mScriptFilePreview |
vtkImageDataPtr | mRawResult |
QString | mOutputChannelName |
QString | mScriptPathAddition |
ProcessWrapperPtr | mCommandLine |
QString | mResultFileEnding |
QStringList | mOutoutOrgans |
ImagePtr | mOutputImage |
QList< QColor > | mOutputColors |
QStringList | mOutputClasses |
SelectDataStringPropertyBasePtr | mOutputImageSelectDataPtr |
StringPropertySelectMeshPtr | mOutputMeshSelectMeshPtr |
BoolPropertyPtr | mOutputMeshOption |
Protected Attributes inherited from cx::FilterImpl | |
std::vector< SelectDataStringPropertyBasePtr > | mInputTypes |
std::vector< SelectDataStringPropertyBasePtr > | mOutputTypes |
std::vector< PropertyPtr > | mOptionsAdapters |
QDomElement | mOptions |
std::vector< DataPtr > | mCopiedInput |
QDomElement | mCopiedOptions |
bool | mActive |
VisServicesPtr | mServices |
Additional Inherited Members | |
Public Slots inherited from cx::FilterImpl | |
virtual void | requestSetPresetSlot (QString name) |
Public Slots inherited from cx::Filter | |
virtual void | requestSetPresetSlot (QString name)=0 |
Signals inherited from cx::Filter | |
void | changed () |
Generic filter calling external filter script.
Definition at line 56 of file cxGenericScriptFilter.h.
cx::GenericScriptFilter::GenericScriptFilter | ( | VisServicesPtr | services | ) |
Definition at line 76 of file cxGenericScriptFilter.cpp.
|
virtual |
Definition at line 84 of file cxGenericScriptFilter.cpp.
|
protected |
Definition at line 598 of file cxGenericScriptFilter.cpp.
|
protected |
Definition at line 240 of file cxGenericScriptFilter.cpp.
|
protected |
Definition at line 252 of file cxGenericScriptFilter.cpp.
|
protected |
Definition at line 726 of file cxGenericScriptFilter.cpp.
|
protectedvirtual |
Implements cx::FilterImpl.
Definition at line 463 of file cxGenericScriptFilter.cpp.
|
protectedvirtual |
Implements cx::FilterImpl.
Definition at line 228 of file cxGenericScriptFilter.cpp.
|
protected |
because the segmented image is 0..1
Definition at line 618 of file cxGenericScriptFilter.cpp.
|
protectedvirtual |
Implements cx::FilterImpl.
Definition at line 473 of file cxGenericScriptFilter.cpp.
|
protected |
Definition at line 740 of file cxGenericScriptFilter.cpp.
|
protectedslot |
Definition at line 512 of file cxGenericScriptFilter.cpp.
|
protected |
Definition at line 362 of file cxGenericScriptFilter.cpp.
|
protected |
Definition at line 284 of file cxGenericScriptFilter.cpp.
|
protected |
Definition at line 754 of file cxGenericScriptFilter.cpp.
|
protectedslot |
Definition at line 532 of file cxGenericScriptFilter.cpp.
|
protectedslot |
Definition at line 545 of file cxGenericScriptFilter.cpp.
|
protected |
Definition at line 300 of file cxGenericScriptFilter.cpp.
|
virtual |
Execute filter with the given inputs and produce an output. This method is threadable - can be executed in a secondary thread. Assumes preprocess has been called.
Implements cx::Filter.
Definition at line 487 of file cxGenericScriptFilter.cpp.
|
protected |
Definition at line 324 of file cxGenericScriptFilter.cpp.
|
protected |
|
protected |
Definition at line 611 of file cxGenericScriptFilter.cpp.
|
protected |
Definition at line 313 of file cxGenericScriptFilter.cpp.
|
protected |
Definition at line 305 of file cxGenericScriptFilter.cpp.
|
protected |
Definition at line 383 of file cxGenericScriptFilter.cpp.
|
virtual |
Return a help text describing algorithm usage.
Implements cx::Filter.
Definition at line 180 of file cxGenericScriptFilter.cpp.
FilePreviewPropertyPtr cx::GenericScriptFilter::getIniFileOption | ( | QDomElement | root | ) |
Definition at line 212 of file cxGenericScriptFilter.cpp.
|
protected |
Definition at line 411 of file cxGenericScriptFilter.cpp.
|
virtual |
Return a descriptive name for this algorithm.
Implements cx::Filter.
Definition at line 170 of file cxGenericScriptFilter.cpp.
|
protected |
Definition at line 419 of file cxGenericScriptFilter.cpp.
FilePathPropertyPtr cx::GenericScriptFilter::getParameterFile | ( | QDomElement | root | ) |
Definition at line 190 of file cxGenericScriptFilter.cpp.
|
protected |
Definition at line 389 of file cxGenericScriptFilter.cpp.
|
virtual |
Return the type of this algorithm. Need to match id string in user documentation
Implements cx::Filter.
Definition at line 175 of file cxGenericScriptFilter.cpp.
|
protected |
Definition at line 277 of file cxGenericScriptFilter.cpp.
|
protected |
Definition at line 376 of file cxGenericScriptFilter.cpp.
|
virtual |
Perform postprocessing tasks and set result from calculation into the output adapters.
Must be called from the main thread. Assumes execute() has been called.
Implements cx::Filter.
Definition at line 558 of file cxGenericScriptFilter.cpp.
|
protectedslot |
Definition at line 120 of file cxGenericScriptFilter.cpp.
|
protectedslot |
Definition at line 114 of file cxGenericScriptFilter.cpp.
|
protectedslot |
Definition at line 152 of file cxGenericScriptFilter.cpp.
|
protectedslot |
Definition at line 161 of file cxGenericScriptFilter.cpp.
|
protectedslot |
Definition at line 88 of file cxGenericScriptFilter.cpp.
|
protected |
Definition at line 645 of file cxGenericScriptFilter.cpp.
|
protected |
Definition at line 442 of file cxGenericScriptFilter.cpp.
|
protectedslot |
Definition at line 235 of file cxGenericScriptFilter.cpp.
void cx::GenericScriptFilter::setParameterFilePath | ( | QString | path | ) |
Definition at line 206 of file cxGenericScriptFilter.cpp.
|
protected |
Definition at line 574 of file cxGenericScriptFilter.cpp.
|
protected |
Definition at line 266 of file cxGenericScriptFilter.cpp.
|
protected |
Definition at line 115 of file cxGenericScriptFilter.h.
|
protected |
Definition at line 117 of file cxGenericScriptFilter.h.
|
protected |
Definition at line 113 of file cxGenericScriptFilter.h.
|
protected |
Definition at line 120 of file cxGenericScriptFilter.h.
|
protected |
Definition at line 119 of file cxGenericScriptFilter.h.
|
protected |
Definition at line 118 of file cxGenericScriptFilter.h.
|
protected |
Definition at line 122 of file cxGenericScriptFilter.h.
|
protected |
Definition at line 124 of file cxGenericScriptFilter.h.
|
protected |
Definition at line 123 of file cxGenericScriptFilter.h.
PatientModelServicePtr cx::GenericScriptFilter::mPatientModelService |
Definition at line 75 of file cxGenericScriptFilter.h.
|
protected |
Definition at line 112 of file cxGenericScriptFilter.h.
|
protected |
Definition at line 116 of file cxGenericScriptFilter.h.
|
protected |
Definition at line 109 of file cxGenericScriptFilter.h.
|
protected |
Definition at line 110 of file cxGenericScriptFilter.h.
|
protected |
Definition at line 114 of file cxGenericScriptFilter.h.