The CrosshairManager takes care of the correct settings for the crosshair.
More...
#include <mitkCrosshairManager.h>
The CrosshairManager takes care of the correct settings for the crosshair.
The CrosshairManager keeps track of a crosshair data node, which is used to compute the lines of a crosshair. These crosshair data node can be added to / removed from the data storage using this CrosshairManager. Adding / removing the node to / from the data storage will change the rendering behavior for the crosshair - only data nodes inside the data storage will be rendered.
Definition at line 34 of file mitkCrosshairManager.h.
◆ ConstPointer
◆ Pointer
◆ Self
◆ Superclass
◆ CrosshairManager()
mitk::CrosshairManager::CrosshairManager |
( |
BaseRenderer * |
baseRenderer | ) |
|
|
protected |
◆ ~CrosshairManager()
mitk::CrosshairManager::~CrosshairManager |
( |
| ) |
|
|
protected |
◆ AddCrosshairNodeToDataStorage()
void mitk::CrosshairManager::AddCrosshairNodeToDataStorage |
( |
DataStorage * |
dataStorage | ) |
|
Add the managed crosshair data node to the given data storage.
- Precondition
- The crosshair data node of this manager needs to be not null in order to add the node to the data storage.
- Exceptions
-
- Precondition
- The given data storage needs to be not null in order to add the node to the data storage.
- Exceptions
-
- Parameters
-
dataStorage | The data storage to which the crosshair data node should be added. |
◆ GetClassHierarchy()
virtual std::vector<std::string> mitk::CrosshairManager::GetClassHierarchy |
( |
| ) |
const |
|
inlinevirtual |
◆ GetClassName()
virtual const char* mitk::CrosshairManager::GetClassName |
( |
| ) |
const |
|
virtual |
◆ GetCrosshairPosition()
Point3D mitk::CrosshairManager::GetCrosshairPosition |
( |
| ) |
const |
Get the position of the managed crosshair.
- Precondition
- The crosshair data of this manager needs to be not null in order to get the current crosshair position.
- Exceptions
-
- Returns
- The 3D point that represents the position of the crosshair data.
◆ GetCrosshairVisibility()
bool mitk::CrosshairManager::GetCrosshairVisibility |
( |
const BaseRenderer * |
baseRenderer | ) |
const |
Get the visibility of the managed crosshair.
- Precondition
- The crosshair data of this manager needs to be not null in order to get the visibility.
- Exceptions
-
- Parameters
-
baseRenderer | A base renderer for which the renderer-specific visibility property should be get. |
- Returns
- The boolean value that represents the visibility of the crosshair.
◆ GetStaticNameOfClass()
static const char* mitk::CrosshairManager::GetStaticNameOfClass |
( |
| ) |
|
|
inlinestatic |
◆ New()
◆ RemoveCrosshairNodeFromDataStorage()
void mitk::CrosshairManager::RemoveCrosshairNodeFromDataStorage |
( |
DataStorage * |
dataStorage | ) |
|
Remove the managed crosshair data node from the given data storage.
- Precondition
- The crosshair data node of this manager needs to be not null in order to remove the node from the data storage.
- Exceptions
-
- Precondition
- The given data storage needs to be not null in order to remove the node from the data storage.
- Exceptions
-
- Parameters
-
dataStorage | The data storage from which the crosshair data node should be removed. |
◆ SetCrosshairGap()
void mitk::CrosshairManager::SetCrosshairGap |
( |
unsigned int |
gapSize | ) |
|
Set the gap size of the managed crosshair to the given value.
- Precondition
- The crosshair data of this manager needs to be not null in order to set the gap size.
- Exceptions
-
- Parameters
-
gapSize | The size of the gap in the center of the crosshair. |
◆ SetCrosshairPosition()
void mitk::CrosshairManager::SetCrosshairPosition |
( |
const Point3D & |
selectedPoint | ) |
|
Set the position of the managed crosshair to the given 3D position.
- Precondition
- The crosshair data of this manager needs to be not null in order to set a new position.
- Exceptions
-
- Parameters
-
selectedPoint | The 3D point that will be newly set for the crosshair data. |
◆ SetCrosshairVisibility()
void mitk::CrosshairManager::SetCrosshairVisibility |
( |
bool |
visible, |
|
|
const BaseRenderer * |
baseRenderer |
|
) |
| |
Set the visibility of the managed crosshair to the given value.
- Precondition
- The crosshair data of this manager needs to be not null in order to set the visibility.
- Exceptions
-
- Parameters
-
visible | A boolean value that will define the visibility of the crosshair. |
baseRenderer | A base renderer for which the renderer-specific visibility property should be set. |
◆ UpdateCrosshairPosition()
Update the position of the managed crosshair to the current slice position of the given slice navigation controller, depending on the view direction of the slice navigation controller.
- Precondition
- The crosshair data of this manager needs to be not null in order to update the crosshair position.
- Exceptions
-
- Parameters
-
sliceNavigationController | The slice navigation controller whose current position will be used for updating the corresponding 3D coordinate of the crosshair data's position. |
◆ m_CrosshairData
◆ m_CrosshairDataNode
The documentation for this class was generated from the following file: