MITK-IGT
IGT Extension of MITK
|
Control the position and orientation of rendered slices with NavigationData. More...
#include <mitkNavigationDataSliceVisualization.h>
Public Types | |
enum | ViewDirection { Axial = 0 , Sagittal , Coronal , AxialOblique , SagittalOblique , Oblique } |
Public Member Functions | |
mitkClassMacro (NavigationDataSliceVisualization, NavigationDataToNavigationDataFilter) | |
itkNewMacro (Self) | |
itkSetObjectMacro (Renderer, BaseRenderer) | |
Set/get the renderer that visualizes the navigation data. | |
itkGetConstObjectMacro (Renderer, BaseRenderer) | |
itkSetMacro (TipOffset, Vector3D) | |
Set/get the tip offset used for plane tracking. | |
itkGetConstMacro (TipOffset, Vector3D) | |
virtual void | SetToolTrajectory (Vector3D direction) |
Set/get the tool trajectory used to define the cutting plane normal direction. | |
itkGetConstMacro (ToolTrajectory, Vector3D) | |
itkSetMacro (WorldVerticalVector, Vector3D) | |
Set/get the world vertical vector used to define the y-axis of the cutting plane. | |
itkGetConstMacro (WorldVerticalVector, Vector3D) | |
itkSetEnumMacro (ViewDirection, ViewDirection) | |
Set/get the orientation of the sliced plane. | |
itkGetEnumMacro (ViewDirection, ViewDirection) | |
![]() | |
mitkClassMacro (NavigationDataToNavigationDataFilter, NavigationDataSource) | |
virtual void | SetInput (const NavigationData *nd) |
Set the input of this filter. | |
virtual void | SetInput (unsigned int idx, const NavigationData *nd) |
Set input with id idx of this filter. | |
const NavigationData * | GetInput (void) const |
Get the input of this filter. | |
const NavigationData * | GetInput (unsigned int idx) const |
Get the input with id idx of this filter. | |
const NavigationData * | GetInput (std::string navDataName) const |
Get the input with name navDataName of this filter. | |
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 | |
virtual void | ConnectTo (mitk::NavigationDataSource *UpstreamFilter) |
Connects the input of this filter to the outputs of the given NavigationDataSource. | |
![]() | |
mitkClassMacroItkParent (NavigationDataSource, itk::ProcessObject) | |
itkGetMacro (Name, std::string) | |
itkSetMacro (Name, std::string) | |
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. | |
NavigationData * | GetOutput (void) |
return the output (output with id 0) of the filter | |
NavigationData * | GetOutput (DataObjectPointerArraySizeType idx) |
return the output with id idx of the filter | |
NavigationData * | GetOutput (const std::string &navDataName) |
return the output with name navDataName of the filter | |
NavigationTool::Pointer | GetToolMetaData (DataObjectPointerArraySizeType idx) |
NavigationTool::Pointer | GetToolMetaData (const std::string &navDataName) |
itkGetMacro (ToolMetaDataCollection, mitk::NavigationToolStorage::Pointer) | |
itkSetMacro (ToolMetaDataCollection, mitk::NavigationToolStorage::Pointer) | |
DataObjectPointerArraySizeType | GetOutputIndex (std::string navDataName) |
return the index of the output with name navDataName, -1 if no output with that name was found | |
virtual void | RegisterAsMicroservice () |
Registers this object as a Microservice, making it available to every module and/or plugin. To unregister, call UnregisterMicroservice(). | |
virtual void | UnRegisterMicroservice () |
Registers this object as a Microservice, making it available to every module and/or plugin. | |
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(). | |
virtual void | GraftNthOutput (unsigned int idx, itk::DataObject *graft) |
Graft the specified DataObject onto this ProcessObject's output. | |
virtual void | GraftOutput (itk::DataObject *graft) |
Graft the specified DataObject onto this ProcessObject's output. | |
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. | |
virtual mitk::PropertyList::ConstPointer | GetParameters () const |
Get all filter parameters as a PropertyList. | |
virtual void | Freeze () |
virtual void | UnFreeze () |
itkGetMacro (IsFrozen, bool) | |
Protected Member Functions | |
NavigationDataSliceVisualization () | |
void | GenerateData () override |
![]() | |
NavigationDataToNavigationDataFilter () | |
~NavigationDataToNavigationDataFilter () override | |
void | CreateOutputsForAllInputs () |
Create an output for each input. | |
![]() | |
NavigationDataSource () | |
~NavigationDataSource () override | |
Protected Attributes | |
BaseRenderer::Pointer | m_Renderer |
Vector3D | m_TipOffset |
Vector3D | m_ToolTrajectory |
Vector3D | m_WorldVerticalVector |
ViewDirection | m_ViewDirection |
![]() | |
std::string | m_Name |
bool | m_IsFrozen |
NavigationToolStorage::Pointer | m_ToolMetaDataCollection |
Additional Inherited Members | |
![]() | |
static const std::string | US_INTERFACE_NAME = "org.mitk.services.NavigationDataSource" |
These Constants are used in conjunction with Microservices. | |
static const std::string | US_PROPKEY_DEVICENAME = US_INTERFACE_NAME + ".devicename" |
static const std::string | US_PROPKEY_ID = US_INTERFACE_NAME + ".id" |
static const std::string | US_PROPKEY_ISACTIVE = US_INTERFACE_NAME + ".isActive" |
Control the position and orientation of rendered slices with NavigationData.
Documentation
A NavigationDataToNavigationDataFilter that takes NavigationData as input and sets the position and, optionally, the orientation of the slice plane for a user-specified renderer.
Definition at line 30 of file mitkNavigationDataSliceVisualization.h.
Definition at line 36 of file mitkNavigationDataSliceVisualization.h.
|
protected |
Definition at line 16 of file mitkNavigationDataSliceVisualization.cpp.
|
overrideprotected |
Definition at line 49 of file mitkNavigationDataSliceVisualization.cpp.
mitk::NavigationDataSliceVisualization::itkGetConstMacro | ( | TipOffset | , |
Vector3D | ) |
mitk::NavigationDataSliceVisualization::itkGetConstMacro | ( | ToolTrajectory | , |
Vector3D | ) |
mitk::NavigationDataSliceVisualization::itkGetConstMacro | ( | WorldVerticalVector | , |
Vector3D | ) |
mitk::NavigationDataSliceVisualization::itkGetConstObjectMacro | ( | Renderer | , |
BaseRenderer | ) |
mitk::NavigationDataSliceVisualization::itkGetEnumMacro | ( | ViewDirection | , |
ViewDirection | ) |
mitk::NavigationDataSliceVisualization::itkNewMacro | ( | Self | ) |
mitk::NavigationDataSliceVisualization::itkSetEnumMacro | ( | ViewDirection | , |
ViewDirection | ) |
Set/get the orientation of the sliced plane.
Default is Axial.
mitk::NavigationDataSliceVisualization::itkSetMacro | ( | TipOffset | , |
Vector3D | ) |
Set/get the tip offset used for plane tracking.
This is an additional offset vector applied to the input navigation data. It is defined in tool tip coordinates. In other words:
Default is [0,0,0].
mitk::NavigationDataSliceVisualization::itkSetMacro | ( | WorldVerticalVector | , |
Vector3D | ) |
Set/get the world vertical vector used to define the y-axis of the cutting plane.
This vector, defined in world coordinates, applies only when the ViewDirection is Oblique. It is projected onto the cutting plane to define the vertical orientation of the slice.
The direction of this vector does not matter (i.e. [0,1,0] is the same as [0,-1,0]). The direction will be determined automatically by choosing the one that is closest to the direction of the y-axis of the PlaneGeometry before each update. This way, the anatomical axis directions that get set initially will be maintained after every update of this filter.
Default is [0,1,0].
mitk::NavigationDataSliceVisualization::itkSetObjectMacro | ( | Renderer | , |
BaseRenderer | ) |
Set/get the renderer that visualizes the navigation data.
mitk::NavigationDataSliceVisualization::mitkClassMacro | ( | NavigationDataSliceVisualization | , |
NavigationDataToNavigationDataFilter | ) |
|
virtual |
Set/get the tool trajectory used to define the cutting plane normal direction.
This vector, defined in tool tip coordinates, applies only when the ViewDirection is Oblique.
Default is [0,0,-1].
Definition at line 33 of file mitkNavigationDataSliceVisualization.cpp.
|
protected |
Definition at line 126 of file mitkNavigationDataSliceVisualization.h.
|
protected |
Definition at line 127 of file mitkNavigationDataSliceVisualization.h.
|
protected |
Definition at line 128 of file mitkNavigationDataSliceVisualization.h.
|
protected |
Definition at line 130 of file mitkNavigationDataSliceVisualization.h.
|
protected |
Definition at line 129 of file mitkNavigationDataSliceVisualization.h.