41 #ifndef vtkMRMLAbstractWidget_h 42 #define vtkMRMLAbstractWidget_h 44 #include "vtkMRMLDisplayableManagerExport.h" 45 #include "vtkObject.h" 46 #include "vtkSmartPointer.h" 47 #include "vtkWeakPointer.h" 57 class vtkWidgetEventTranslator;
64 void PrintSelf(ostream& os, vtkIndent indent)
override;
77 virtual void UpdateFromMRML(
vtkMRMLNode* caller,
unsigned long event,
void *callData =
nullptr);
80 vtkSetMacro(WidgetState,
int);
83 vtkGetMacro(WidgetState,
int);
138 void SetEventTranslation(
int widgetState,
unsigned long interactionEvent,
int modifiers,
unsigned long widgetEvent);
140 void SetEventTranslationClickAndDrag(
int widgetState,
unsigned long startInteractionEvent,
int modifiers,
141 int widgetStateDragging,
unsigned long widgetStartEvent,
unsigned long widgetEndEvent);
145 void SetEventTranslation(
unsigned long interactionEvent,
int modifiers,
unsigned long widgetEvent);
149 void SetKeyboardEventTranslation(
int modifier,
char keyCode,
int repeatCount,
const char* keySym,
unsigned long widgetEvent);
153 void SetKeyboardEventTranslation(
int widgetState,
int modifier,
char keyCode,
int repeatCount,
const char* keySym,
unsigned long widgetEvent);
161 void SetRenderer(vtkRenderer* renderer);
162 vtkRenderer* GetRenderer();
167 virtual int GetMouseCursor();
170 virtual bool GetGrabFocus();
173 virtual bool GetInteractive();
176 virtual bool GetNeedToRender();
179 virtual void NeedToRenderOff();
181 virtual vtkWidgetEventTranslator* GetEventTranslator(
int widgetState);
183 virtual int GetNumberOfEventTranslators();
194 unsigned long TranslateInteractionEventToWidgetEvent(
216 vtkSmartPointer<vtkMRMLAbstractWidgetRepresentation>
WidgetRep;
Abstract MRML node to represent a view. The class holds the properties common to any view type (3D...
Abstract Superclass for all specific types of MRML nodes.