44 LeftButtonClickEvent = vtkCommand::UserEvent + 300,
68 void SetDisplayPosition(const
int p[2]);
69 bool IsDisplayPositionValid();
70 void SetDisplayPositionInvalid();
72 void SetKeyCode(
char v);
74 void SetKeyRepeatCount(
char v);
75 int GetKeyRepeatCount();
76 void SetKeySym(const std::
string &v);
77 const std::
string& GetKeySym();
82 void SetComponentType(
int componentType);
83 int GetComponentType() const;
85 void SetComponentIndex(
int componentIndex);
86 int GetComponentIndex() const;
88 void SetMouseMovedSinceButtonDown(
bool moved);
89 bool GetMouseMovedSinceButtonDown() const;
91 void SetRotation(
double v);
92 double GetRotation() const;
93 void SetLastRotation(
double v);
94 double GetLastRotation() const;
95 void SetScale(
double scale);
96 double GetScale() const;
97 void SetLastScale(
double scale);
98 double GetLastScale() const;
99 void SetTranslation(const
double translation[2]);
100 const
double* GetTranslation() const VTK_SIZEHINT(2);
101 void SetLastTranslation(const
double translation[2]);
102 const
double* GetLastTranslation() const VTK_SIZEHINT(2);
103 void SetWorldToPhysicalScale(
double v);
104 double GetWorldToPhysicalScale() const;
107 void SetAttributesFromInteractor(vtkRenderWindowInteractor* interactor);
109 vtkRenderer* GetRenderer() const;
110 void SetRenderer(vtkRenderer* ren);
112 void SetAccuratePicker(vtkCellPicker* picker);
113 vtkCellPicker* GetAccuratePicker() const;
115 void SetInteractionContextName(const std::
string& v);
116 const std::
string& GetInteractionContextName();
118 void WorldToDisplay(const
double worldPosition[3],
double displayPosition[3]);
122 int DisplayPosition[2];
123 bool DisplayPositionValid;
124 bool WorldPositionValid;
125 bool WorldPositionAccurate;
126 bool ComputeAccurateWorldPositionAttempted;
128 vtkRenderer* Renderer;
129 vtkCellPicker* AccuratePicker;
132 bool MouseMovedSinceButtonDown;
133 double WorldToViewTransformMatrix[16];
134 bool WorldToViewTransformMatrixValid;
150 double Translation[2];
151 double LastTranslation[2];
156 double WorldToPhysicalScale;
159 std::
string InteractionContextName;
161 bool Equivalent(const vtkEventData *e) const override;