Slicer
5.0
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
#include <Libs/MRML/DisplayableManager/vtkMRMLInteractionEventData.h>
Public Types | |
enum | MRMLInteractionEvents { LeftButtonClickEvent = vtkCommand::UserEvent + 300, MiddleButtonClickEvent, RightButtonClickEvent } |
Extends vtkCommand events. More... | |
typedef vtkEventDataDevice3D | Superclass |
Public Member Functions | |
vtkCellPicker * | GetAccuratePicker () const |
virtual const char * | GetClassName () |
int | GetComponentIndex () const |
int | GetComponentType () const |
void | GetDisplayPosition (int v[2]) const |
const int * | GetDisplayPosition () const |
const std::string & | GetInteractionContextName () |
char | GetKeyCode () |
int | GetKeyRepeatCount () |
const std::string & | GetKeySym () |
double | GetLastRotation () const |
double | GetLastScale () const |
const double * | GetLastTranslation () const |
int | GetModifiers () |
bool | GetMouseMovedSinceButtonDown () const |
vtkRenderer * | GetRenderer () const |
double | GetRotation () const |
double | GetScale () const |
const double * | GetTranslation () const |
vtkMRMLAbstractViewNode * | GetViewNode () const |
double | GetWorldToPhysicalScale () const |
virtual int | IsA (const char *type) |
bool | IsDisplayPositionValid () |
void | SetAccuratePicker (vtkCellPicker *picker) |
void | SetAttributesFromInteractor (vtkRenderWindowInteractor *interactor) |
Set Modifiers and Key... attributes from interactor. More... | |
void | SetComponentIndex (int componentIndex) |
void | SetComponentType (int componentType) |
void | SetDisplayPosition (const int p[2]) |
void | SetDisplayPositionInvalid () |
void | SetInteractionContextName (const std::string &v) |
void | SetKeyCode (char v) |
void | SetKeyRepeatCount (char v) |
void | SetKeySym (const std::string &v) |
void | SetLastRotation (double v) |
void | SetLastScale (double scale) |
void | SetLastTranslation (const double translation[2]) |
void | SetModifiers (int v) |
void | SetMouseMovedSinceButtonDown (bool moved) |
void | SetRenderer (vtkRenderer *ren) |
void | SetRotation (double v) |
void | SetScale (double scale) |
void | SetTranslation (const double translation[2]) |
void | SetType (unsigned long v) |
void | SetViewNode (vtkMRMLAbstractViewNode *viewNode) |
void | SetWorldToPhysicalScale (double v) |
void | WorldToDisplay (const double worldPosition[3], double displayPosition[3]) |
void | SetWorldPosition (const double p[3], bool accurate=true) |
bool | IsWorldPositionValid () |
bool | IsWorldPositionAccurate () |
void | SetWorldPositionInvalid () |
bool | ComputeAccurateWorldPosition (bool force=false) |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkMRMLInteractionEventData * | New () |
static vtkMRMLInteractionEventData * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
bool | Equivalent (const vtkEventData *e) const override |
vtkMRMLInteractionEventData () | |
~vtkMRMLInteractionEventData () override=default | |
Protected Attributes | |
vtkCellPicker * | AccuratePicker |
int | ComponentIndex |
int | ComponentType |
bool | ComputeAccurateWorldPositionAttempted |
int | DisplayPosition [2] |
bool | DisplayPositionValid |
std::string | InteractionContextName |
Name of interaction context. In case of the mouse, it is empty string. More... | |
int | Modifiers |
bool | MouseMovedSinceButtonDown |
vtkRenderer * | Renderer |
vtkMRMLAbstractViewNode * | ViewNode |
bool | WorldPositionAccurate |
bool | WorldPositionValid |
double | WorldToPhysicalScale |
double | WorldToViewTransformMatrix [16] |
bool | WorldToViewTransformMatrixValid |
char | KeyCode |
For KeyPressEvent. More... | |
int | KeyRepeatCount |
std::string | KeySym |
double | Rotation |
macOS touchpad events More... | |
double | LastRotation |
double | Scale |
double | LastScale |
double | Translation [2] |
double | LastTranslation [2] |
Class for storing all relevant details of mouse and keyboard events. It stores additional information that is expensive to compute (such as 3D position) or not always easy to get (such as modifiers).
Definition at line 35 of file vtkMRMLInteractionEventData.h.
typedef vtkEventDataDevice3D vtkMRMLInteractionEventData::Superclass |
Definition at line 38 of file vtkMRMLInteractionEventData.h.
Extends vtkCommand events.
Enumerator | |
---|---|
LeftButtonClickEvent | |
MiddleButtonClickEvent | |
RightButtonClickEvent |
Definition at line 42 of file vtkMRMLInteractionEventData.h.
|
protected |
|
overrideprotecteddefault |
bool vtkMRMLInteractionEventData::ComputeAccurateWorldPosition | ( | bool | force = false | ) |
|
overrideprotected |
vtkCellPicker* vtkMRMLInteractionEventData::GetAccuratePicker | ( | ) | const |
|
virtual |
int vtkMRMLInteractionEventData::GetComponentIndex | ( | ) | const |
int vtkMRMLInteractionEventData::GetComponentType | ( | ) | const |
void vtkMRMLInteractionEventData::GetDisplayPosition | ( | int | v[2] | ) | const |
const int* vtkMRMLInteractionEventData::GetDisplayPosition | ( | ) | const |
const std::string& vtkMRMLInteractionEventData::GetInteractionContextName | ( | ) |
char vtkMRMLInteractionEventData::GetKeyCode | ( | ) |
int vtkMRMLInteractionEventData::GetKeyRepeatCount | ( | ) |
const std::string& vtkMRMLInteractionEventData::GetKeySym | ( | ) |
double vtkMRMLInteractionEventData::GetLastRotation | ( | ) | const |
double vtkMRMLInteractionEventData::GetLastScale | ( | ) | const |
const double* vtkMRMLInteractionEventData::GetLastTranslation | ( | ) | const |
int vtkMRMLInteractionEventData::GetModifiers | ( | ) |
bool vtkMRMLInteractionEventData::GetMouseMovedSinceButtonDown | ( | ) | const |
vtkRenderer* vtkMRMLInteractionEventData::GetRenderer | ( | ) | const |
double vtkMRMLInteractionEventData::GetRotation | ( | ) | const |
double vtkMRMLInteractionEventData::GetScale | ( | ) | const |
const double* vtkMRMLInteractionEventData::GetTranslation | ( | ) | const |
vtkMRMLAbstractViewNode* vtkMRMLInteractionEventData::GetViewNode | ( | ) | const |
double vtkMRMLInteractionEventData::GetWorldToPhysicalScale | ( | ) | const |
|
virtual |
bool vtkMRMLInteractionEventData::IsDisplayPositionValid | ( | ) |
|
static |
bool vtkMRMLInteractionEventData::IsWorldPositionAccurate | ( | ) |
bool vtkMRMLInteractionEventData::IsWorldPositionValid | ( | ) |
|
static |
|
static |
void vtkMRMLInteractionEventData::SetAccuratePicker | ( | vtkCellPicker * | picker | ) |
void vtkMRMLInteractionEventData::SetAttributesFromInteractor | ( | vtkRenderWindowInteractor * | interactor | ) |
Set Modifiers and Key... attributes from interactor.
void vtkMRMLInteractionEventData::SetComponentIndex | ( | int | componentIndex | ) |
void vtkMRMLInteractionEventData::SetComponentType | ( | int | componentType | ) |
void vtkMRMLInteractionEventData::SetDisplayPosition | ( | const int | p[2] | ) |
void vtkMRMLInteractionEventData::SetDisplayPositionInvalid | ( | ) |
void vtkMRMLInteractionEventData::SetInteractionContextName | ( | const std::string & | v | ) |
void vtkMRMLInteractionEventData::SetKeyCode | ( | char | v | ) |
void vtkMRMLInteractionEventData::SetKeyRepeatCount | ( | char | v | ) |
void vtkMRMLInteractionEventData::SetKeySym | ( | const std::string & | v | ) |
void vtkMRMLInteractionEventData::SetLastRotation | ( | double | v | ) |
void vtkMRMLInteractionEventData::SetLastScale | ( | double | scale | ) |
void vtkMRMLInteractionEventData::SetLastTranslation | ( | const double | translation[2] | ) |
void vtkMRMLInteractionEventData::SetModifiers | ( | int | v | ) |
void vtkMRMLInteractionEventData::SetMouseMovedSinceButtonDown | ( | bool | moved | ) |
void vtkMRMLInteractionEventData::SetRenderer | ( | vtkRenderer * | ren | ) |
void vtkMRMLInteractionEventData::SetRotation | ( | double | v | ) |
void vtkMRMLInteractionEventData::SetScale | ( | double | scale | ) |
void vtkMRMLInteractionEventData::SetTranslation | ( | const double | translation[2] | ) |
void vtkMRMLInteractionEventData::SetType | ( | unsigned long | v | ) |
void vtkMRMLInteractionEventData::SetViewNode | ( | vtkMRMLAbstractViewNode * | viewNode | ) |
void vtkMRMLInteractionEventData::SetWorldPosition | ( | const double | p[3], |
bool | accurate = true |
||
) |
It may be expensive to compute world position accurately (e.g., in a 3D view). If accurate parameter is set to false then it indicates that the position may be inaccurate.
void vtkMRMLInteractionEventData::SetWorldPositionInvalid | ( | ) |
void vtkMRMLInteractionEventData::SetWorldToPhysicalScale | ( | double | v | ) |
void vtkMRMLInteractionEventData::WorldToDisplay | ( | const double | worldPosition[3], |
double | displayPosition[3] | ||
) |
|
protected |
Definition at line 129 of file vtkMRMLInteractionEventData.h.
|
protected |
Definition at line 131 of file vtkMRMLInteractionEventData.h.
|
protected |
Definition at line 130 of file vtkMRMLInteractionEventData.h.
|
protected |
Definition at line 126 of file vtkMRMLInteractionEventData.h.
|
protected |
Definition at line 122 of file vtkMRMLInteractionEventData.h.
|
protected |
Definition at line 123 of file vtkMRMLInteractionEventData.h.
|
protected |
Name of interaction context. In case of the mouse, it is empty string.
Definition at line 159 of file vtkMRMLInteractionEventData.h.
|
protected |
For KeyPressEvent.
Definition at line 138 of file vtkMRMLInteractionEventData.h.
|
protected |
Definition at line 139 of file vtkMRMLInteractionEventData.h.
|
protected |
Definition at line 140 of file vtkMRMLInteractionEventData.h.
|
protected |
Definition at line 147 of file vtkMRMLInteractionEventData.h.
|
protected |
Definition at line 149 of file vtkMRMLInteractionEventData.h.
|
protected |
Definition at line 151 of file vtkMRMLInteractionEventData.h.
|
protected |
Definition at line 121 of file vtkMRMLInteractionEventData.h.
|
protected |
Definition at line 132 of file vtkMRMLInteractionEventData.h.
|
protected |
Definition at line 128 of file vtkMRMLInteractionEventData.h.
|
protected |
macOS touchpad events
Definition at line 146 of file vtkMRMLInteractionEventData.h.
|
protected |
Definition at line 148 of file vtkMRMLInteractionEventData.h.
|
protected |
Definition at line 150 of file vtkMRMLInteractionEventData.h.
|
protected |
Definition at line 127 of file vtkMRMLInteractionEventData.h.
|
protected |
Definition at line 125 of file vtkMRMLInteractionEventData.h.
|
protected |
Definition at line 124 of file vtkMRMLInteractionEventData.h.
|
protected |
For VR events World to physical scale: Value greater than 1 means that objects appear larger in VR than their real world size.
Definition at line 156 of file vtkMRMLInteractionEventData.h.
|
protected |
Definition at line 133 of file vtkMRMLInteractionEventData.h.
|
protected |
Definition at line 134 of file vtkMRMLInteractionEventData.h.