Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
This filter creates mitk::PointSet objects from mitk::NavigaitionData objects. More...
#include <mitkNavigationDataToPointSetFilter.h>
Public Types | |
enum | OperationMode { Mode3D, Mode3DMean, Mode4D } |
There are two different operation modes. More... | |
Public Types inherited from mitk::PointSetSource | |
typedef PointSetSource | Self |
typedef BaseDataSource | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef PointSet | OutputType |
typedef OutputType::Pointer | OutputTypePointer |
Public Types inherited from mitk::BaseDataSource | |
typedef BaseDataSource | Self |
typedef itk::ProcessObject | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef BaseData | OutputType |
typedef itk::DataObject::DataObjectIdentifierType | DataObjectIdentifierType |
Public Member Functions | |
mitkClassMacro (NavigationDataToPointSetFilter, PointSetSource) | |
Pointer | Clone () const |
virtual void | SetRingBufferSize (unsigned int _arg) |
Sets the size for the ring buffer. More... | |
virtual void | SetNumberForMean (unsigned int _arg) |
Sets the number of Navigation Data, which should be averaged. More... | |
virtual unsigned int | GetNumberForMean () |
Gets the number of Navigation Data, which should be averaged. More... | |
virtual void | GenerateData () override |
filter execute method More... | |
virtual void | SetInput (const mitk::NavigationData *NavigationData) |
Sets one input NavigationData. More... | |
virtual void | SetInput (unsigned int idx, const NavigationData *nd) |
Sets the input NavigationData at a specific index. More... | |
const mitk::NavigationData * | GetInput () |
Returns the input of this filter. More... | |
const mitk::NavigationData * | GetInput (unsigned int idx) |
Returns the input number idx of this filter. More... | |
virtual void | SetOperationMode (OperationMode mode) |
Sets the mode of this filter. More... | |
virtual OperationMode | GetOperationMode () const |
returns the mode of this filter. More... | |
void | GenerateOutputInformation () override |
Public Member Functions inherited from mitk::PointSetSource | |
virtual std::vector< std::string > | GetClassHierarchy () const override |
virtual const char * | GetClassName () const |
Pointer | Clone () const |
OutputType * | GetOutput () |
const OutputType * | GetOutput () const |
OutputType * | GetOutput (DataObjectPointerArraySizeType idx) |
const OutputType * | GetOutput (DataObjectPointerArraySizeType idx) const |
virtual itk::DataObject::Pointer | MakeOutput (DataObjectPointerArraySizeType idx) override |
virtual itk::DataObject::Pointer | MakeOutput (const DataObjectIdentifierType &name) override |
Public Member Functions inherited from mitk::BaseDataSource | |
OutputType * | GetOutput () |
const OutputType * | GetOutput () const |
OutputType * | GetOutput (DataObjectPointerArraySizeType idx) |
const OutputType * | GetOutput (DataObjectPointerArraySizeType idx) const |
virtual void | GraftOutput (OutputType *output) |
Graft the specified BaseData onto this BaseDataSource's output. More... | |
virtual void | GraftOutput (const DataObjectIdentifierType &key, OutputType *output) |
virtual void | GraftNthOutput (unsigned int idx, OutputType *output) |
Graft the specified base data object onto this BaseDataSource's idx'th output. More... | |
bool | Updating () const |
Access itk::ProcessObject::m_Updating. More... | |
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from mitk::PointSetSource | |
static const char * | GetStaticNameOfClass () |
static Pointer | New () |
Static Public Member Functions inherited from mitk::BaseDataSource | |
static const char * | GetStaticNameOfClass () |
Protected Member Functions | |
NavigationDataToPointSetFilter () | |
empty implementation to prevent calling of the superclass method that would try to copy information from the input NavigationData to the output PointSet, which makes no sense! More... | |
virtual | ~NavigationDataToPointSetFilter () |
virtual void | GenerateDataMode3D () |
Generates the output for Mode3D. More... | |
virtual void | GenerateDataMode3DMean () |
Generates the output for Mode3DMean. More... | |
virtual void | GenerateDataMode4D () |
Generates the output for Mode4D. More... | |
virtual void | CreateOutputsForAllInputs () |
create output objects according to OperationMode for all inputs More... | |
Protected Member Functions inherited from mitk::PointSetSource | |
PointSetSource () | |
virtual | ~PointSetSource () |
Protected Member Functions inherited from mitk::BaseDataSource | |
BaseDataSource () | |
virtual | ~BaseDataSource () |
Protected Attributes | |
OperationMode | m_OperationMode |
Stores the mode. See enum OperationMode. More... | |
unsigned int | m_RingBufferSize |
Stores the ringbuffer size. More... | |
unsigned int | m_CurrentTimeStep |
Indicates the current timestamp. More... | |
unsigned int | m_NumberForMean |
Number of Navigation Data, which should be averaged. More... | |
Additional Inherited Members | |
Static Protected Member Functions inherited from mitk::BaseDataSource | |
static Pointer | New () |
This filter creates mitk::PointSet objects from mitk::NavigaitionData objects.
Documentation
This filter has two modes that can be set with SetOperationMode().
Definition at line 39 of file mitkNavigationDataToPointSetFilter.h.
There are two different operation modes.
Documentation
Enumerator | |
---|---|
Mode3D | |
Mode3DMean | |
Mode4D |
Definition at line 54 of file mitkNavigationDataToPointSetFilter.h.
|
protected |
empty implementation to prevent calling of the superclass method that would try to copy information from the input NavigationData to the output PointSet, which makes no sense!
Definition at line 23 of file mitkNavigationDataToPointSetFilter.cpp.
References m_CurrentTimeStep, m_NumberForMean, m_OperationMode, m_RingBufferSize, Mode3D, and mitk::PointSet::New().
|
protectedvirtual |
Definition at line 37 of file mitkNavigationDataToPointSetFilter.cpp.
Pointer mitk::NavigationDataToPointSetFilter::Clone | ( | ) | const |
|
protectedvirtual |
create output objects according to OperationMode for all inputs
Definition at line 92 of file mitkNavigationDataToPointSetFilter.cpp.
|
overridevirtual |
filter execute method
Definition at line 41 of file mitkNavigationDataToPointSetFilter.cpp.
|
protectedvirtual |
Generates the output for Mode3D.
Definition at line 119 of file mitkNavigationDataToPointSetFilter.cpp.
References mitk::NavigationData::GetPosition(), mitk::PointSet::GetSize(), mitk::PointSet::InsertPoint(), and mitk::NavigationData::IsDataValid().
|
protectedvirtual |
Generates the output for Mode3DMean.
read n times all connected inputs and sum them into outputs. Finish with dividing each output by n.
Definition at line 138 of file mitkNavigationDataToPointSetFilter.cpp.
References mitk::NavigationData::GetIGTTimeStamp(), mitk::PointSet::GetPoint(), mitk::NavigationData::GetPosition(), mitk::PointSet::InsertPoint(), mitk::NavigationData::IsDataValid(), MBI_INFO, and mitk::PointSet::SetPoint().
|
protectedvirtual |
Generates the output for Mode4D.
Definition at line 222 of file mitkNavigationDataToPointSetFilter.cpp.
References mitk::NavigationData::GetPosition(), and mitk::PointSet::SetPoint().
|
inlineoverride |
Definition at line 125 of file mitkNavigationDataToPointSetFilter.h.
const mitk::NavigationData * mitk::NavigationDataToPointSetFilter::GetInput | ( | void | ) |
Returns the input of this filter.
Definition at line 76 of file mitkNavigationDataToPointSetFilter.cpp.
const mitk::NavigationData * mitk::NavigationDataToPointSetFilter::GetInput | ( | unsigned int | idx | ) |
Returns the input number idx of this filter.
Definition at line 84 of file mitkNavigationDataToPointSetFilter.cpp.
|
virtual |
Gets the number of Navigation Data, which should be averaged.
|
virtual |
returns the mode of this filter.
See OperationMode for the behavior in the different modes
mitk::NavigationDataToPointSetFilter::mitkClassMacro | ( | NavigationDataToPointSetFilter | , |
PointSetSource | |||
) |
|
static |
|
virtual |
Sets one input NavigationData.
Definition at line 60 of file mitkNavigationDataToPointSetFilter.cpp.
|
virtual |
Sets the input NavigationData at a specific index.
Definition at line 68 of file mitkNavigationDataToPointSetFilter.cpp.
|
virtual |
Sets the number of Navigation Data, which should be averaged.
|
virtual |
Sets the mode of this filter.
See OperationMode for the behavior in the different modes A call to this method will change the number of outputs of the filter. After calling this method, all previously acquired pointers to outputs are invalid Always set the operation mode first, then get the outputs with GetOutput()
Definition at line 240 of file mitkNavigationDataToPointSetFilter.cpp.
|
virtual |
Sets the size for the ring buffer.
Documentation The size determines the maximum number of timesteps in 4D mode and the number of points in 3D mode of the output PointSet
|
protected |
Indicates the current timestamp.
Definition at line 156 of file mitkNavigationDataToPointSetFilter.h.
Referenced by NavigationDataToPointSetFilter().
|
protected |
Number of Navigation Data, which should be averaged.
Definition at line 157 of file mitkNavigationDataToPointSetFilter.h.
Referenced by NavigationDataToPointSetFilter().
|
protected |
Stores the mode. See enum OperationMode.
Definition at line 154 of file mitkNavigationDataToPointSetFilter.h.
Referenced by NavigationDataToPointSetFilter().
|
protected |
Stores the ringbuffer size.
Definition at line 155 of file mitkNavigationDataToPointSetFilter.h.
Referenced by NavigationDataToPointSetFilter().