Medical Imaging Interaction Toolkit
2023.12.00
Medical Imaging Interaction Toolkit
|
Class that reads NavigationData from input and transfers the information to the geometry of the associated BaseData. More...
#include <mitkNavigationDataObjectVisualizationFilter.h>
Public Types | |
enum | RotationMode { RotationStandard, RotationTransposed } |
typedef BaseData::Pointer | RepresentationPointer |
Smart Pointer type to a BaseData. More... | |
typedef std::map< unsigned int, RepresentationPointer > | RepresentationPointerMap |
STL map of index to BaseData . Using map to be able to set non continuous indices. More... | |
typedef std::map< unsigned int, std::vector< RepresentationPointer > > | RepresentationVectorPointerMap |
STL vector map of index to BaseData . Using map to be able to set non continuous indices. More... | |
typedef RepresentationVectorPointerMap::size_type | RepresentationPointerMapSizeType |
Size type of an std::vector. More... | |
Public Member Functions | |
mitkClassMacro (NavigationDataObjectVisualizationFilter, NavigationDataToNavigationDataFilter) | |
Pointer | Clone () const |
void | SetRepresentationObject (unsigned int index, BaseData::Pointer data) |
Set the representation object of the input. More... | |
void | SetRepresentationObjects (unsigned int index, const std::vector< BaseData::Pointer > &data) |
Set the representation objects vector of the input. More... | |
BaseData::Pointer | GetRepresentationObject (unsigned int idx) const |
Get the representation object associated with the index idx. More... | |
std::vector< RepresentationPointer > | GetAllRepresentationObjects (unsigned int idx) const |
Get all the representation objects associated with the index idx. More... | |
virtual void | SetTransformPosition (unsigned int index, bool applyTransform) |
if set to true, the filter will use the position part of the input navigation data at the given index to transform the representation object. If set to false, it will not. If no value is set, it defaults to true. More... | |
virtual bool | GetTransformPosition (unsigned int index) const |
returns whether position part of the input navigation data at the given index is used for the transformation of the representation object. More... | |
virtual void | TransformPositionOn (unsigned int index) |
sets the TransformPosition flag to true for the given index More... | |
virtual void | TransformPositionOff (unsigned int index) |
sets the TransformPosition flag to false for the given index More... | |
virtual void | SetTransformOrientation (unsigned int index, bool applyTransform) |
if set to true, the filter will use the orientation part of the input navigation data at the given index to transform the representation object. If set to false, it will not. If no value is set, it defaults to true. More... | |
virtual bool | GetTransformOrientation (unsigned int index) const |
returns whether orientation part of the input navigation data at the given index is used for the transformation of the representation object. More... | |
virtual void | TransformOrientationOn (unsigned int index) |
sets the TransformOrientation flag to true for the given index More... | |
virtual void | TransformOrientationOff (unsigned int index) |
sets the TransformOrientation flag to false for the given index More... | |
void | SetOffset (int index, mitk::AffineTransform3D::Pointer offset) |
Defines an offset for a representation object. This offset is applied before the object is visualized. If no offset is given, no offset will be used. To deactivate the offset just set it to nullptr. The offset is deactivated by default. More... | |
virtual void | SetRotationMode (RotationMode r) |
mitk::AffineTransform3D::Pointer | GetOffset (int index) |
RepresentationPointerMapSizeType | GetNumberOfToolRepresentations () const |
Get the number of added BaseData associated to NavigationData. More... | |
void | GenerateData () override |
Public Member Functions inherited from mitk::NavigationDataToNavigationDataFilter | |
mitkClassMacro (NavigationDataToNavigationDataFilter, NavigationDataSource) | |
virtual void | SetInput (const NavigationData *nd) |
Set the input of this filter. More... | |
virtual void | SetInput (unsigned int idx, const NavigationData *nd) |
Set input with id idx of this filter. More... | |
const NavigationData * | GetInput (void) const |
Get the input of this filter. More... | |
const NavigationData * | GetInput (unsigned int idx) const |
Get the input with id idx of this filter. More... | |
const NavigationData * | GetInput (std::string navDataName) const |
Get the input with name navDataName of this filter. More... | |
DataObjectPointerArraySizeType | GetInputIndex (std::string navDataName) |
return the index of the input with name navDataName, throw std::invalid_argument exception if that name was not found More... | |
virtual void | ConnectTo (mitk::NavigationDataSource *UpstreamFilter) |
Connects the input of this filter to the outputs of the given NavigationDataSource. 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... | |
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 () |
Static Public Member Functions | |
static Pointer | New () |
Protected Types | |
typedef std::map< itk::ProcessObject::DataObjectPointerArraySizeType, bool > | BooleanInputMap |
typedef std::map< unsigned int, mitk::AffineTransform3D::Pointer > | OffsetPointerMap |
Protected Member Functions | |
NavigationDataObjectVisualizationFilter () | |
Constructor. More... | |
~NavigationDataObjectVisualizationFilter () override | |
Destructor. More... | |
Protected Member Functions inherited from mitk::NavigationDataToNavigationDataFilter | |
NavigationDataToNavigationDataFilter () | |
~NavigationDataToNavigationDataFilter () override | |
void | CreateOutputsForAllInputs () |
Create an output for each input. More... | |
Protected Member Functions inherited from mitk::NavigationDataSource | |
NavigationDataSource () | |
~NavigationDataSource () override | |
Protected Attributes | |
RepresentationVectorPointerMap | m_RepresentationVectorMap |
An array of the BaseData which represent the tools. More... | |
BooleanInputMap | m_TransformPosition |
if set to true, the filter will use the position part of the input navigation data at the given index for the calculation of the transform. If no entry for the index exists, it defaults to true. More... | |
BooleanInputMap | m_TransformOrientation |
if set to true, the filter will use the orientation part of the input navigation data at the given index for the calculation of the transform. If no entry for the index exists, it defaults to true. More... | |
OffsetPointerMap | m_OffsetList |
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 |
Class that reads NavigationData from input and transfers the information to the geometry of the associated BaseData.
Derived from NavigationDataToNavigationDataFilter
Definition at line 30 of file mitkNavigationDataObjectVisualizationFilter.h.
|
protected |
Definition at line 151 of file mitkNavigationDataObjectVisualizationFilter.h.
|
protected |
Definition at line 152 of file mitkNavigationDataObjectVisualizationFilter.h.
Smart Pointer type to a BaseData.
Definition at line 57 of file mitkNavigationDataObjectVisualizationFilter.h.
typedef std::map<unsigned int, RepresentationPointer> mitk::NavigationDataObjectVisualizationFilter::RepresentationPointerMap |
STL map of index to BaseData . Using map to be able to set non continuous indices.
Definition at line 62 of file mitkNavigationDataObjectVisualizationFilter.h.
typedef RepresentationVectorPointerMap::size_type mitk::NavigationDataObjectVisualizationFilter::RepresentationPointerMapSizeType |
Size type of an std::vector.
Definition at line 72 of file mitkNavigationDataObjectVisualizationFilter.h.
typedef std::map<unsigned int, std::vector<RepresentationPointer> > mitk::NavigationDataObjectVisualizationFilter::RepresentationVectorPointerMap |
STL vector map of index to BaseData . Using map to be able to set non continuous indices.
Definition at line 67 of file mitkNavigationDataObjectVisualizationFilter.h.
Defines the rotation modes of this tracking device which results in different representations of quaternions.
CAUTION: The rotation mode can only be changed for backward compatibility of old WRONG code. PLEASE DO NOT CHANGE THE ROTATION MODE UNLESS YOU ARE KNOWING EXACTLY WHAT YOU ARE DOING!
use SetRotationMode to change the mode.
Enumerator | |
---|---|
RotationStandard | |
RotationTransposed |
Definition at line 52 of file mitkNavigationDataObjectVisualizationFilter.h.
|
protected |
Constructor.
|
overrideprotected |
Destructor.
Pointer mitk::NavigationDataObjectVisualizationFilter::Clone | ( | ) | const |
|
override |
std::vector<RepresentationPointer> mitk::NavigationDataObjectVisualizationFilter::GetAllRepresentationObjects | ( | unsigned int | idx | ) | const |
|
inline |
Get the number of added BaseData associated to NavigationData.
Definition at line 139 of file mitkNavigationDataObjectVisualizationFilter.h.
mitk::AffineTransform3D::Pointer mitk::NavigationDataObjectVisualizationFilter::GetOffset | ( | int | index | ) |
BaseData::Pointer mitk::NavigationDataObjectVisualizationFilter::GetRepresentationObject | ( | unsigned int | idx | ) | const |
|
virtual |
returns whether orientation part of the input navigation data at the given index is used for the transformation of the representation object.
|
virtual |
returns whether position part of the input navigation data at the given index is used for the transformation of the representation object.
mitk::NavigationDataObjectVisualizationFilter::mitkClassMacro | ( | NavigationDataObjectVisualizationFilter | , |
NavigationDataToNavigationDataFilter | |||
) |
|
static |
void mitk::NavigationDataObjectVisualizationFilter::SetOffset | ( | int | index, |
mitk::AffineTransform3D::Pointer | offset | ||
) |
Defines an offset for a representation object. This offset is applied before the object is visualized. If no offset is given, no offset will be used. To deactivate the offset just set it to nullptr. The offset is deactivated by default.
index | |
offset | The new offset which will be set. Set to nullptr to deactivate the offset. |
void mitk::NavigationDataObjectVisualizationFilter::SetRepresentationObject | ( | unsigned int | index, |
BaseData::Pointer | data | ||
) |
Set the representation object of the input.
data | The BaseData to be associated to the index |
index | the index with which data will be associated |
void mitk::NavigationDataObjectVisualizationFilter::SetRepresentationObjects | ( | unsigned int | index, |
const std::vector< BaseData::Pointer > & | data | ||
) |
Set the representation objects vector of the input.
data | The BaseData vector to be associated to the index |
index | the index with which data will be associated |
|
virtual |
Sets the rotation mode of this class. See documentation of enum RotationMode for details on the different modes. CAUTION: The rotation mode can only be changed for backward compatibility of old WRONG code. PLEASE DO NOT CHANGE THE ROTATION MODE UNLESS YOU ARE KNOWING EXACTLY WHAT YOU ARE DOING!
|
virtual |
if set to true, the filter will use the orientation part of the input navigation data at the given index to transform the representation object. If set to false, it will not. If no value is set, it defaults to true.
|
virtual |
if set to true, the filter will use the position part of the input navigation data at the given index to transform the representation object. If set to false, it will not. If no value is set, it defaults to true.
|
virtual |
sets the TransformOrientation flag to false for the given index
|
virtual |
sets the TransformOrientation flag to true for the given index
|
virtual |
sets the TransformPosition flag to false for the given index
|
virtual |
sets the TransformPosition flag to true for the given index
|
protected |
Definition at line 171 of file mitkNavigationDataObjectVisualizationFilter.h.
|
protected |
An array of the BaseData which represent the tools.
Definition at line 168 of file mitkNavigationDataObjectVisualizationFilter.h.
|
protected |
if set to true, the filter will use the orientation part of the input navigation data at the given index for the calculation of the transform. If no entry for the index exists, it defaults to true.
Definition at line 170 of file mitkNavigationDataObjectVisualizationFilter.h.
|
protected |
if set to true, the filter will use the position part of the input navigation data at the given index for the calculation of the transform. If no entry for the index exists, it defaults to true.
Definition at line 169 of file mitkNavigationDataObjectVisualizationFilter.h.