ImFusion SDK 4.3
SliceIndicator Class Reference

#include <ImFusion/GUI/SliceIndicator.h>

Interactive renderer to show and manipulate the position/extent of SliceView instances in context of other Views. More...

+ Inheritance diagram for SliceIndicator:

Detailed Description

Interactive renderer to show and manipulate the position/extent of SliceView instances in context of other Views.

This class wraps a GlSliceIndicator to visualize existing SliceViews in other SliceViews and VolumeViews and combines it with input event handling code so that you can change the position and orientation of a slice by dragging its intersection line.

Public Member Functions

 SliceIndicator (std::vector< SliceView * > sliceViews)
 
GlSliceIndicatorglObject ()
 
const GlSliceIndicatorglObject () const
 
bool rotatesAll () const
 Returns whether rotation should be applied to other slices after interaction finishes.
 
void setRotateAll (bool flag)
 Set whether rotation should be applied to other slices after interaction finishes.
 
EventResult handleInputEvent (const InputEvent &event, const View &view) override
 Modify the slice based on the mouse events.
 
bool isRotating () const
 Return whether active mode is rotation.
 
- Public Member Functions inherited from ViewObject
 ViewObject (std::unique_ptr< GlObject > glObject)
 Instantiate a new ViewObject taking ownership of the underlying GlObject which must not be null.
 
const GlObjectglObject () const
 Get the underlying abstract GlObject.
 
GlObjectglObject ()
 
const GlObjectgl () const
 Original API methods for the underlying abstract GlObject.
 
GlObjectgl ()
 

Additional Inherited Members

- Protected Attributes inherited from ViewObject
std::unique_ptr< GlObjectm_glObject
 

Member Function Documentation

◆ handleInputEvent()

EventResult handleInputEvent ( const InputEvent & event,
const View & view )
overridevirtual

Modify the slice based on the mouse events.

Implements ViewObject.


The documentation for this class was generated from the following file:
Search Tab / S to search, Esc to close