Interface for a MITK Workbench Part providing a render window.
More...
#include <mitkIRenderWindowPart.h>
Interface for a MITK Workbench Part providing a render window.
This interface allows generic access to Workbench parts which provide some kind of render window. The interface is intended to be implemented by subclasses of berry::IWorkbenchPart. Usually, the interface is implemented by a Workbench editor.
A IRenderWindowPart provides zero or more QmitkRenderWindow instances which can be controlled via this interface. QmitkRenderWindow instances have an associated id, which is implementation specific. Additionally the defined values Axial, Sagittal, Coronal and Original from mitk::AnatomicalPlane can be used to retrieve a specific QmitkRenderWindow.
- See also
- ILinkedRenderWindowPart
-
IRenderWindowPartListener
-
QmitkAbstractRenderEditor
Definition at line 54 of file mitkIRenderWindowPart.h.
◆ ~IRenderWindowPart()
virtual mitk::IRenderWindowPart::~IRenderWindowPart |
( |
| ) |
|
|
virtual |
◆ EnableDecorations()
virtual void mitk::IRenderWindowPart::EnableDecorations |
( |
bool |
enable, |
|
|
const QStringList & |
decorations = QStringList() |
|
) |
| |
|
pure virtual |
Enable decorations like colored borders, menu widgets, logos, text annotations, etc.
Decorations are implementation specific. A set of standardized decoration names is listed in GetDecorations().
- Parameters
-
enable | If true enable the decorations specified in decorations , otherwise disable them. |
decorations | A list of decoration names. If empty, all supported decorations are affected. |
- See also
- GetDecorations()
Implemented in QmitkAbstractMultiWidgetEditor.
◆ ForceImmediateUpdate()
Force an immediate update of all render windows.
- Parameters
-
requestType | Specifies the type of render windows for which an immediate update will be requested. |
Implemented in QmitkAbstractRenderEditor.
◆ GetActiveQmitkRenderWindow()
virtual QmitkRenderWindow* mitk::IRenderWindowPart::GetActiveQmitkRenderWindow |
( |
| ) |
const |
|
pure virtual |
◆ GetDecorations()
virtual QStringList mitk::IRenderWindowPart::GetDecorations |
( |
| ) |
const |
|
pure virtual |
Get a list of supported decorations.
The following decoration names are standardized and should not be used for other decoration types:
-
DECORATION_BORDER Any border decorations like colored rectangles, etc.
-
DECORATION_MENU Menus associated with render windows
-
DECORATION_BACKGROUND All kinds of backgrounds (patterns, gradients, etc.) except for solid colored backgrounds
-
DECORATION_LOGO Any kind of logo overlayed on the rendered scene
- Returns
- A list of supported decoration names.
Implemented in QmitkAbstractMultiWidgetEditor.
◆ GetQmitkRenderWindow() [1/2]
◆ GetQmitkRenderWindow() [2/2]
virtual QmitkRenderWindow* mitk::IRenderWindowPart::GetQmitkRenderWindow |
( |
const QString & |
id | ) |
const |
|
pure virtual |
◆ GetQmitkRenderWindows()
virtual QHash<QString,QmitkRenderWindow*> mitk::IRenderWindowPart::GetQmitkRenderWindows |
( |
| ) |
const |
|
pure virtual |
◆ GetRenderingManager()
◆ GetSelectedPosition()
virtual mitk::Point3D mitk::IRenderWindowPart::GetSelectedPosition |
( |
const QString & |
id = QString() | ) |
const |
|
pure virtual |
Get the selected position in the render window with id id
or in the active render window if id
is an empty string.
- Parameters
-
- Returns
- The currently selected position in world coordinates.
Implemented in QmitkAbstractMultiWidgetEditor.
◆ GetSelectedTimePoint()
virtual TimePointType mitk::IRenderWindowPart::GetSelectedTimePoint |
( |
const QString & |
id = QString() | ) |
const |
|
pure virtual |
Get the time point selected in the render window with id id
or in the active render window if id
is an empty string.
- Parameters
-
- Returns
- The currently selected position in world coordinates.
Implemented in QmitkAbstractRenderEditor.
◆ GetTimeNavigationController()
◆ HasCoupledRenderWindows()
virtual bool mitk::IRenderWindowPart::HasCoupledRenderWindows |
( |
| ) |
const |
|
pure virtual |
Returns true if the render windows are coupled; false if not.
Render windows are coupled if the slice navigation controller of the render windows are connected which means that always the same geometry is used for the render windows.
Implemented in QmitkAbstractMultiWidgetEditor.
◆ InitializeViews()
virtual void mitk::IRenderWindowPart::InitializeViews |
( |
const mitk::TimeGeometry * |
geometry, |
|
|
bool |
resetCamera |
|
) |
| |
|
pure virtual |
Initialize the render windows of this render window part to the given geometry.
- Parameters
-
geometry | The geometry to be used to initialize / update a render window's time and slice navigation controller. |
resetCamera | If true, the camera and crosshair will be reset to the default view (centered, no zoom). If false, the current crosshair position and the camera zoom will be stored and reset after the reference geometry has been updated. |
Implemented in QmitkAbstractMultiWidgetEditor.
◆ IsDecorationEnabled()
virtual bool mitk::IRenderWindowPart::IsDecorationEnabled |
( |
const QString & |
decoration | ) |
const |
|
pure virtual |
◆ RequestUpdate()
Request an update of all render windows.
- Parameters
-
requestType | Specifies the type of render windows for which an update will be requested. |
Implemented in QmitkAbstractRenderEditor.
◆ SetInteractionReferenceGeometry()
virtual void mitk::IRenderWindowPart::SetInteractionReferenceGeometry |
( |
const mitk::TimeGeometry * |
referenceGeometry | ) |
|
|
pure virtual |
Define the reference geometry for interaction withing a render window.
The concrete implementation is subclass-specific, no default implementation is provided here.
An implementation can be found in 'QmitkAbstractMultiWidgetEditor' and will just
forward the argument to the contained multi widget.
- Parameters
-
Implemented in QmitkAbstractMultiWidgetEditor.
◆ SetSelectedPosition()
virtual void mitk::IRenderWindowPart::SetSelectedPosition |
( |
const mitk::Point3D & |
pos, |
|
|
const QString & |
id = QString() |
|
) |
| |
|
pure virtual |
Set the selected position in the render window with id id
or in the active render window if id
is nullptr.
- Parameters
-
pos | The position in world coordinates which should be selected. |
id | The render window id in which the selection should take place. |
Implemented in QmitkAbstractMultiWidgetEditor.
◆ DECORATION_BACKGROUND
const QString mitk::IRenderWindowPart::DECORATION_BACKGROUND |
|
static |
◆ DECORATION_BORDER
const QString mitk::IRenderWindowPart::DECORATION_BORDER |
|
static |
◆ DECORATION_CORNER_ANNOTATION
const QString mitk::IRenderWindowPart::DECORATION_CORNER_ANNOTATION |
|
static |
◆ DECORATION_LOGO
const QString mitk::IRenderWindowPart::DECORATION_LOGO |
|
static |
◆ DECORATION_MENU
const QString mitk::IRenderWindowPart::DECORATION_MENU |
|
static |
The documentation for this struct was generated from the following file: