Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
Navigation Data source. More...
#include <mitkNavigationDataSource.h>
Public Member Functions | |
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 Attributes | |
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 Member Functions | |
NavigationDataSource () | |
virtual | ~NavigationDataSource () |
Protected Attributes | |
std::string | m_Name |
bool | m_IsFrozen |
Navigation Data source.
Documentation Base class for all navigation filters that produce NavigationData objects as output. This class defines the output-interface for NavigationDataFilters.
Definition at line 42 of file mitkNavigationDataSource.h.
|
protected |
Definition at line 32 of file mitkNavigationDataSource.cpp.
|
protectedvirtual |
Definition at line 37 of file mitkNavigationDataSource.cpp.
|
virtual |
Freezes the navigation data source which means the current state is frozen and the output navigation data stays at it is. Calling Update() does not have any effect until UnFreeze() is called. This also means that the data source is not updated any more.
Definition at line 148 of file mitkNavigationDataSource.cpp.
|
virtual |
std::string mitk::NavigationDataSource::GetMicroserviceID | ( | ) |
Returns the id that this device is registered with. The id will only be valid, if the NavigationDataSource has been registered using RegisterAsMicroservice().
Definition at line 94 of file mitkNavigationDataSource.cpp.
|
virtual |
mitk::NavigationData * mitk::NavigationDataSource::GetOutput | ( | void | ) |
return the output (output with id 0) of the filter
Definition at line 41 of file mitkNavigationDataSource.cpp.
Referenced by mitk::NavigationDataToNavigationDataFilter::ConnectTo(), and mitk::NavigationDataToIGTLMessageFilter::ConnectTo().
mitk::NavigationData * mitk::NavigationDataSource::GetOutput | ( | DataObjectPointerArraySizeType | idx | ) |
return the output with id idx of the filter
Definition at line 49 of file mitkNavigationDataSource.cpp.
mitk::NavigationData * mitk::NavigationDataSource::GetOutput | ( | const std::string & | navDataName | ) |
return the output with name navDataName of the filter
Definition at line 59 of file mitkNavigationDataSource.cpp.
itk::ProcessObject::DataObjectPointerArraySizeType mitk::NavigationDataSource::GetOutputIndex | ( | std::string | navDataName | ) |
return the index of the output with name navDataName, -1 if no output with that name was found
Definition at line 68 of file mitkNavigationDataSource.cpp.
|
virtual |
Get all filter parameters as a PropertyList.
This method allows to get all parameters of a filter with one method call. The returned PropertyList must be assigned to a SmartPointer immediately, or else it will get destroyed. Every filter must overwrite this method to create a filter-specific PropertyList. Note that property names must be unique over all MITK-IGT filters. Therefore each filter should use its name as a prefix for each property name. Secondly, each filter should list the property names and data types in the method documentation.
Reimplemented in mitk::CameraVisualization, and mitk::NavigationDataDisplacementFilter.
Definition at line 140 of file mitkNavigationDataSource.cpp.
References mitk::PropertyList::New().
|
virtual |
Graft the specified DataObject onto this ProcessObject's output.
See itk::ImageSource::GraftNthOutput for details
Definition at line 103 of file mitkNavigationDataSource.cpp.
|
virtual |
Graft the specified DataObject onto this ProcessObject's output.
See itk::ImageSource::Graft Output for details
Definition at line 98 of file mitkNavigationDataSource.cpp.
|
overridevirtual |
Allocates a new output object and returns it. Currently the index idx is not evaluated.
idx | the index of the output for which an object should be created |
Definition at line 125 of file mitkNavigationDataSource.cpp.
References mitk::NavigationData::New().
|
overridevirtual |
This is a default implementation to make sure we have something. Once all the subclasses of ProcessObject provide an appopriate MakeOutput(), then ProcessObject::MakeOutput() can be made pure virtual.
Definition at line 130 of file mitkNavigationDataSource.cpp.
References mitk::NavigationData::New().
mitk::NavigationDataSource::mitkClassMacroItkParent | ( | NavigationDataSource | , |
itk::ProcessObject | |||
) |
|
virtual |
Registers this object as a Microservice, making it available to every module and/or plugin. To unregister, call UnregisterMicroservice().
Definition at line 77 of file mitkNavigationDataSource.cpp.
References us::GetModuleContext(), and mitk::UIDGenerator::GetUID().
|
virtual |
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.
Referenced by mitk::NavigationDataPlayerBase::NavigationDataPlayerBase().
|
inlinevirtual |
Set all filter parameters as the PropertyList p.
This method allows to set all parameters of a filter with one method call. For the names of the parameters, take a look at the GetParameters method of the filter This method has to be overwritten by each MITK-IGT filter.
Reimplemented in mitk::CameraVisualization, and mitk::NavigationDataDisplacementFilter.
Definition at line 142 of file mitkNavigationDataSource.h.
|
virtual |
Unfreezes the data source.
Definition at line 153 of file mitkNavigationDataSource.cpp.
|
virtual |
Registers this object as a Microservice, making it available to every module and/or plugin.
Definition at line 89 of file mitkNavigationDataSource.cpp.
|
protected |
Definition at line 177 of file mitkNavigationDataSource.h.
|
protected |
Definition at line 175 of file mitkNavigationDataSource.h.
|
static |
These Constants are used in conjunction with Microservices.
Definition at line 99 of file mitkNavigationDataSource.h.
|
static |
Definition at line 100 of file mitkNavigationDataSource.h.
Referenced by QmitkNavigationDataSourceSelectionWidget::CreateQtPartControl().
|
static |
Definition at line 101 of file mitkNavigationDataSource.h.
Referenced by QmitkNavigationDataSourceSelectionWidget::NavigationDataSourceSelected().
|
static |
Definition at line 102 of file mitkNavigationDataSource.h.