open_iA 2023.02
A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | List of all members
iASlicerInteractorStyle Class Reference

Custom interactor style for slicers, disabling some interactions from vtkInteractorStyleImage (e.g. More...

#include <iASlicerInteractorStyle.h>

Inheritance diagram for iASlicerInteractorStyle:
[legend]
Collaboration diagram for iASlicerInteractorStyle:
[legend]

Public Types

enum  InteractionMode { imNormal , imRegionSelect , imWindowLevelAdjust }
 

Public Member Functions

 iASlicerInteractorStyle ()
 
void OnLeftButtonDown () override
 
void OnLeftButtonUp () override
 
void OnMouseMove () override
 
 vtkTypeMacro (iASlicerInteractorStyle, vtkInteractorStyleImage)
 
void OnMouseWheelForward () override
 shift and control + mousewheel are used differently - don't use them for zooming!
 
void OnMouseWheelBackward () override
 
void OnRightButtonDown () override
 Conditionally disable zooming via right button dragging.
 
void setRightButtonDragZoomEnabled (bool enabled)
 
void setInteractionMode (InteractionMode mode)
 
bool leftButtonDown () const
 
InteractionMode interactionMode () const
 
iASlicerInteractionEvents const & qtEventObject () const
 

Static Public Member Functions

static iASlicerInteractorStyleNew ()
 

Detailed Description

Custom interactor style for slicers, disabling some interactions from vtkInteractorStyleImage (e.g.

rotation via ctrl+drag, window/level adjustments if not explicitly enabled), and adding a transfer function by region mode.

Member Enumeration Documentation

◆ InteractionMode

Enumerator
imNormal 
imRegionSelect 
imWindowLevelAdjust 

Constructor & Destructor Documentation

◆ iASlicerInteractorStyle()

iASlicerInteractorStyle::iASlicerInteractorStyle ( )

Member Function Documentation

◆ interactionMode()

iASlicerInteractorStyle::InteractionMode iASlicerInteractorStyle::interactionMode ( ) const

◆ leftButtonDown()

bool iASlicerInteractorStyle::leftButtonDown ( ) const

◆ New()

static iASlicerInteractorStyle * iASlicerInteractorStyle::New ( )
static

◆ OnLeftButtonDown()

void iASlicerInteractorStyle::OnLeftButtonDown ( )
override

With m_leftButtonDown it does not work properly if release happens outside!

◆ OnLeftButtonUp()

void iASlicerInteractorStyle::OnLeftButtonUp ( )
override

◆ OnMouseMove()

void iASlicerInteractorStyle::OnMouseMove ( )
override

◆ OnMouseWheelBackward()

void iASlicerInteractorStyle::OnMouseWheelBackward ( )
override

◆ OnMouseWheelForward()

void iASlicerInteractorStyle::OnMouseWheelForward ( )
override

shift and control + mousewheel are used differently - don't use them for zooming!

◆ OnRightButtonDown()

void iASlicerInteractorStyle::OnRightButtonDown ( )
override

Conditionally disable zooming via right button dragging.

◆ qtEventObject()

iASlicerInteractionEvents const & iASlicerInteractorStyle::qtEventObject ( ) const

◆ setInteractionMode()

void iASlicerInteractorStyle::setInteractionMode ( InteractionMode  mode)

◆ setRightButtonDragZoomEnabled()

void iASlicerInteractorStyle::setRightButtonDragZoomEnabled ( bool  enabled)

◆ vtkTypeMacro()

iASlicerInteractorStyle::vtkTypeMacro ( iASlicerInteractorStyle  ,
vtkInteractorStyleImage   
)

The documentation for this class was generated from the following files: