OpenIGTLink message source.
More...
#include <mitkIGTLMessageSource.h>
OpenIGTLink message source.
Base class for all OpenIGTLink filters that produce OpenIGTLink message objects as output. This class defines the output-interface for OpenIGTLinkMessageFilters.
- Warning
- : if Update() is called on any output object, all IGTLMessage filters will generate new output data for all outputs, not just the one on which Update() was called.
Definition at line 41 of file mitkIGTLMessageSource.h.
◆ IGTLMessageSource()
mitk::IGTLMessageSource::IGTLMessageSource |
( |
| ) |
|
|
protected |
◆ ~IGTLMessageSource()
mitk::IGTLMessageSource::~IGTLMessageSource |
( |
| ) |
|
|
overrideprotected |
◆ GetFPS()
unsigned int mitk::IGTLMessageSource::GetFPS |
( |
| ) |
|
Gets the fps used for streaming this source.
◆ GetMicroserviceID()
std::string mitk::IGTLMessageSource::GetMicroserviceID |
( |
| ) |
|
◆ GetName()
virtual std::string mitk::IGTLMessageSource::GetName |
( |
| ) |
|
|
virtual |
- Returns
- Returns a human readable name of this source. There will be a default name, or you can set the name with the method SetName() if you want to change it.
◆ GetOutput() [1/3]
IGTLMessage* mitk::IGTLMessageSource::GetOutput |
( |
const std::string & |
messageName | ) |
|
return the output with name messageName of the filter
◆ GetOutput() [2/3]
IGTLMessage* mitk::IGTLMessageSource::GetOutput |
( |
DataObjectPointerArraySizeType |
idx | ) |
|
return the output with id idx of the filter
◆ GetOutput() [3/3]
IGTLMessage* mitk::IGTLMessageSource::GetOutput |
( |
void |
| ) |
|
return the output (output with id 0) of the filter
◆ GetOutputIndex()
DataObjectPointerArraySizeType mitk::IGTLMessageSource::GetOutputIndex |
( |
std::string |
messageName | ) |
|
return the index of the output with name messageName, -1 if no output with that name was found
- Warning
- if a subclass has outputs that have different data type than igtl::MessageBase, they have to overwrite this method
◆ GetParameters()
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.
◆ GetType()
virtual std::string mitk::IGTLMessageSource::GetType |
( |
| ) |
|
|
virtual |
- Returns
- Returns a human readable type of this source. There will be a default type, or you can set the name with the method SetType(). You have to set this parameter otherwise it will not be found by the message provider.
◆ GraftNthOutput()
virtual void mitk::IGTLMessageSource::GraftNthOutput |
( |
unsigned int |
idx, |
|
|
itk::DataObject * |
graft |
|
) |
| |
|
virtual |
Graft the specified DataObject onto this ProcessObject's output.
See itk::ImageSource::GraftNthOutput for details
◆ GraftOutput()
virtual void mitk::IGTLMessageSource::GraftOutput |
( |
itk::DataObject * |
graft | ) |
|
|
virtual |
Graft the specified DataObject onto this ProcessObject's output.
See itk::ImageSource::Graft Output for details
◆ MakeOutput() [1/2]
itk::DataObject::Pointer mitk::IGTLMessageSource::MakeOutput |
( |
const DataObjectIdentifierType & |
name | ) |
|
|
override |
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.
◆ MakeOutput() [2/2]
itk::DataObject::Pointer mitk::IGTLMessageSource::MakeOutput |
( |
DataObjectPointerArraySizeType |
idx | ) |
|
|
override |
Allocates a new output object and returns it. Currently the index idx is not evaluated.
- Parameters
-
idx | the index of the output for which an object should be created |
- Returns
- the new object
◆ mitkClassMacroItkParent()
mitk::IGTLMessageSource::mitkClassMacroItkParent |
( |
IGTLMessageSource |
, |
|
|
itk::ProcessObject |
|
|
) |
| |
◆ RegisterAsMicroservice()
virtual void mitk::IGTLMessageSource::RegisterAsMicroservice |
( |
| ) |
|
|
virtual |
Registers this object as a Microservice, making it available to every module and/or plugin. To unregister, call UnregisterMicroservice().
Reimplemented in mitk::IGTLDeviceSource.
◆ SetFPS()
void mitk::IGTLMessageSource::SetFPS |
( |
unsigned int |
fps | ) |
|
Sets the fps used for streaming this source.
◆ SetName()
virtual void mitk::IGTLMessageSource::SetName |
( |
std::string |
_arg | ) |
|
|
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.
◆ SetParameters()
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.
Definition at line 162 of file mitkIGTLMessageSource.h.
◆ SetType()
virtual void mitk::IGTLMessageSource::SetType |
( |
std::string |
_arg | ) |
|
|
virtual |
- Returns
- Returns a human readable type of this source. There will be a default type, or you can set the name with the method SetType(). You have to set this parameter otherwise it will not be found by the message provider.
◆ UnRegisterMicroservice()
virtual void mitk::IGTLMessageSource::UnRegisterMicroservice |
( |
| ) |
|
|
virtual |
Registers this object as a Microservice, making it available to every module and/or plugin.
◆ m_Name
std::string mitk::IGTLMessageSource::m_Name |
|
protected |
◆ m_ServiceRegistration
◆ m_StreamingFPS
unsigned int mitk::IGTLMessageSource::m_StreamingFPS |
|
protected |
◆ m_StreamingFPSMutex
std::mutex mitk::IGTLMessageSource::m_StreamingFPSMutex |
|
protected |
◆ m_Type
std::string mitk::IGTLMessageSource::m_Type |
|
protected |
◆ US_INTERFACE_NAME
const std::string mitk::IGTLMessageSource::US_INTERFACE_NAME |
|
static |
◆ US_PROPKEY_DEVICENAME
const std::string mitk::IGTLMessageSource::US_PROPKEY_DEVICENAME |
|
static |
◆ US_PROPKEY_DEVICETYPE
const std::string mitk::IGTLMessageSource::US_PROPKEY_DEVICETYPE |
|
static |
◆ US_PROPKEY_ID
const std::string mitk::IGTLMessageSource::US_PROPKEY_ID |
|
static |
◆ US_PROPKEY_ISACTIVE
const std::string mitk::IGTLMessageSource::US_PROPKEY_ISACTIVE |
|
static |
The documentation for this class was generated from the following file: