Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
IGTLinkMessageToNavigationDataFilter is a filter that receives OpenIGTLink messages as input and produce NavigationDatas as output. More...
#include <mitkIGTLMessageToNavigationDataFilter.h>
Public Member Functions | |
mitkClassMacro (IGTLMessageToNavigationDataFilter, NavigationDataSource) | |
Pointer | Clone () const |
virtual void | SetInput (const IGTLMessage *msg) |
Set the input of this filter. More... | |
virtual void | SetInput (unsigned int idx, const IGTLMessage *msg) |
Set input with id idx of this filter. More... | |
const IGTLMessage * | GetInput (void) const |
Get the input of this filter. More... | |
const IGTLMessage * | GetInput (unsigned int idx) const |
Get the input with id idx of this filter. More... | |
const IGTLMessage * | GetInput (std::string messageName) const |
Get the input with name messageName of this filter. More... | |
DataObjectPointerArraySizeType | GetInputIndex (std::string messageName) |
return the index of the input with name messageName, throw std::invalid_argument exception if that name was not found More... | |
virtual void | ConnectTo (mitk::IGTLMessageSource *UpstreamFilter) |
Connects the input of this filter to the outputs of the given IGTLMessageSource. More... | |
void | SetNumberOfExpectedOutputs (unsigned int numOutputs) |
Sets the number of expected outputs. 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... | |
NavigationData * | GetOutput (void) |
return the output (output with id 0) of the filter More... | |
NavigationData * | GetOutput (DataObjectPointerArraySizeType idx) |
return the output with id idx of the filter More... | |
NavigationData * | GetOutput (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 | |
IGTLMessageToNavigationDataFilter () | |
virtual | ~IGTLMessageToNavigationDataFilter () |
virtual void | GenerateData () override |
void | GenerateTransformData () |
void | GenerateTrackingDataData () |
void | GenerateQuaternionTrackingDataData () |
void | CreateOutputsForAllInputs () |
Create an output for each input. More... | |
virtual void | GenerateOutputInformation () override |
Defines how the input will be copied into the output. More... | |
Protected Member Functions inherited from mitk::NavigationDataSource | |
NavigationDataSource () | |
virtual | ~NavigationDataSource () |
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 |
Protected Attributes inherited from mitk::NavigationDataSource | |
std::string | m_Name |
bool | m_IsFrozen |
IGTLinkMessageToNavigationDataFilter is a filter that receives OpenIGTLink messages as input and produce NavigationDatas as output.
Documentation IGTLinkMessageToNavigationDataFilter is a filter that receives OpenIGTLink messages as input and produce NavigationDatas as output. If the OpenIGTLink message is not of the proper type the filter will not do anything.
Definition at line 39 of file mitkIGTLMessageToNavigationDataFilter.h.
|
protected |
Definition at line 24 of file mitkIGTLMessageToNavigationDataFilter.cpp.
References mitk::NavigationData::New().
|
protectedvirtual |
Definition at line 32 of file mitkIGTLMessageToNavigationDataFilter.cpp.
Pointer mitk::IGTLMessageToNavigationDataFilter::Clone | ( | ) | const |
|
virtual |
Connects the input of this filter to the outputs of the given IGTLMessageSource.
This method does not support smartpointer. use FilterX.GetPointer() to retrieve a dumbpointer.
Definition at line 104 of file mitkIGTLMessageToNavigationDataFilter.cpp.
References mitk::IGTLMessageSource::GetOutput().
|
protected |
Create an output for each input.
This Method sets the number of outputs to the number of inputs and creates missing outputs objects.
Definition at line 121 of file mitkIGTLMessageToNavigationDataFilter.cpp.
References mitk::NavigationData::New().
|
overrideprotectedvirtual |
Definition at line 382 of file mitkIGTLMessageToNavigationDataFilter.cpp.
References mitk::IGTLMessage::GetIGTLMessageType(), mitk::IGTLMessage::IsDataValid(), MITK_DEBUG, and MITK_INFO.
|
overrideprotectedvirtual |
Defines how the input will be copied into the output.
Definition at line 422 of file mitkIGTLMessageToNavigationDataFilter.cpp.
|
protected |
Definition at line 304 of file mitkIGTLMessageToNavigationDataFilter.cpp.
References mitk::IGTLMessage::GetMessage(), mitk::IGTLMessage::IsDataValid(), MITK_ERROR, mitkThrow, mitk::NavigationData::SetCovErrorMatrix(), mitk::NavigationData::SetDataValid(), mitk::NavigationData::SetHasOrientation(), mitk::NavigationData::SetHasPosition(), mitk::NavigationData::SetIGTTimeStamp(), mitk::NavigationData::SetName(), mitk::NavigationData::SetOrientation(), and mitk::NavigationData::SetPosition().
|
protected |
Definition at line 202 of file mitkIGTLMessageToNavigationDataFilter.cpp.
References mitk::Equal(), mitk::IGTLMessage::GetIGTTimeStamp(), mitk::IGTLMessage::GetMessage(), mitk::NavigationData::Graft(), mitk::IGTLMessage::IsDataValid(), MITK_ERROR, mitkThrow, mitk::NavigationData::New(), mitk::New(), offset, and mitk::NavigationData::SetDataValid().
|
protected |
Definition at line 140 of file mitkIGTLMessageToNavigationDataFilter.cpp.
References mitk::IGTLMessage::GetMessage(), mitk::IGTLMessage::GetName(), mitk::NavigationData::Graft(), mitk::IGTLMessage::IsDataValid(), mitkThrow, mitk::NavigationData::New(), mitk::New(), offset, and mitk::NavigationData::SetDataValid().
const mitk::IGTLMessage * mitk::IGTLMessageToNavigationDataFilter::GetInput | ( | void | ) | const |
Get the input of this filter.
Set an input
Definition at line 56 of file mitkIGTLMessageToNavigationDataFilter.cpp.
const mitk::IGTLMessage * mitk::IGTLMessageToNavigationDataFilter::GetInput | ( | unsigned int | idx | ) | const |
Get the input with id idx of this filter.
Definition at line 65 of file mitkIGTLMessageToNavigationDataFilter.cpp.
const mitk::IGTLMessage * mitk::IGTLMessageToNavigationDataFilter::GetInput | ( | std::string | messageName | ) | const |
Get the input with name messageName of this filter.
Definition at line 74 of file mitkIGTLMessageToNavigationDataFilter.cpp.
itk::ProcessObject::DataObjectPointerArraySizeType mitk::IGTLMessageToNavigationDataFilter::GetInputIndex | ( | std::string | messageName | ) |
return the index of the input with name messageName, throw std::invalid_argument exception if that name was not found
Definition at line 90 of file mitkIGTLMessageToNavigationDataFilter.cpp.
mitk::IGTLMessageToNavigationDataFilter::mitkClassMacro | ( | IGTLMessageToNavigationDataFilter | , |
NavigationDataSource | |||
) |
|
static |
Referenced by mitk::OpenIGTLinkTrackingDevice::StartTracking().
|
virtual |
Set the input of this filter.
Definition at line 36 of file mitkIGTLMessageToNavigationDataFilter.cpp.
|
virtual |
Set input with id idx of this filter.
Definition at line 41 of file mitkIGTLMessageToNavigationDataFilter.cpp.
void mitk::IGTLMessageToNavigationDataFilter::SetNumberOfExpectedOutputs | ( | unsigned int | numOutputs | ) |
Sets the number of expected outputs.
Normally, this is done automatically by the filter concept. However, in our case we can not know, for example, how many tracking elements are stored in the incoming igtl message. Therefore, we have to set the number here to the expected value.
Definition at line 114 of file mitkIGTLMessageToNavigationDataFilter.cpp.