|
|
| Interaction2D (GUI::SliceView &view) |
|
void | setCenter (const vec3 ¢er) |
|
void | setScale (double scale) |
|
void | setZoom (double zoom) |
|
void | setSlice (const Slice &slice) |
|
int | width () const |
|
int | height () const |
|
double | scale () const |
|
double | zoom () const |
|
vec3 | center () const |
|
Slice | slice () const |
|
Slice | originalSlice () const |
| GUI::EventResult | handleMouseEvent (const GUI::MouseEvent &event) override |
| GUI::EventResult | handleContextMenuEvent (const GUI::ContextMenuEvent &event) override |
| Public Member Functions inherited from ImFusion::GUI::SliceViewDefaultEventHandler |
|
| SliceViewDefaultEventHandler (SliceView &view) |
|
CenterOfRotation | centerOfRotation () const |
| | Returns the center of rotation for in-plane and out-of-plane rotations.
|
|
void | setCenterOfRotation (CenterOfRotation value) |
| | Sets the center of rotation for in-plane and out-of-plane rotations.
|
|
const TouchActionConfig & | touchActionConfig () const |
| | Returns which touch events should be processed and how.
|
|
void | setTouchActionConfig (const TouchActionConfig &value) |
| | Sets which touch events should be processed and how.
|
|
const std::vector< SharedImageSet * > & | manualRegistrationImages () const |
| | Returns the list of images for which pan and rotation actions are interpreted as manual registration actions.
|
| void | setManualRegistrationImages (const std::vector< SharedImageSet * > &images) |
| | Sets the list of images for which pan and rotation actions are interpreted as manual registration actions.
|
|
std::optional< vec4 > | manualRegistrationHighlightColor () const |
| | Returns the optional tint color to indicate/highlight the manualRegistrationImages() in the rendering.
|
|
void | setManualRegistrationHighlightColor (std::optional< vec4 > color) |
| | Sets the optional tint color to indicate/highlight the manualRegistrationImages() in the rendering.
|
|
ActionSpeed | actionSpeed (Action action) const |
| | Returns the speed at which a mouse/touch movement will modify the underlying view.
|
|
void | setActionSpeed (Action action, ActionSpeed value) |
| | Sets the speed at which a mouse/touch movement will modify the underlying view.
|
|
InputEventMapper< Action > & | inputEventMapper () |
| | Access to the helper class to map an InputEvent to an Action of this view to allow for to customize the mapping from the outside.
|
| EventResult | handleInputEvent (const InputEvent &event) override |
| | This function is called by sources of input events in order to dispatch them to the handlers.
|
|
| SignalReceiver ()=default |
| | Default constructor.
|
|
| SignalReceiver (const SignalReceiver &other) |
| | Copy constructor, does not copy any existing signal connections from other.
|
|
SignalReceiver & | operator= (SignalReceiver rhs) |
| | Assignment operator, disconnects all existing connections, does not copy any existing signal connections from rhs.
|
|
virtual | ~SignalReceiver () |
| | Virtual destructor disconnects from all connected signals.
|
|
| Public Types inherited from ImFusion::GUI::SliceViewDefaultEventHandler |
| enum class | Action {
Pan
, SweepSlice
, Zoom
, InPlaneRotation
,
OutOfPlaneRotation
, ChangeFocus
, Windowing
, Blending
} |
| | Enumeration of actions that can be performed based on input events. More...
|
| enum class | CenterOfRotation { FirstImage
, AllDatasets
, View
, MprIntersection
} |
| | Enumeration of options for determining the center of rotation. More...
|
| Protected Member Functions inherited from ImFusion::GUI::SliceViewDefaultEventHandler |
|
vec3 | rotationCenter () const |
| SharedImageSet * | targetImage () const |
| | Returns the target image for window/level, and focus actions.
|
|
virtual EventResult | handleTouchEvent (const TouchEvent &event) |
|
void | disconnectAll () |
| | Disconnects all existing connections.
|
| Protected Attributes inherited from ImFusion::GUI::SliceViewDefaultEventHandler |
|
SliceView & | m_view |
|
InputEventMapper< Action > | m_actionMapper |
|
CenterOfRotation | m_centerOfRotation = CenterOfRotation::MprIntersection |
|
std::vector< SharedImageSet * > | m_manualRegImages |
|
std::unique_ptr< GlImageHighlighter > | m_manualRegHighlighter |
|
bool | m_highlightMoveImages = false |
|
TouchActionConfig | m_touchActionConfig |