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);
135 void SetEventTranslation(
int widgetState,
unsigned long interactionEvent,
int modifiers,
unsigned long widgetEvent);
137 void SetEventTranslationClickAndDrag(
int widgetState,
unsigned long startInteractionEvent,
int modifiers,
138 int widgetStateDragging,
unsigned long widgetStartEvent,
unsigned long widgetEndEvent);
142 void SetEventTranslation(
unsigned long interactionEvent,
int modifiers,
unsigned long widgetEvent);
146 void SetKeyboardEventTranslation(
int modifier,
char keyCode,
int repeatCount,
const char* keySym,
unsigned long widgetEvent);
150 void SetKeyboardEventTranslation(
int widgetState,
int modifier,
char keyCode,
int repeatCount,
const char* keySym,
unsigned long widgetEvent);
158 void SetRenderer(vtkRenderer* renderer);
159 vtkRenderer* GetRenderer();
164 virtual int GetMouseCursor();
167 virtual bool GetGrabFocus();
170 virtual bool GetInteractive();
173 virtual bool GetNeedToRender();
176 virtual void NeedToRenderOff();
178 virtual vtkWidgetEventTranslator* GetEventTranslator(
int widgetState);
180 virtual int GetNumberOfEventTranslators();
191 unsigned long TranslateInteractionEventToWidgetEvent(
206 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.