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

This filter creates IGTL messages from mitk::Image objects. More...

#include <mitkImageToIGTLMessageFilter.h>

Inheritance diagram for mitk::ImageToIGTLMessageFilter:
Collaboration diagram for mitk::ImageToIGTLMessageFilter:

Public Member Functions

 mitkClassMacro (ImageToIGTLMessageFilter, IGTLMessageSource)
 
Pointer Clone () const
 
virtual void GenerateData () override
 filter execute method More...
 
virtual void SetInput (const mitk::Image *img)
 Sets one input Image. More...
 
virtual void SetInput (unsigned int idx, const Image *img)
 Sets the input Image at a specific index. More...
 
const mitk::ImageGetInput ()
 Returns the input of this filter. More...
 
const mitk::ImageGetInput (unsigned int idx)
 Returns the input of this filter. More...
 
virtual void GenerateOutputInformation () override
 
virtual void ConnectTo (mitk::ImageSource *UpstreamFilter)
 Connects the input of this filter to the outputs of the given ImageSource. More...
 
- Public Member Functions inherited from mitk::IGTLMessageSource
 mitkClassMacroItkParent (IGTLMessageSource, 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...
 
virtual std::string GetType ()
 
virtual void SetType (std::string _arg)
 
IGTLMessageGetOutput (void)
 return the output (output with id 0) of the filter More...
 
IGTLMessageGetOutput (DataObjectPointerArraySizeType idx)
 return the output with id idx of the filter More...
 
IGTLMessageGetOutput (const std::string &messageName)
 return the output with name messageName of the filter More...
 
DataObjectPointerArraySizeType GetOutputIndex (std::string messageName)
 return the index of the output with name messageName, -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 IGTLMessageSource 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...
 
void SetFPS (unsigned int fps)
 Sets the fps used for streaming this source. More...
 
unsigned int GetFPS ()
 Gets the fps used for streaming this source. More...
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

 ImageToIGTLMessageFilter ()
 
virtual ~ImageToIGTLMessageFilter ()
 
virtual void CreateOutputsForAllInputs ()
 create output objects for all inputs More...
 
- Protected Member Functions inherited from mitk::IGTLMessageSource
 IGTLMessageSource ()
 
virtual ~IGTLMessageSource ()
 

Protected Attributes

mitk::ImageSourcem_Upstream
 
- Protected Attributes inherited from mitk::IGTLMessageSource
std::string m_Name
 
std::string m_Type
 
itk::FastMutexLock::Pointer m_StreamingFPSMutex
 
unsigned int m_StreamingFPS
 
us::ServiceRegistration< Self > m_ServiceRegistration
 

Additional Inherited Members

- Static Public Attributes inherited from mitk::IGTLMessageSource
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_DEVICETYPE
 
static const std::string US_PROPKEY_ID
 
static const std::string US_PROPKEY_ISACTIVE
 

Detailed Description

This filter creates IGTL messages from mitk::Image objects.

Documentation

Definition at line 34 of file mitkImageToIGTLMessageFilter.h.

Constructor & Destructor Documentation

mitk::ImageToIGTLMessageFilter::ImageToIGTLMessageFilter ( )
protected

Definition at line 22 of file mitkImageToIGTLMessageFilter.cpp.

References mitk::IGTLMessage::New().

virtual mitk::ImageToIGTLMessageFilter::~ImageToIGTLMessageFilter ( )
inlineprotectedvirtual

Definition at line 87 of file mitkImageToIGTLMessageFilter.h.

Member Function Documentation

Pointer mitk::ImageToIGTLMessageFilter::Clone ( ) const
void mitk::ImageToIGTLMessageFilter::ConnectTo ( mitk::ImageSource UpstreamFilter)
virtual

Connects the input of this filter to the outputs of the given ImageSource.

This method does not support smartpointer. use FilterX.GetPointer() to retrieve a dumbpointer.

Definition at line 236 of file mitkImageToIGTLMessageFilter.cpp.

References MITK_INFO.

void mitk::ImageToIGTLMessageFilter::CreateOutputsForAllInputs ( )
protectedvirtual

create output objects for all inputs

Definition at line 246 of file mitkImageToIGTLMessageFilter.cpp.

virtual void mitk::ImageToIGTLMessageFilter::GenerateOutputInformation ( void  )
inlineoverridevirtual

empty implementation to prevent calling of the superclass method that would try to copy information from the input Image to the output PointSet, which makes no sense!

Definition at line 73 of file mitkImageToIGTLMessageFilter.h.

const mitk::Image * mitk::ImageToIGTLMessageFilter::GetInput ( void  )

Returns the input of this filter.

Definition at line 220 of file mitkImageToIGTLMessageFilter.cpp.

const mitk::Image * mitk::ImageToIGTLMessageFilter::GetInput ( unsigned int  idx)

Returns the input of this filter.

Definition at line 227 of file mitkImageToIGTLMessageFilter.cpp.

mitk::ImageToIGTLMessageFilter::mitkClassMacro ( ImageToIGTLMessageFilter  ,
IGTLMessageSource   
)
static Pointer mitk::ImageToIGTLMessageFilter::New ( )
static
void mitk::ImageToIGTLMessageFilter::SetInput ( const mitk::Image img)
virtual

Sets one input Image.

Definition at line 207 of file mitkImageToIGTLMessageFilter.cpp.

void mitk::ImageToIGTLMessageFilter::SetInput ( unsigned int  idx,
const Image img 
)
virtual

Sets the input Image at a specific index.

Definition at line 213 of file mitkImageToIGTLMessageFilter.cpp.

Member Data Documentation

mitk::ImageSource* mitk::ImageToIGTLMessageFilter::m_Upstream
protected

Definition at line 94 of file mitkImageToIGTLMessageFilter.h.


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