Fraxinus  16.5.0-fx-rc9
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cx::LevelSetFilter Class Reference

#include <cxLevelSetFilterService.h>

Inheritance diagram for cx::LevelSetFilter:
cx::FilterImpl cx::Filter

Public Member Functions

 LevelSetFilter (ctkPluginContext *pluginContext)
 
virtual ~LevelSetFilter ()
 
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 ()
 
DoublePropertyPtr getThresholdOption (QDomElement root)
 
DoublePropertyPtr getEpsilonOption (QDomElement root)
 
DoublePropertyPtr getAlphaOption (QDomElement root)
 
DoublePropertyPtr getRadiusOption (QDomElement root)
 
QDomElement getmOptions ()
 
- Public Member Functions inherited from cx::FilterImpl
virtual ~FilterImpl ()
 
virtual QString getUid () const
 
virtual void initialize (QDomElement root, QString uid="")
 
virtual std::vector< PropertyPtrgetOptions ()
 
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 Vector3D getSeedPointFromTool (SpaceProviderPtr spaceProvider, DataPtr image)
 
static bool isSeedPointInsideImage (Vector3D, DataPtr)
 

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< PropertyPtrmOptionsAdapters
 
QDomElement mOptions
 
std::vector< DataPtrmCopiedInput
 
QDomElement mCopiedOptions
 
bool mActive
 
VisServicesPtr mServices
 

Detailed Description

Definition at line 46 of file cxLevelSetFilterService.h.

Constructor & Destructor Documentation

cx::LevelSetFilter::LevelSetFilter ( ctkPluginContext *  pluginContext)

Definition at line 73 of file cxLevelSetFilterService.cpp.

virtual cx::LevelSetFilter::~LevelSetFilter ( )
inlinevirtual

Definition at line 52 of file cxLevelSetFilterService.h.

Member Function Documentation

void cx::LevelSetFilter::createInputTypes ( )
protectedvirtual

Implements cx::FilterImpl.

Definition at line 327 of file cxLevelSetFilterService.cpp.

void cx::LevelSetFilter::createOptions ( )
protectedvirtual

Implements cx::FilterImpl.

Definition at line 314 of file cxLevelSetFilterService.cpp.

void cx::LevelSetFilter::createOutputTypes ( )
protectedvirtual

Implements cx::FilterImpl.

Definition at line 337 of file cxLevelSetFilterService.cpp.

bool cx::LevelSetFilter::execute ( )
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.

Returns
success.

Implements cx::Filter.

Definition at line 163 of file cxLevelSetFilterService.cpp.

DoublePropertyPtr cx::LevelSetFilter::getAlphaOption ( QDomElement  root)

Definition at line 423 of file cxLevelSetFilterService.cpp.

DoublePropertyPtr cx::LevelSetFilter::getEpsilonOption ( QDomElement  root)

Definition at line 414 of file cxLevelSetFilterService.cpp.

QString cx::LevelSetFilter::getHelp ( ) const
virtual

Return a help text describing algorithm usage.

Implements cx::Filter.

Definition at line 88 of file cxLevelSetFilterService.cpp.

QDomElement cx::LevelSetFilter::getmOptions ( )

Definition at line 322 of file cxLevelSetFilterService.cpp.

QString cx::LevelSetFilter::getName ( ) const
virtual

Return a descriptive name for this algorithm.

Implements cx::Filter.

Definition at line 78 of file cxLevelSetFilterService.cpp.

DoublePropertyPtr cx::LevelSetFilter::getRadiusOption ( QDomElement  root)

Definition at line 433 of file cxLevelSetFilterService.cpp.

Vector3D cx::LevelSetFilter::getSeedPointFromTool ( SpaceProviderPtr  spaceProvider,
DataPtr  image 
)
static

Definition at line 95 of file cxLevelSetFilterService.cpp.

DoublePropertyPtr cx::LevelSetFilter::getThresholdOption ( QDomElement  root)

Definition at line 405 of file cxLevelSetFilterService.cpp.

QString cx::LevelSetFilter::getType ( ) const
virtual

Return the type of this algorithm.

Implements cx::Filter.

Definition at line 83 of file cxLevelSetFilterService.cpp.

bool cx::LevelSetFilter::isSeedPointInsideImage ( Vector3D  seedPoint,
DataPtr  image 
)
static

Definition at line 121 of file cxLevelSetFilterService.cpp.

bool cx::LevelSetFilter::postProcess ( )
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.

Returns
success.

because the segmented image is 0..1

Implements cx::Filter.

Definition at line 221 of file cxLevelSetFilterService.cpp.

bool cx::LevelSetFilter::preProcess ( )
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)

Returns
success.

Reimplemented from cx::FilterImpl.

Definition at line 134 of file cxLevelSetFilterService.cpp.

void cx::LevelSetFilter::setActive ( bool  on)
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 352 of file cxLevelSetFilterService.cpp.


The documentation for this class was generated from the following files: