NorMIT-nav
2023.01.05-dev+develop.0da12
An IGT application
|
#include <cxFilterImpl.h>
Public Slots | |
virtual void | requestSetPresetSlot (QString name) |
Public Slots inherited from cx::Filter | |
virtual void | requestSetPresetSlot (QString name)=0 |
Public Member Functions | |
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 () |
virtual QString | getType () const =0 |
virtual QString | getName () const =0 |
virtual QString | getHelp () const =0 |
virtual bool | execute ()=0 |
virtual bool | postProcess ()=0 |
Protected Member Functions | |
FilterImpl (VisServicesPtr services) | |
ImagePtr | getCopiedInputImage (int index=0) |
void | updateThresholdFromImageChange (QString uid, DoublePropertyPtr threshold) |
void | updateThresholdPairFromImageChange (QString uid, DoublePairPropertyPtr threshold) |
virtual void | createOptions ()=0 |
virtual void | createInputTypes ()=0 |
virtual void | createOutputTypes ()=0 |
PatientModelServicePtr | patientService () |
Protected Attributes | |
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 | |
Signals inherited from cx::Filter | |
void | changed () |
Helper implementation for Filter.
Inherit from this class to get access to useful functionality common to Filter descendants.
Definition at line 36 of file cxFilterImpl.h.
|
inlinevirtual |
Definition at line 41 of file cxFilterImpl.h.
|
explicitprotected |
Definition at line 25 of file cxFilterImpl.cpp.
|
protectedpure virtual |
Implemented in cx::AirwaysFilter, cx::GenericScriptFilter, cx::ContourFilter, cx::RouteToTargetFilter, cx::AccusurfFilter, cx::AirwaysFromCenterlineFilter, cx::BinaryThresholdImageFilter, cx::BinaryThinningImageFilter3DFilter, cx::ColorVariationFilter, cx::SmoothingImageFilter, cx::ResampleImageFilter, cx::DummyFilter, and cx::DilationFilter.
|
protectedpure virtual |
Implemented in cx::AirwaysFilter, cx::GenericScriptFilter, cx::ContourFilter, cx::RouteToTargetFilter, cx::AccusurfFilter, cx::AirwaysFromCenterlineFilter, cx::BinaryThresholdImageFilter, cx::BinaryThinningImageFilter3DFilter, cx::ColorVariationFilter, cx::SmoothingImageFilter, cx::ResampleImageFilter, cx::DummyFilter, and cx::DilationFilter.
|
protectedpure virtual |
Implemented in cx::AirwaysFilter, cx::GenericScriptFilter, cx::ContourFilter, cx::RouteToTargetFilter, cx::AccusurfFilter, cx::AirwaysFromCenterlineFilter, cx::BinaryThresholdImageFilter, cx::BinaryThinningImageFilter3DFilter, cx::ColorVariationFilter, cx::SmoothingImageFilter, cx::ResampleImageFilter, cx::DummyFilter, and cx::DilationFilter.
|
inlinevirtual |
Generates a preset from the filters currently set options.
Implements cx::Filter.
Definition at line 50 of file cxFilterImpl.h.
|
protected |
Helper: Return the index'th input type as an image. Return zero if not available (as image).
Definition at line 104 of file cxFilterImpl.cpp.
|
virtual |
|
virtual |
Fill options for this algorithm. The options use the input xml noe from init to fill.
Implements cx::Filter.
Definition at line 50 of file cxFilterImpl.cpp.
|
virtual |
Return a help text describing algorithm usage.
Implements cx::Filter.
Definition at line 69 of file cxFilterImpl.cpp.
|
inlinevirtual |
|
virtual |
Return a unique string for this algorithm.
Implements cx::Filter.
Definition at line 35 of file cxFilterImpl.cpp.
|
inlinevirtual |
Checks wheter the filter has defined a set of presets.
Implements cx::Filter.
Definition at line 48 of file cxFilterImpl.h.
|
virtual |
Initialize algorithm Fill options for this algorithm. Input is the root node for this algo, filled with stored settings (if any).
Set uid - if no uid is given, a default based on class name is used.
Implements cx::Filter.
Definition at line 42 of file cxFilterImpl.cpp.
|
protected |
Definition at line 30 of file cxFilterImpl.cpp.
|
virtual |
Perform main thread preprocessing. Copies input data from options and the input adapters into thread-safe storage. Assumes getOptions(), getInputTypes(), getOutputTypes() has been called (this initializes options)
Implements cx::Filter.
Reimplemented in cx::AirwaysFilter, cx::BinaryThresholdImageFilter, cx::ContourFilter, cx::BinaryThinningImageFilter3DFilter, and cx::DilationFilter.
Definition at line 85 of file cxFilterImpl.cpp.
|
inlinevirtualslot |
Definition at line 55 of file cxFilterImpl.h.
|
virtual |
Set Active state. Active filters are used by the ui (or similar) and can interact with the system, for example by showing a preview.
Inactive filters should no interact with the system.
Implements cx::Filter.
Reimplemented in cx::BinaryThresholdImageFilter, and cx::ContourFilter.
Definition at line 79 of file cxFilterImpl.cpp.
|
protected |
Helper: Call if you have an image threshold Property that need update from an image change.
Definition at line 111 of file cxFilterImpl.cpp.
|
protected |
Definition at line 129 of file cxFilterImpl.cpp.
|
protected |
Definition at line 81 of file cxFilterImpl.h.
|
protected |
Definition at line 79 of file cxFilterImpl.h.
|
protected |
Definition at line 80 of file cxFilterImpl.h.
|
protected |
Definition at line 73 of file cxFilterImpl.h.
|
protected |
Definition at line 76 of file cxFilterImpl.h.
|
protected |
Definition at line 75 of file cxFilterImpl.h.
|
protected |
Definition at line 74 of file cxFilterImpl.h.
|
protected |
Definition at line 82 of file cxFilterImpl.h.