ImFusion C++ SDK 4.4.0
ImFusion::Interaction2D Class Reference
Inheritance diagram for ImFusion::Interaction2D:

Public Member Functions

 Interaction2D (GUI::SliceView &view)
void setCenter (const vec3 &center)
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 TouchActionConfigtouchActionConfig () 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.
Public Member Functions inherited from ImFusion::SignalReceiver
 SignalReceiver ()=default
 Default constructor.
 SignalReceiver (const SignalReceiver &other)
 Copy constructor, does not copy any existing signal connections from other.
SignalReceiveroperator= (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 Attributes

Signal resetPressed
Signal< vec3 > doubleClicked

Additional Inherited Members

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
SharedImageSettargetImage () const
 Returns the target image for window/level, and focus actions.
virtual EventResult handleTouchEvent (const TouchEvent &event)
Protected Member Functions inherited from ImFusion::SignalReceiver
void disconnectAll ()
 Disconnects all existing connections.
Protected Attributes inherited from ImFusion::GUI::SliceViewDefaultEventHandler
SliceViewm_view
InputEventMapper< Actionm_actionMapper
CenterOfRotation m_centerOfRotation = CenterOfRotation::MprIntersection
std::vector< SharedImageSet * > m_manualRegImages
std::unique_ptr< GlImageHighlighterm_manualRegHighlighter
bool m_highlightMoveImages = false
TouchActionConfig m_touchActionConfig

Member Function Documentation

◆ handleMouseEvent()

GUI::EventResult ImFusion::Interaction2D::handleMouseEvent ( const GUI::MouseEvent & event)
overridevirtual

◆ handleContextMenuEvent()

GUI::EventResult ImFusion::Interaction2D::handleContextMenuEvent ( const GUI::ContextMenuEvent & event)
overridevirtual

The documentation for this class was generated from the following file:
  • ImFusionLabels/lib/include/ImFusion/Labels/UI/Views/Interaction2D.h
Search Tab / S to search, Esc to close