|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Bridge between the REST API server and the Qt/render-window layer. More...
#include <mitkRenderWindowBridge.h>
Public Types | |
| using | ScreenshotProvider = std::function< std::vector< unsigned char >(std::optional< std::pair< int, int > > size, ScreenshotFormat format)> |
| Callback type for taking a screenshot. More... | |
| using | PositionGetter = std::function< SelectedPositionInfo()> |
| Callback type for reading the current global crosshair position and scene bounds. More... | |
| using | PositionSetter = std::function< void(const Point3D &pos)> |
| Callback type for setting the global crosshair position. More... | |
| using | EditorListProvider = std::function< std::vector< EditorInfo >()> |
| using | StdMultiWindowListProvider = std::function< std::vector< WindowInfo >()> |
| using | StdMultiEditorScreenshotProvider = std::function< std::vector< unsigned char >(std::optional< std::pair< int, int > > size, ScreenshotFormat format)> |
| using | StdMultiWindowScreenshotProvider = std::function< std::vector< unsigned char >(const std::string &windowId, std::optional< std::pair< int, int > > size, ScreenshotFormat format)> |
| using | StdMultiCameraGetter = std::function< CameraState(const std::string &windowId)> |
| using | StdMultiCameraSetter = std::function< void(const std::string &windowId, const CameraPatch &patch)> |
| using | StdMultiSelectedSliceGetter = std::function< SliceState(const std::string &windowId)> |
| using | StdMultiSelectedSliceStepSetter = std::function< void(const std::string &windowId, unsigned int step)> |
| Callback type: set the selected slice of a StdMulti 2D window by step index. More... | |
| using | MxNWindowListProvider = std::function< std::vector< MxNWindowInfo >()> |
| using | MxNEditorScreenshotProvider = std::function< std::vector< unsigned char >(std::optional< std::pair< int, int > > size, ScreenshotFormat format)> |
| using | MxNWindowScreenshotProvider = std::function< std::vector< unsigned char >(const std::string &windowId, std::optional< std::pair< int, int > > size, ScreenshotFormat format)> |
| using | MxNCameraGetter = std::function< CameraState(const std::string &windowId)> |
| using | MxNCameraSetter = std::function< void(const std::string &windowId, const CameraPatch &patch)> |
| using | MxNSelectedSliceGetter = std::function< SliceState(const std::string &windowId)> |
| using | MxNSelectedSliceStepSetter = std::function< void(const std::string &windowId, unsigned int step)> |
| Callback type: set the selected slice of a 2D MxN cell by step index. More... | |
| using | MxNSelectedPositionGetter = std::function< SelectedPositionInfo(const std::string &windowId)> |
| Callback type: read the per-cell selected position (cell anchor) plus scene bounds atomically. More... | |
| using | MxNSelectedPositionSetter = std::function< void(const std::string &windowId, const Point3D &position)> |
| using | MxNLayoutGetter = std::function< std::string()> |
| Callback type: serialize the editor's current layout to a v2.0 JSON document. More... | |
| using | MxNLayoutSetter = std::function< std::string(const std::string &layoutJson)> |
| Callback type: apply a v2.0 JSON layout document and return the freshly serialized layout (so callers can echo the new state in a PUT response without a follow-up GET). More... | |
Public Member Functions | |
| void | SetDispatcher (StorageThreadDispatcherBase *dispatcher) |
| Set the thread dispatcher for UI thread dispatching. More... | |
| void | SetScreenshotProvider (ScreenshotProvider provider) |
| Set or clear the screenshot provider callback. More... | |
| void | SetPositionGetter (PositionGetter getter) |
| Set or clear the position getter callback. More... | |
| void | SetPositionSetter (PositionSetter setter) |
| Set or clear the position setter callback. More... | |
| void | SetEditorListProvider (EditorListProvider provider) |
| void | SetStdMultiWindowListProvider (StdMultiWindowListProvider provider) |
| void | SetStdMultiEditorScreenshotProvider (StdMultiEditorScreenshotProvider provider) |
| void | SetStdMultiWindowScreenshotProvider (StdMultiWindowScreenshotProvider provider) |
| void | SetStdMultiCameraGetter (StdMultiCameraGetter getter) |
| void | SetStdMultiCameraSetter (StdMultiCameraSetter setter) |
| void | SetStdMultiSelectedSliceGetter (StdMultiSelectedSliceGetter getter) |
| void | SetStdMultiSelectedSliceStepSetter (StdMultiSelectedSliceStepSetter setter) |
| void | SetMxNWindowListProvider (MxNWindowListProvider provider) |
| void | SetMxNEditorScreenshotProvider (MxNEditorScreenshotProvider provider) |
| void | SetMxNWindowScreenshotProvider (MxNWindowScreenshotProvider provider) |
| void | SetMxNCameraGetter (MxNCameraGetter getter) |
| void | SetMxNCameraSetter (MxNCameraSetter setter) |
| void | SetMxNSelectedSliceGetter (MxNSelectedSliceGetter getter) |
| void | SetMxNSelectedSliceStepSetter (MxNSelectedSliceStepSetter setter) |
| void | SetMxNSelectedPositionGetter (MxNSelectedPositionGetter getter) |
| void | SetMxNSelectedPositionSetter (MxNSelectedPositionSetter setter) |
| void | SetMxNLayoutGetter (MxNLayoutGetter getter) |
| void | SetMxNLayoutSetter (MxNLayoutSetter setter) |
| void | ResetCallbacks () |
| Clear all registered callbacks in a single atomic operation. More... | |
| bool | HasScreenshotProvider () const |
| bool | HasPositionGetter () const |
| bool | HasPositionSetter () const |
| bool | HasEditorListProvider () const |
| bool | HasStdMultiWindowListProvider () const |
| bool | HasStdMultiEditorScreenshotProvider () const |
| bool | HasStdMultiWindowScreenshotProvider () const |
| bool | HasStdMultiCameraGetter () const |
| bool | HasStdMultiCameraSetter () const |
| bool | HasStdMultiSelectedSliceGetter () const |
| bool | HasStdMultiSelectedSliceStepSetter () const |
| bool | HasMxNWindowListProvider () const |
| bool | HasMxNEditorScreenshotProvider () const |
| bool | HasMxNWindowScreenshotProvider () const |
| bool | HasMxNCameraGetter () const |
| bool | HasMxNCameraSetter () const |
| bool | HasMxNSelectedSliceGetter () const |
| bool | HasMxNSelectedSliceStepSetter () const |
| bool | HasMxNSelectedPositionGetter () const |
| bool | HasMxNSelectedPositionSetter () const |
| bool | HasMxNLayoutGetter () const |
| bool | HasMxNLayoutSetter () const |
| std::vector< unsigned char > | TakeScreenshot (std::optional< std::pair< int, int >> size, ScreenshotFormat format) const |
| Capture a screenshot using the registered provider. More... | |
| SelectedPositionInfo | GetSelectedPosition () const |
| Read the current global crosshair position and scene bounds atomically. More... | |
| void | SetSelectedPosition (const Point3D &pos) const |
| Move the crosshair to the given world position. More... | |
| std::vector< EditorInfo > | ListEditors () const |
| Invoke the editor list provider. More... | |
| std::vector< WindowInfo > | ListStdMultiWindows () const |
| Invoke the StdMulti window list provider. More... | |
| std::vector< unsigned char > | TakeStdMultiEditorScreenshot (std::optional< std::pair< int, int >> size, ScreenshotFormat format) const |
| Invoke the StdMulti editor screenshot provider. More... | |
| std::vector< unsigned char > | TakeStdMultiWindowScreenshot (const std::string &windowId, std::optional< std::pair< int, int >> size, ScreenshotFormat format) const |
| Invoke the StdMulti per-window screenshot provider. More... | |
| CameraState | GetStdMultiCamera (const std::string &windowId) const |
| void | SetStdMultiCamera (const std::string &windowId, const CameraPatch &patch) const |
| SliceState | GetStdMultiSelectedSlice (const std::string &windowId) const |
| void | SetStdMultiSelectedSliceStep (const std::string &windowId, unsigned int step) const |
| std::vector< MxNWindowInfo > | ListMxNWindows () const |
| Invoke the MxN window list provider. More... | |
| std::vector< unsigned char > | TakeMxNEditorScreenshot (std::optional< std::pair< int, int >> size, ScreenshotFormat format) const |
| Invoke the MxN editor screenshot provider. More... | |
| std::vector< unsigned char > | TakeMxNWindowScreenshot (const std::string &windowId, std::optional< std::pair< int, int >> size, ScreenshotFormat format) const |
| Invoke the MxN per-window screenshot provider. More... | |
| CameraState | GetMxNCamera (const std::string &windowId) const |
| Read the camera state of a specific MxN cell. More... | |
| void | SetMxNCamera (const std::string &windowId, const CameraPatch &patch) const |
| Apply a camera patch to a specific MxN cell. More... | |
| SliceState | GetMxNSelectedSlice (const std::string &windowId) const |
| Read the selected-slice state of a 2D MxN cell. More... | |
| void | SetMxNSelectedSliceStep (const std::string &windowId, unsigned int step) const |
| Set the selected slice of a 2D MxN cell by step index. More... | |
| SelectedPositionInfo | GetMxNSelectedPosition (const std::string &windowId) const |
| Read the per-cell selected position and scene bounds atomically. More... | |
| void | SetMxNSelectedPosition (const std::string &windowId, const Point3D &position) const |
| Set the per-cell selected position (cell anchor). More... | |
| std::string | GetMxNLayout () const |
| std::string | SetMxNLayout (const std::string &layoutJson) const |
| Apply a v2.0 layout document; returns the freshly serialized layout. More... | |
Bridge between the REST API server and the Qt/render-window layer.
This class abstracts render-window capabilities so that the REST API module remains free of Qt and Berry dependencies. All callbacks are injected at runtime by the Qt plugin (org.mitk.gui.qt.restapi), which owns and configures the server-owned bridge instance.
Thread dispatching: all three dispatch functions copy the callback and dispatcher under the mutex, release it, then invoke the callback (optionally on the UI thread via the dispatcher). This keeps the mutex free during callback execution and avoids any risk of deadlock from re-entry.
Thread-safety: All public methods are thread-safe.
Definition at line 279 of file mitkRenderWindowBridge.h.
| using mitk::RenderWindowBridge::EditorListProvider = std::function<std::vector<EditorInfo>()> |
Callback type: list all known editor aliases with their activity state.
Definition at line 325 of file mitkRenderWindowBridge.h.
| using mitk::RenderWindowBridge::MxNCameraGetter = std::function<CameraState(const std::string& windowId)> |
Callback type: read camera state of an MxN cell.
Definition at line 378 of file mitkRenderWindowBridge.h.
| using mitk::RenderWindowBridge::MxNCameraSetter = std::function<void(const std::string& windowId, const CameraPatch& patch)> |
Callback type: apply a camera patch on an MxN cell.
Definition at line 381 of file mitkRenderWindowBridge.h.
| using mitk::RenderWindowBridge::MxNEditorScreenshotProvider = std::function<std::vector<unsigned char>( std::optional<std::pair<int, int> > size, ScreenshotFormat format)> |
Callback type: grab the MxN editor canvas.
Definition at line 365 of file mitkRenderWindowBridge.h.
| using mitk::RenderWindowBridge::MxNLayoutGetter = std::function<std::string()> |
Callback type: serialize the editor's current layout to a v2.0 JSON document.
The bridge boundary uses std::string to keep the bridge header free of nlohmann/json.hpp. The plugin serializes via QmitkMxNMultiWidget::SerializeLayout().dump().
Definition at line 419 of file mitkRenderWindowBridge.h.
| using mitk::RenderWindowBridge::MxNLayoutSetter = std::function<std::string(const std::string& layoutJson)> |
Callback type: apply a v2.0 JSON layout document and return the freshly serialized layout (so callers can echo the new state in a PUT response without a follow-up GET).
The std::string boundary keeps nlohmann/json.hpp out of the bridge header. Schema / structural validation throws mitk::Exception from QmitkMxNMultiWidget::ApplyLayout; the controller maps that to 400 INVALID_REQUEST locally (this is the one site where mitk::Exception does not become 422 RENDERING_ERROR).
Definition at line 432 of file mitkRenderWindowBridge.h.
| using mitk::RenderWindowBridge::MxNSelectedPositionGetter = std::function<SelectedPositionInfo(const std::string& windowId)> |
Callback type: read the per-cell selected position (cell anchor) plus scene bounds atomically.
Mirrors the global PositionGetter shape but window-id-keyed. The returned bounds are the global scene AABB at the active timestep (same as the global getter); both pieces of data are read in one UI-thread snapshot.
Definition at line 404 of file mitkRenderWindowBridge.h.
| using mitk::RenderWindowBridge::MxNSelectedPositionSetter = std::function<void(const std::string& windowId, const Point3D& position)> |
Callback type: set the per-cell selected position (cell anchor).
Definition at line 408 of file mitkRenderWindowBridge.h.
| using mitk::RenderWindowBridge::MxNSelectedSliceGetter = std::function<SliceState(const std::string& windowId)> |
Callback type: read the selected-slice state of a 2D MxN cell.
Definition at line 384 of file mitkRenderWindowBridge.h.
| using mitk::RenderWindowBridge::MxNSelectedSliceStepSetter = std::function<void(const std::string& windowId, unsigned int step)> |
Callback type: set the selected slice of a 2D MxN cell by step index.
Position-based slice navigation is intentionally not exposed on the slice resource; per-cell world anchors live on the dedicated selected-position resource (see MxNSelectedPositionSetter).
Definition at line 393 of file mitkRenderWindowBridge.h.
| using mitk::RenderWindowBridge::MxNWindowListProvider = std::function<std::vector<MxNWindowInfo>()> |
Callback type: list the windows of the MxN multi-widget editor.
Definition at line 362 of file mitkRenderWindowBridge.h.
| using mitk::RenderWindowBridge::MxNWindowScreenshotProvider = std::function<std::vector<unsigned char>( const std::string& windowId, std::optional<std::pair<int, int> > size, ScreenshotFormat format)> |
Callback type: grab a single MxN cell's render window.
Definition at line 371 of file mitkRenderWindowBridge.h.
| using mitk::RenderWindowBridge::PositionGetter = std::function<SelectedPositionInfo()> |
Callback type for reading the current global crosshair position and scene bounds.
Both pieces of data are read atomically within one callback invocation so that position and bounds always correspond to the same UI-thread snapshot.
| std::exception | on failure. |
Definition at line 311 of file mitkRenderWindowBridge.h.
| using mitk::RenderWindowBridge::PositionSetter = std::function<void(const Point3D& pos)> |
Callback type for setting the global crosshair position.
| std::exception | on failure. |
Definition at line 322 of file mitkRenderWindowBridge.h.
| using mitk::RenderWindowBridge::ScreenshotProvider = std::function<std::vector<unsigned char>( std::optional<std::pair<int, int> > size, ScreenshotFormat format)> |
Callback type for taking a screenshot.
The callback receives an optional output size (width, height) – both dimensions must be provided together; nullopt means native resolution – and the desired image encoding (Png or Jpeg). It returns the encoded image bytes and throws std::exception on failure.
Definition at line 293 of file mitkRenderWindowBridge.h.
| using mitk::RenderWindowBridge::StdMultiCameraGetter = std::function<CameraState(const std::string& windowId)> |
Callback type: read camera state of a StdMulti render window.
Definition at line 344 of file mitkRenderWindowBridge.h.
| using mitk::RenderWindowBridge::StdMultiCameraSetter = std::function<void(const std::string& windowId, const CameraPatch& patch)> |
Callback type: apply a camera patch on a StdMulti render window.
Definition at line 347 of file mitkRenderWindowBridge.h.
| using mitk::RenderWindowBridge::StdMultiEditorScreenshotProvider = std::function<std::vector<unsigned char>( std::optional<std::pair<int, int> > size, ScreenshotFormat format)> |
Callback type: grab the StdMultiWidget editor canvas.
Definition at line 331 of file mitkRenderWindowBridge.h.
| using mitk::RenderWindowBridge::StdMultiSelectedSliceGetter = std::function<SliceState(const std::string& windowId)> |
Callback type: read the selected-slice state of a StdMulti 2D window.
Definition at line 350 of file mitkRenderWindowBridge.h.
| using mitk::RenderWindowBridge::StdMultiSelectedSliceStepSetter = std::function<void(const std::string& windowId, unsigned int step)> |
Callback type: set the selected slice of a StdMulti 2D window by step index.
StdMulti only supports step-based slice selection; world-position addressing is reserved for /rendering/selected-position. If MxN later needs position-based addressing, add a separate setter alias for it.
Definition at line 359 of file mitkRenderWindowBridge.h.
| using mitk::RenderWindowBridge::StdMultiWindowListProvider = std::function<std::vector<WindowInfo>()> |
Callback type: list the windows of the StdMultiWidget editor.
Definition at line 328 of file mitkRenderWindowBridge.h.
| using mitk::RenderWindowBridge::StdMultiWindowScreenshotProvider = std::function<std::vector<unsigned char>( const std::string& windowId, std::optional<std::pair<int, int> > size, ScreenshotFormat format)> |
Callback type: grab a single StdMulti render window.
Definition at line 337 of file mitkRenderWindowBridge.h.
| CameraState mitk::RenderWindowBridge::GetMxNCamera | ( | const std::string & | windowId | ) | const |
Read the camera state of a specific MxN cell.
| windowId | Canonical fully-qualified window id (e.g. "mxn__widget0"). |
| std::runtime_error | if no getter is set. |
| RenderWindowBridgeNoEditorException | / RenderWindowBridgeUnknownWindowException. |
| Any | exception thrown by the getter. |
| std::string mitk::RenderWindowBridge::GetMxNLayout | ( | ) | const |
Get the current MxN layout as a v2.0 JSON document (string).
| SelectedPositionInfo mitk::RenderWindowBridge::GetMxNSelectedPosition | ( | const std::string & | windowId | ) | const |
Read the per-cell selected position and scene bounds atomically.
| windowId | Canonical fully-qualified window id. |
| std::runtime_error | if no getter is set. |
| RenderWindowBridgeNoEditorException | / RenderWindowBridgeUnknownWindowException. |
| Any | exception thrown by the getter. |
| SliceState mitk::RenderWindowBridge::GetMxNSelectedSlice | ( | const std::string & | windowId | ) | const |
Read the selected-slice state of a 2D MxN cell.
| windowId | Canonical fully-qualified window id. |
| std::runtime_error | if no getter is set. |
| RenderWindowBridgeNoEditorException | / RenderWindowBridgeUnknownWindowException. |
| Any | exception thrown by the getter. |
| SelectedPositionInfo mitk::RenderWindowBridge::GetSelectedPosition | ( | ) | const |
Read the current global crosshair position and scene bounds atomically.
Dispatches to the UI thread if a dispatcher is set.
| std::runtime_error | if no getter is set. |
| Any | exception thrown by the getter. |
| CameraState mitk::RenderWindowBridge::GetStdMultiCamera | ( | const std::string & | windowId | ) | const |
| SliceState mitk::RenderWindowBridge::GetStdMultiSelectedSlice | ( | const std::string & | windowId | ) | const |
| bool mitk::RenderWindowBridge::HasEditorListProvider | ( | ) | const |
| bool mitk::RenderWindowBridge::HasMxNCameraGetter | ( | ) | const |
| bool mitk::RenderWindowBridge::HasMxNCameraSetter | ( | ) | const |
| bool mitk::RenderWindowBridge::HasMxNEditorScreenshotProvider | ( | ) | const |
| bool mitk::RenderWindowBridge::HasMxNLayoutGetter | ( | ) | const |
| bool mitk::RenderWindowBridge::HasMxNLayoutSetter | ( | ) | const |
| bool mitk::RenderWindowBridge::HasMxNSelectedPositionGetter | ( | ) | const |
| bool mitk::RenderWindowBridge::HasMxNSelectedPositionSetter | ( | ) | const |
| bool mitk::RenderWindowBridge::HasMxNSelectedSliceGetter | ( | ) | const |
| bool mitk::RenderWindowBridge::HasMxNSelectedSliceStepSetter | ( | ) | const |
| bool mitk::RenderWindowBridge::HasMxNWindowListProvider | ( | ) | const |
| bool mitk::RenderWindowBridge::HasMxNWindowScreenshotProvider | ( | ) | const |
| bool mitk::RenderWindowBridge::HasPositionGetter | ( | ) | const |
| bool mitk::RenderWindowBridge::HasPositionSetter | ( | ) | const |
| bool mitk::RenderWindowBridge::HasScreenshotProvider | ( | ) | const |
| bool mitk::RenderWindowBridge::HasStdMultiCameraGetter | ( | ) | const |
| bool mitk::RenderWindowBridge::HasStdMultiCameraSetter | ( | ) | const |
| bool mitk::RenderWindowBridge::HasStdMultiEditorScreenshotProvider | ( | ) | const |
| bool mitk::RenderWindowBridge::HasStdMultiSelectedSliceGetter | ( | ) | const |
| bool mitk::RenderWindowBridge::HasStdMultiSelectedSliceStepSetter | ( | ) | const |
| bool mitk::RenderWindowBridge::HasStdMultiWindowListProvider | ( | ) | const |
| bool mitk::RenderWindowBridge::HasStdMultiWindowScreenshotProvider | ( | ) | const |
| std::vector<EditorInfo> mitk::RenderWindowBridge::ListEditors | ( | ) | const |
Invoke the editor list provider.
| std::runtime_error | if no provider is set. |
| std::vector<MxNWindowInfo> mitk::RenderWindowBridge::ListMxNWindows | ( | ) | const |
Invoke the MxN window list provider.
| std::runtime_error | if no provider is set. |
| RenderWindowBridgeNoEditorException | if the editor is not open. |
| std::vector<WindowInfo> mitk::RenderWindowBridge::ListStdMultiWindows | ( | ) | const |
Invoke the StdMulti window list provider.
| std::runtime_error | if no provider is set. |
| RenderWindowBridgeNoEditorException | if the editor is not open. |
| void mitk::RenderWindowBridge::ResetCallbacks | ( | ) |
Clear all registered callbacks in a single atomic operation.
Should be called by the UI-layer owner (e.g. the workbench plugin activator) before the objects captured by the callbacks are destroyed.
| void mitk::RenderWindowBridge::SetDispatcher | ( | StorageThreadDispatcherBase * | dispatcher | ) |
Set the thread dispatcher for UI thread dispatching.
If set, all callbacks are dispatched to the UI thread before invocation. If nullptr, callbacks execute directly on the calling thread.
| dispatcher | The dispatcher, or nullptr to clear. |
| void mitk::RenderWindowBridge::SetEditorListProvider | ( | EditorListProvider | provider | ) |
Set or clear the editor list provider.
| void mitk::RenderWindowBridge::SetMxNCamera | ( | const std::string & | windowId, |
| const CameraPatch & | patch | ||
| ) | const |
Apply a camera patch to a specific MxN cell.
| windowId | Canonical fully-qualified window id. |
| patch | Partial camera update. |
| std::runtime_error | if no setter is set. |
| RenderWindowBridgeNoEditorException | / RenderWindowBridgeUnknownWindowException. |
| Any | exception thrown by the setter. |
| void mitk::RenderWindowBridge::SetMxNCameraGetter | ( | MxNCameraGetter | getter | ) |
Set or clear the MxN camera getter.
| void mitk::RenderWindowBridge::SetMxNCameraSetter | ( | MxNCameraSetter | setter | ) |
Set or clear the MxN camera setter.
| void mitk::RenderWindowBridge::SetMxNEditorScreenshotProvider | ( | MxNEditorScreenshotProvider | provider | ) |
Set or clear the MxN editor screenshot provider.
| std::string mitk::RenderWindowBridge::SetMxNLayout | ( | const std::string & | layoutJson | ) | const |
Apply a v2.0 layout document; returns the freshly serialized layout.
The string boundary keeps the bridge header free of nlohmann/json.hpp. Schema / structural failures escape as mitk::Exception (the engine's native throw type) which the controller maps locally to 400.
| void mitk::RenderWindowBridge::SetMxNLayoutGetter | ( | MxNLayoutGetter | getter | ) |
Set or clear the MxN layout getter (returns v2.0 JSON document as string).
| void mitk::RenderWindowBridge::SetMxNLayoutSetter | ( | MxNLayoutSetter | setter | ) |
Set or clear the MxN layout setter (accepts v2.0 JSON; returns the freshly serialized result).
| void mitk::RenderWindowBridge::SetMxNSelectedPosition | ( | const std::string & | windowId, |
| const Point3D & | position | ||
| ) | const |
Set the per-cell selected position (cell anchor).
| windowId | Canonical fully-qualified window id. |
| position | World coordinate for the cell's anchor. |
| std::runtime_error | if no setter is set. |
| RenderWindowBridgeNoEditorException | / RenderWindowBridgeUnknownWindowException. |
| Any | exception thrown by the setter. |
| void mitk::RenderWindowBridge::SetMxNSelectedPositionGetter | ( | MxNSelectedPositionGetter | getter | ) |
Set or clear the MxN per-cell selected-position getter.
| void mitk::RenderWindowBridge::SetMxNSelectedPositionSetter | ( | MxNSelectedPositionSetter | setter | ) |
Set or clear the MxN per-cell selected-position setter.
| void mitk::RenderWindowBridge::SetMxNSelectedSliceGetter | ( | MxNSelectedSliceGetter | getter | ) |
Set or clear the MxN selected-slice getter.
| void mitk::RenderWindowBridge::SetMxNSelectedSliceStep | ( | const std::string & | windowId, |
| unsigned int | step | ||
| ) | const |
Set the selected slice of a 2D MxN cell by step index.
| windowId | Canonical fully-qualified window id. |
| step | Zero-based slice index along the cell's view direction. |
| std::runtime_error | if no setter is set. |
| RenderWindowBridgeNoEditorException | / RenderWindowBridgeUnknownWindowException. |
| Any | exception thrown by the setter. |
| void mitk::RenderWindowBridge::SetMxNSelectedSliceStepSetter | ( | MxNSelectedSliceStepSetter | setter | ) |
Set or clear the MxN selected-slice step setter.
| void mitk::RenderWindowBridge::SetMxNWindowListProvider | ( | MxNWindowListProvider | provider | ) |
Set or clear the MxN window list provider.
| void mitk::RenderWindowBridge::SetMxNWindowScreenshotProvider | ( | MxNWindowScreenshotProvider | provider | ) |
Set or clear the MxN per-window screenshot provider.
| void mitk::RenderWindowBridge::SetPositionGetter | ( | PositionGetter | getter | ) |
Set or clear the position getter callback.
Should read the global crosshair position from the StdMultiWidgetEditor via IRenderWindowPart::GetSelectedPosition().
| getter | Callback to read current crosshair position, or empty to clear. |
| void mitk::RenderWindowBridge::SetPositionSetter | ( | PositionSetter | setter | ) |
Set or clear the position setter callback.
Should update the global crosshair position via IRenderWindowPart::SetSelectedPosition() on the StdMultiWidgetEditor.
| setter | Callback to move crosshair to a position, or empty to clear. |
| void mitk::RenderWindowBridge::SetScreenshotProvider | ( | ScreenshotProvider | provider | ) |
Set or clear the screenshot provider callback.
| provider | The callback to use, or an empty function to clear. |
| void mitk::RenderWindowBridge::SetSelectedPosition | ( | const Point3D & | pos | ) | const |
Move the crosshair to the given world position.
Dispatches to the UI thread if a dispatcher is set.
| std::runtime_error | if no setter is set. |
| Any | exception thrown by the setter. |
| void mitk::RenderWindowBridge::SetStdMultiCamera | ( | const std::string & | windowId, |
| const CameraPatch & | patch | ||
| ) | const |
| void mitk::RenderWindowBridge::SetStdMultiCameraGetter | ( | StdMultiCameraGetter | getter | ) |
Set or clear the StdMulti camera getter.
| void mitk::RenderWindowBridge::SetStdMultiCameraSetter | ( | StdMultiCameraSetter | setter | ) |
Set or clear the StdMulti camera setter.
| void mitk::RenderWindowBridge::SetStdMultiEditorScreenshotProvider | ( | StdMultiEditorScreenshotProvider | provider | ) |
Set or clear the StdMulti editor screenshot provider.
| void mitk::RenderWindowBridge::SetStdMultiSelectedSliceGetter | ( | StdMultiSelectedSliceGetter | getter | ) |
Set or clear the StdMulti selected-slice getter.
| void mitk::RenderWindowBridge::SetStdMultiSelectedSliceStep | ( | const std::string & | windowId, |
| unsigned int | step | ||
| ) | const |
| void mitk::RenderWindowBridge::SetStdMultiSelectedSliceStepSetter | ( | StdMultiSelectedSliceStepSetter | setter | ) |
Set or clear the StdMulti selected-slice step setter.
| void mitk::RenderWindowBridge::SetStdMultiWindowListProvider | ( | StdMultiWindowListProvider | provider | ) |
Set or clear the StdMulti window list provider.
| void mitk::RenderWindowBridge::SetStdMultiWindowScreenshotProvider | ( | StdMultiWindowScreenshotProvider | provider | ) |
Set or clear the StdMulti per-window screenshot provider.
| std::vector<unsigned char> mitk::RenderWindowBridge::TakeMxNEditorScreenshot | ( | std::optional< std::pair< int, int >> | size, |
| ScreenshotFormat | format | ||
| ) | const |
Invoke the MxN editor screenshot provider.
| std::runtime_error | if no provider is set. |
| RenderWindowBridgeNoEditorException | if the editor is not open. |
| std::vector<unsigned char> mitk::RenderWindowBridge::TakeMxNWindowScreenshot | ( | const std::string & | windowId, |
| std::optional< std::pair< int, int >> | size, | ||
| ScreenshotFormat | format | ||
| ) | const |
Invoke the MxN per-window screenshot provider.
| std::runtime_error | if no provider is set. |
| RenderWindowBridgeNoEditorException | / RenderWindowBridgeUnknownWindowException. |
| std::vector<unsigned char> mitk::RenderWindowBridge::TakeScreenshot | ( | std::optional< std::pair< int, int >> | size, |
| ScreenshotFormat | format | ||
| ) | const |
Capture a screenshot using the registered provider.
The provider is copied under the lock and called outside the lock so that the mutex is not held during the (potentially long) operation. Dispatches to the UI thread if a dispatcher is set.
| std::runtime_error | if no provider is set. |
| Any | exception thrown by the provider. |
| std::vector<unsigned char> mitk::RenderWindowBridge::TakeStdMultiEditorScreenshot | ( | std::optional< std::pair< int, int >> | size, |
| ScreenshotFormat | format | ||
| ) | const |
Invoke the StdMulti editor screenshot provider.
| std::runtime_error | if no provider is set. |
| RenderWindowBridgeNoEditorException | if the editor is not open. |
| std::vector<unsigned char> mitk::RenderWindowBridge::TakeStdMultiWindowScreenshot | ( | const std::string & | windowId, |
| std::optional< std::pair< int, int >> | size, | ||
| ScreenshotFormat | format | ||
| ) | const |
Invoke the StdMulti per-window screenshot provider.
| std::runtime_error | if no provider is set. |
| RenderWindowBridgeNoEditorException | / RenderWindowBridgeUnknownWindowException. |