18#ifndef __vtkMRMLInteractionEventData_h
19#define __vtkMRMLInteractionEventData_h
22#include "vtkEventData.h"
25#include "vtkMRMLExport.h"
28class vtkRenderWindowInteractor;
Abstract MRML node to represent a view. The class holds the properties common to any view type (3D,...
double Rotation
macOS touchpad events
void SetViewNode(vtkMRMLAbstractViewNode *viewNode)
double GetLastScale() const
double LastTranslation[2]
void SetDisplayPositionInvalid()
const double * GetTranslation() const VTK_SIZEHINT(2)
bool GetMouseMovedSinceButtonDown() const
void SetDisplayPosition(const int p[2])
const std::string & GetKeySym()
double GetRotation() const
bool ComputeAccurateWorldPosition(bool force=false)
static vtkMRMLInteractionEventData * New()
void SetLastTranslation(const double translation[2])
void SetRotation(double v)
const std::string & GetInteractionContextName()
vtkMRMLInteractionEventData()
void GetDisplayPosition(int v[2]) const
const double * GetLastTranslation() const VTK_SIZEHINT(2)
int GetComponentType() const
bool MouseMovedSinceButtonDown
void WorldToDisplay(const double worldPosition[3], double displayPosition[3])
bool WorldPositionAccurate
vtkRenderer * GetRenderer() const
bool ComputeAccurateWorldPositionAttempted
void SetTranslation(const double translation[2])
vtkCellPicker * GetAccuratePicker() const
void SetKeySym(const std::string &v)
void SetAttributesFromInteractor(vtkRenderWindowInteractor *interactor)
Set Modifiers and Key... attributes from interactor.
void SetWorldPosition(const double p[3], bool accurate=true)
void SetKeyRepeatCount(char v)
void SetRenderer(vtkRenderer *ren)
void SetAccuratePicker(vtkCellPicker *picker)
std::string InteractionContextName
Name of interaction context. In case of the mouse, it is empty string.
void SetScale(double scale)
MRMLInteractionEvents
Extends vtkCommand events.
void SetComponentIndex(int componentIndex)
double GetWorldToPhysicalScale() const
void SetWorldPositionInvalid()
bool Equivalent(const vtkEventData *e) const override
const int * GetDisplayPosition() const VTK_SIZEHINT(2)
char KeyCode
For KeyPressEvent.
bool IsWorldPositionValid()
bool WorldToViewTransformMatrixValid
void SetType(unsigned long v)
bool IsDisplayPositionValid()
double WorldToPhysicalScale
bool DisplayPositionValid
void SetLastRotation(double v)
double WorldToViewTransformMatrix[16]
void SetLastScale(double scale)
vtkCellPicker * AccuratePicker
int GetComponentIndex() const
void SetComponentType(int componentType)
void SetMouseMovedSinceButtonDown(bool moved)
void SetWorldToPhysicalScale(double v)
vtkMRMLAbstractViewNode * ViewNode
bool IsWorldPositionAccurate()
double GetLastRotation() const
vtkMRMLAbstractViewNode * GetViewNode() const
void SetInteractionContextName(const std::string &v)