![]() |
ImFusion SDK 4.3
|
#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: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) | |
| GlSliceIndicator & | glObject () |
| const GlSliceIndicator & | glObject () 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 GlObject & | glObject () const |
| Get the underlying abstract GlObject. | |
| GlObject & | glObject () |
| const GlObject * | gl () const |
| Original API methods for the underlying abstract GlObject. | |
| GlObject * | gl () |
Additional Inherited Members | |
Protected Attributes inherited from ViewObject | |
| std::unique_ptr< GlObject > | m_glObject |
|
overridevirtual |
Modify the slice based on the mouse events.
Implements ViewObject.