Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::NavigationDataSmoothingFilter Class Reference

This filter smoothes the navigation data by calculating the mean value of the last few input values and using this as output. More...

#include <mitkNavigationDataSmoothingFilter.h>

Inheritance diagram for mitk::NavigationDataSmoothingFilter:
Collaboration diagram for mitk::NavigationDataSmoothingFilter:

Public Member Functions

 mitkClassMacro (NavigationDataSmoothingFilter, NavigationDataToNavigationDataFilter)
 
virtual void SetNumerOfValues (int _arg)
 Sets the number of values before the current value which will be used for smoothing. More...
 
- Public Member Functions inherited from mitk::NavigationDataToNavigationDataFilter
 mitkClassMacro (NavigationDataToNavigationDataFilter, NavigationDataSource)
 
virtual void SetInput (const NavigationData *nd)
 Set the input of this filter. More...
 
virtual void SetInput (unsigned int idx, const NavigationData *nd)
 Set input with id idx of this filter. More...
 
const NavigationDataGetInput (void) const
 Get the input of this filter. More...
 
const NavigationDataGetInput (unsigned int idx) const
 Get the input with id idx of this filter. More...
 
const NavigationDataGetInput (std::string navDataName) const
 Get the input with name navDataName of this filter. More...
 
DataObjectPointerArraySizeType GetInputIndex (std::string navDataName)
 return the index of the input with name navDataName, throw std::invalid_argument exception if that name was not found More...
 
virtual void ConnectTo (mitk::NavigationDataSource *UpstreamFilter)
 Connects the input of this filter to the outputs of the given NavigationDataSource. More...
 
- Public Member Functions inherited from mitk::NavigationDataSource
 mitkClassMacroItkParent (NavigationDataSource, itk::ProcessObject)
 
virtual std::string GetName ()
 
virtual void SetName (std::string _arg)
 Sets the human readable name of this source. There is also a default name, but you can use this method if you need to define it on your own. More...
 
NavigationDataGetOutput (void)
 return the output (output with id 0) of the filter More...
 
NavigationDataGetOutput (DataObjectPointerArraySizeType idx)
 return the output with id idx of the filter More...
 
NavigationDataGetOutput (const std::string &navDataName)
 return the output with name navDataName of the filter More...
 
DataObjectPointerArraySizeType GetOutputIndex (std::string navDataName)
 return the index of the output with name navDataName, -1 if no output with that name was found More...
 
virtual void RegisterAsMicroservice ()
 Registers this object as a Microservice, making it available to every module and/or plugin. To unregister, call UnregisterMicroservice(). More...
 
virtual void UnRegisterMicroservice ()
 Registers this object as a Microservice, making it available to every module and/or plugin. More...
 
std::string GetMicroserviceID ()
 Returns the id that this device is registered with. The id will only be valid, if the NavigationDataSource has been registered using RegisterAsMicroservice(). More...
 
virtual void GraftNthOutput (unsigned int idx, itk::DataObject *graft)
 Graft the specified DataObject onto this ProcessObject's output. More...
 
virtual void GraftOutput (itk::DataObject *graft)
 Graft the specified DataObject onto this ProcessObject's output. More...
 
virtual itk::DataObject::Pointer MakeOutput (DataObjectPointerArraySizeType idx) override
 
virtual itk::DataObject::Pointer MakeOutput (const DataObjectIdentifierType &name) override
 
virtual void SetParameters (const mitk::PropertyList *)
 Set all filter parameters as the PropertyList p. More...
 
virtual mitk::PropertyList::ConstPointer GetParameters () const
 Get all filter parameters as a PropertyList. More...
 
virtual void Freeze ()
 
virtual void UnFreeze ()
 
virtual bool GetIsFrozen ()
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

 NavigationDataSmoothingFilter ()
 
virtual ~NavigationDataSmoothingFilter ()
 
virtual void GenerateData () override
 
void InitializeLastValuesList ()
 
void AddValue (int outputID, mitk::Point3D value)
 
mitk::Point3D GetMean (int outputID)
 
- Protected Member Functions inherited from mitk::NavigationDataToNavigationDataFilter
 NavigationDataToNavigationDataFilter ()
 
virtual ~NavigationDataToNavigationDataFilter ()
 
void CreateOutputsForAllInputs ()
 Create an output for each input. More...
 
- Protected Member Functions inherited from mitk::NavigationDataSource
 NavigationDataSource ()
 
virtual ~NavigationDataSource ()
 

Protected Attributes

std::map< int, std::map< int, mitk::Point3D > > m_LastValuesList
 
int m_NumerOfValues
 
- Protected Attributes inherited from mitk::NavigationDataSource
std::string m_Name
 
bool m_IsFrozen
 

Additional Inherited Members

- Static Public Attributes inherited from mitk::NavigationDataSource
static const std::string US_INTERFACE_NAME
 These Constants are used in conjunction with Microservices. More...
 
static const std::string US_PROPKEY_DEVICENAME
 
static const std::string US_PROPKEY_ID
 
static const std::string US_PROPKEY_ISACTIVE
 

Detailed Description

This filter smoothes the navigation data by calculating the mean value of the last few input values and using this as output.

Documentation

Definition at line 33 of file mitkNavigationDataSmoothingFilter.h.

Constructor & Destructor Documentation

mitk::NavigationDataSmoothingFilter::NavigationDataSmoothingFilter ( )
protected

Definition at line 19 of file mitkNavigationDataSmoothingFilter.cpp.

mitk::NavigationDataSmoothingFilter::~NavigationDataSmoothingFilter ( )
protectedvirtual

Definition at line 25 of file mitkNavigationDataSmoothingFilter.cpp.

Member Function Documentation

void mitk::NavigationDataSmoothingFilter::AddValue ( int  outputID,
mitk::Point3D  value 
)
protected

Definition at line 83 of file mitkNavigationDataSmoothingFilter.cpp.

void mitk::NavigationDataSmoothingFilter::GenerateData ( )
overrideprotectedvirtual
mitk::Point3D mitk::NavigationDataSmoothingFilter::GetMean ( int  outputID)
protected

Definition at line 93 of file mitkNavigationDataSmoothingFilter.cpp.

void mitk::NavigationDataSmoothingFilter::InitializeLastValuesList ( )
protected

Definition at line 66 of file mitkNavigationDataSmoothingFilter.cpp.

mitk::NavigationDataSmoothingFilter::mitkClassMacro ( NavigationDataSmoothingFilter  ,
NavigationDataToNavigationDataFilter   
)
static Pointer mitk::NavigationDataSmoothingFilter::New ( )
static
virtual void mitk::NavigationDataSmoothingFilter::SetNumerOfValues ( int  _arg)
virtual

Sets the number of values before the current value which will be used for smoothing.

Member Data Documentation

std::map< int, std::map< int , mitk::Point3D> > mitk::NavigationDataSmoothingFilter::m_LastValuesList
protected

Definition at line 51 of file mitkNavigationDataSmoothingFilter.h.

int mitk::NavigationDataSmoothingFilter::m_NumerOfValues
protected

Definition at line 53 of file mitkNavigationDataSmoothingFilter.h.


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