NorMIT-nav
22.09
An IGT application
|
#include <cxContourFilter.h>
Public Member Functions | |
ContourFilter (VisServicesPtr services) | |
virtual | ~ContourFilter () |
virtual QString | getType () const |
virtual QString | getName () const |
virtual QString | getHelp () const |
virtual void | setActive (bool on) |
bool | preProcess () |
virtual bool | execute () |
virtual bool | postProcess () |
BoolPropertyPtr | getReduceResolutionOption (QDomElement root) |
BoolPropertyPtr | getSmoothingOption (QDomElement root) |
BoolPropertyPtr | getPreserveTopologyOption (QDomElement root) |
DoublePropertyPtr | getSurfaceThresholdOption (QDomElement root) |
DoublePropertyPtr | getDecimationOption (QDomElement root) |
ColorPropertyPtr | getColorOption (QDomElement root) |
DoublePropertyPtr | getNumberOfIterationsOption (QDomElement root) |
DoublePropertyPtr | getPassBandOption (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) |
Public Member Functions inherited from cx::Filter | |
Filter () | |
virtual | ~Filter () |
Static Public Member Functions | |
static QString | getNameSuffix () |
static vtkPolyDataPtr | execute (vtkImageDataPtr input, double threshold, bool reduceResolution=false, bool smoothing=true, bool preserveTopology=true, double decimation=0.2, double numberOfIterations=15, double passBand=0.3) |
static MeshPtr | postProcess (PatientModelServicePtr patient, vtkPolyDataPtr contour, ImagePtr base, QColor color) |
Protected Member Functions | |
virtual void | createOptions () |
virtual void | createInputTypes () |
virtual void | createOutputTypes () |
Protected Member Functions inherited from cx::FilterImpl | |
FilterImpl (VisServicesPtr services) | |
ImagePtr | getCopiedInputImage (int index=0) |
void | updateThresholdFromImageChange (QString uid, DoublePropertyPtr threshold) |
void | updateThresholdPairFromImageChange (QString uid, DoublePairPropertyPtr threshold) |
PatientModelServicePtr | patientService () |
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 () |
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 |
Marching cubes surface generation.
Definition at line 28 of file cxContourFilter.h.
cx::ContourFilter::ContourFilter | ( | VisServicesPtr | services | ) |
Definition at line 38 of file cxContourFilter.cpp.
|
inlinevirtual |
Definition at line 34 of file cxContourFilter.h.
|
protectedvirtual |
Implements cx::FilterImpl.
Definition at line 146 of file cxContourFilter.cpp.
|
protectedvirtual |
Implements cx::FilterImpl.
Definition at line 128 of file cxContourFilter.cpp.
|
protectedvirtual |
Implements cx::FilterImpl.
Definition at line 157 of file cxContourFilter.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 218 of file cxContourFilter.cpp.
|
static |
This is the core algorithm, call this if you dont need all the filter stuff. Generate a contour from a vtkImageData.
Definition at line 247 of file cxContourFilter.cpp.
ColorPropertyPtr cx::ContourFilter::getColorOption | ( | QDomElement | root | ) |
Definition at line 107 of file cxContourFilter.cpp.
DoublePropertyPtr cx::ContourFilter::getDecimationOption | ( | QDomElement | root | ) |
Definition at line 98 of file cxContourFilter.cpp.
|
virtual |
Return a help text describing algorithm usage.
Implements cx::Filter.
Definition at line 53 of file cxContourFilter.cpp.
|
virtual |
Return a descriptive name for this algorithm.
Implements cx::Filter.
Definition at line 43 of file cxContourFilter.cpp.
|
static |
Definition at line 65 of file cxContourFilter.cpp.
DoublePropertyPtr cx::ContourFilter::getNumberOfIterationsOption | ( | QDomElement | root | ) |
Definition at line 114 of file cxContourFilter.cpp.
DoublePropertyPtr cx::ContourFilter::getPassBandOption | ( | QDomElement | root | ) |
Definition at line 121 of file cxContourFilter.cpp.
BoolPropertyPtr cx::ContourFilter::getPreserveTopologyOption | ( | QDomElement | root | ) |
Definition at line 83 of file cxContourFilter.cpp.
BoolPropertyPtr cx::ContourFilter::getReduceResolutionOption | ( | QDomElement | root | ) |
Definition at line 70 of file cxContourFilter.cpp.
BoolPropertyPtr cx::ContourFilter::getSmoothingOption | ( | QDomElement | root | ) |
Definition at line 77 of file cxContourFilter.cpp.
DoublePropertyPtr cx::ContourFilter::getSurfaceThresholdOption | ( | QDomElement | root | ) |
Definition at line 89 of file cxContourFilter.cpp.
|
virtual |
Return the type of this algorithm. Need to match id string in user documentation
Implements cx::Filter.
Definition at line 48 of file cxContourFilter.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 327 of file cxContourFilter.cpp.
|
static |
Generate a mesh from the contour using base to generate name. Save to dataManager.
Definition at line 347 of file cxContourFilter.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)
Reimplemented from cx::FilterImpl.
Definition at line 212 of file cxContourFilter.cpp.
|
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.
Reimplemented from cx::FilterImpl.
Definition at line 167 of file cxContourFilter.cpp.