ImFusion C++ SDK 4.4.0
ImFusion::GUI::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 ImFusion::GUI::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 ImFusion::GUI::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 ImFusion::GUI::ViewObject
std::unique_ptr< GlObjectm_glObject

Member Function Documentation

◆ handleInputEvent()

EventResult ImFusion::GUI::SliceIndicator::handleInputEvent ( const InputEvent & event,
const View & view )
overridevirtual

Modify the slice based on the mouse events.

Implements ImFusion::GUI::ViewObject.


The documentation for this class was generated from the following file:
  • ImFusion/GUI/SliceIndicator.h
Search Tab / S to search, Esc to close