Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
mitk::NavigationDataPlayerBase Class Referenceabstract

Base class for using mitk::NavigationData as a filter source. Subclasses can play objects of mitk::NavigationDataSet. More...

#include <mitkNavigationDataPlayerBase.h>

Inheritance diagram for mitk::NavigationDataPlayerBase:
Collaboration diagram for mitk::NavigationDataPlayerBase:

Public Member Functions

 mitkClassMacro (NavigationDataPlayerBase, NavigationDataSource)
 
virtual void SetRepeat (bool _arg)
 Set to true if the data player should repeat the outputs. More...
 
virtual bool GetRepeat ()
 
void UpdateOutputInformation () override
 Used for pipeline update just to tell the pipeline that we always have to update. More...
 
virtual NavigationDataSet::Pointer GetNavigationDataSet ()
 
void SetNavigationDataSet (NavigationDataSet::Pointer navigationDataSet)
 Set mitk::NavigationDataSet for playing. Player is initialized by call to mitk::NavigationDataPlayerBase::InitPlayer() inside this method. Method must be called before this object can be used as a filter source. More...
 
unsigned int GetNumberOfSnapshots ()
 Getter for the size of the mitk::NavigationDataSet used in this object. More...
 
unsigned int GetCurrentSnapshotNumber ()
 
bool IsAtEnd ()
 This method checks if player arrived at end of file. 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...
 
NavigationDataGetOutput (void)
 return the output (output with id 0) of the filter More...
 
NavigationDataGetOutput (DataObjectPointerArraySizeType idx)
 return the output with id idx of the filter More...
 
NavigationDataGetOutput (const std::string &navDataName)
 return the output with name navDataName of the filter More...
 
NavigationTool::Pointer GetToolMetaData (DataObjectPointerArraySizeType idx)
 
NavigationTool::Pointer GetToolMetaData (const std::string &navDataName)
 
virtual mitk::NavigationToolStorage::Pointer GetToolMetaDataCollection ()
 
virtual void SetToolMetaDataCollection (mitk::NavigationToolStorage::Pointer _arg)
 
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...
 
itk::DataObject::Pointer MakeOutput (DataObjectPointerArraySizeType idx) override
 
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 ()
 

Protected Member Functions

 NavigationDataPlayerBase ()
 
 ~NavigationDataPlayerBase () override
 
void GenerateData () override=0
 Every subclass hast to implement this method. See ITK filter documentation for details. More...
 
void InitPlayer ()
 Initializes the outputs of this NavigationDataSource. Aftwer calling this method, the first Navigationdata from the loaded Navigationdataset is loaded into the outputs. More...
 
void GraftEmptyOutput ()
 Convenience method for subclasses. When there are no further mitk::NavigationData objects available, this method can be called in the implementation of mitk::NavigationDataPlayerBase::GenerateData(). More...
 
- Protected Member Functions inherited from mitk::NavigationDataSource
 NavigationDataSource ()
 
 ~NavigationDataSource () override
 

Protected Attributes

bool m_Repeat
 If the player should repeat outputs. Default is false. More...
 
NavigationDataSet::Pointer m_NavigationDataSet
 
mitk::NavigationDataSet::NavigationDataSetConstIterator m_NavigationDataSetIterator
 Iterator always points to the NavigationData object which is in the outputs at the moment. More...
 
- Protected Attributes inherited from mitk::NavigationDataSource
std::string m_Name
 
bool m_IsFrozen
 
NavigationToolStorage::Pointer m_ToolMetaDataCollection
 

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
 

Detailed Description

Base class for using mitk::NavigationData as a filter source. Subclasses can play objects of mitk::NavigationDataSet.

Each subclass has to check the state of m_Repeat and do or do not repeat the playing accordingly.

Definition at line 29 of file mitkNavigationDataPlayerBase.h.

Constructor & Destructor Documentation

◆ NavigationDataPlayerBase()

mitk::NavigationDataPlayerBase::NavigationDataPlayerBase ( )
protected

◆ ~NavigationDataPlayerBase()

mitk::NavigationDataPlayerBase::~NavigationDataPlayerBase ( )
overrideprotected

Member Function Documentation

◆ GenerateData()

void mitk::NavigationDataPlayerBase::GenerateData ( )
overrideprotectedpure virtual

Every subclass hast to implement this method. See ITK filter documentation for details.

Implemented in mitk::NavigationDataPlayer, and mitk::NavigationDataSequentialPlayer.

◆ GetCurrentSnapshotNumber()

unsigned int mitk::NavigationDataPlayerBase::GetCurrentSnapshotNumber ( )

◆ GetNavigationDataSet()

virtual NavigationDataSet::Pointer mitk::NavigationDataPlayerBase::GetNavigationDataSet ( )
virtual

◆ GetNumberOfSnapshots()

unsigned int mitk::NavigationDataPlayerBase::GetNumberOfSnapshots ( )

Getter for the size of the mitk::NavigationDataSet used in this object.

Returns
Returns the number of navigation data snapshots available in the player.

◆ GetRepeat()

virtual bool mitk::NavigationDataPlayerBase::GetRepeat ( )
virtual
Returns
Returns if the data player should repeat the outputs.

◆ GraftEmptyOutput()

void mitk::NavigationDataPlayerBase::GraftEmptyOutput ( )
protected

Convenience method for subclasses. When there are no further mitk::NavigationData objects available, this method can be called in the implementation of mitk::NavigationDataPlayerBase::GenerateData().

◆ InitPlayer()

void mitk::NavigationDataPlayerBase::InitPlayer ( )
protected

Initializes the outputs of this NavigationDataSource. Aftwer calling this method, the first Navigationdata from the loaded Navigationdataset is loaded into the outputs.

◆ IsAtEnd()

bool mitk::NavigationDataPlayerBase::IsAtEnd ( )

This method checks if player arrived at end of file.

Returns
true if last mitk::NavigationData object is in the outputs, false otherwise

◆ mitkClassMacro()

mitk::NavigationDataPlayerBase::mitkClassMacro ( NavigationDataPlayerBase  ,
NavigationDataSource   
)

◆ SetNavigationDataSet()

void mitk::NavigationDataPlayerBase::SetNavigationDataSet ( NavigationDataSet::Pointer  navigationDataSet)

Set mitk::NavigationDataSet for playing. Player is initialized by call to mitk::NavigationDataPlayerBase::InitPlayer() inside this method. Method must be called before this object can be used as a filter source.

Parameters
navigationDataSetmitk::NavigationDataSet which will be played by this player.

◆ SetRepeat()

virtual void mitk::NavigationDataPlayerBase::SetRepeat ( bool  _arg)
virtual

Set to true if the data player should repeat the outputs.

◆ UpdateOutputInformation()

void mitk::NavigationDataPlayerBase::UpdateOutputInformation ( )
override

Used for pipeline update just to tell the pipeline that we always have to update.

Member Data Documentation

◆ m_NavigationDataSet

NavigationDataSet::Pointer mitk::NavigationDataPlayerBase::m_NavigationDataSet
protected

Definition at line 105 of file mitkNavigationDataPlayerBase.h.

◆ m_NavigationDataSetIterator

mitk::NavigationDataSet::NavigationDataSetConstIterator mitk::NavigationDataPlayerBase::m_NavigationDataSetIterator
protected

Iterator always points to the NavigationData object which is in the outputs at the moment.

Definition at line 110 of file mitkNavigationDataPlayerBase.h.

◆ m_Repeat

bool mitk::NavigationDataPlayerBase::m_Repeat
protected

If the player should repeat outputs. Default is false.

Definition at line 103 of file mitkNavigationDataPlayerBase.h.


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