Slicer
4.11
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
Process camera manipulation events. More...
#include <Libs/MRML/DisplayableManager/vtkMRMLCameraWidget.h>
Public Member Functions | |
bool | CanProcessInteractionEvent (vtkMRMLInteractionEventData *eventData, double &distance2) override |
Return true if the widget can process the event. More... | |
void | CreateDefaultRepresentation () |
vtkMRMLCameraNode * | GetCameraNode () |
virtual double | GetMotionFactor () |
Defines speed of rotation actions by mouse click-and-drag. More... | |
virtual double | GetMouseWheelMotionFactor () |
Defines step size for mouse wheel actions. More... | |
bool | ProcessInteractionEvent (vtkMRMLInteractionEventData *eventData) override |
Process interaction event. More... | |
void | SetCameraNode (vtkMRMLCameraNode *cameraNode) |
virtual void | SetMotionFactor (double) |
virtual void | SetMouseWheelMotionFactor (double) |
Public Member Functions inherited from vtkMRMLAbstractWidget | |
virtual vtkWidgetEventTranslator * | GetEventTranslator (int widgetState) |
virtual bool | GetGrabFocus () |
vtkMRMLInteractionNode * | GetInteractionNode () |
virtual bool | GetInteractive () |
virtual int | GetMouseCursor () |
vtkMRMLApplicationLogic * | GetMRMLApplicationLogic () |
virtual bool | GetNeedToRender () |
virtual int | GetNumberOfEventTranslators () |
vtkRenderer * | GetRenderer () |
virtual vtkMRMLAbstractWidgetRepresentation * | GetRepresentation () |
Get the representation. More... | |
virtual int | GetWidgetState () |
Convenient method to determine the state of the method. More... | |
virtual void | Leave (vtkMRMLInteractionEventData *eventData) |
Called when the the widget loses the focus. More... | |
virtual void | NeedToRenderOff () |
void | PrintSelf (ostream &os, vtkIndent indent) override |
void | SetEventTranslation (int widgetState, unsigned long interactionEvent, int modifiers, unsigned long widgetEvent) |
void | SetEventTranslation (unsigned long interactionEvent, int modifiers, unsigned long widgetEvent) |
void | SetEventTranslationClickAndDrag (int widgetState, unsigned long startInteractionEvent, int modifiers, int widgetStateDragging, unsigned long widgetStartEvent, unsigned long widgetEndEvent) |
void | SetKeyboardEventTranslation (int modifier, char keyCode, int repeatCount, const char *keySym, unsigned long widgetEvent) |
void | SetKeyboardEventTranslation (int widgetState, int modifier, char keyCode, int repeatCount, const char *keySym, unsigned long widgetEvent) |
virtual void | SetMRMLApplicationLogic (vtkMRMLApplicationLogic *applicationLogic) |
void | SetRenderer (vtkRenderer *renderer) |
virtual void | SetRepresentation (vtkMRMLAbstractWidgetRepresentation *r) |
virtual void | SetWidgetState (int) |
Convenient method to change what state the widget is in. More... | |
virtual unsigned long | TranslateInteractionEventToWidgetEvent (vtkMRMLInteractionEventData *eventData) |
Get widget event from translation event. More... | |
virtual void | UpdateFromMRML (vtkMRMLNode *caller, unsigned long event, void *callData=nullptr) |
Build the actors of the representation with the info stored in the MRML scene. More... | |
Static Public Member Functions | |
static vtkMRMLCameraWidget * | New () |
Static Public Member Functions inherited from vtkMRMLAbstractWidget | |
static int | IsTypeOf (const char *type) |
static vtkMRMLAbstractWidget * | SafeDownCast (vtkObject *o) |
Protected Attributes | |
vtkWeakPointer< vtkMRMLCameraNode > | CameraNode |
bool | ModifierKeyPressedSinceLastMouseButtonRelease |
double | MotionFactor |
double | MouseWheelMotionFactor |
int | PreviousEventPosition [2] |
double | StartEventPosition [2] |
Protected Attributes inherited from vtkMRMLAbstractWidget | |
vtkWeakPointer< vtkMRMLApplicationLogic > | ApplicationLogic |
std::vector< vtkSmartPointer< vtkWidgetEventTranslator > > | EventTranslators |
vtkWeakPointer< vtkRenderer > | Renderer |
vtkSmartPointer< vtkMRMLAbstractWidgetRepresentation > | WidgetRep |
int | WidgetState |
typedef vtkMRMLAbstractWidget | Superclass |
static int | IsTypeOf (const char *type) |
static vtkMRMLCameraWidget * | SafeDownCast (vtkObject *o) |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) override |
Process camera manipulation events.
This widget does not have a visible representation, only translates and processes camera manipulation (rotate, translate, etc.) events. It is implemented as a widget instead of an interactor style so that mouse and keyboard interaction events can be dynamically remapped to camera manipulation actions and to process all kinds of interaction events (camera manipulation, markups manipulation, ...) in a similar way.
Definition at line 41 of file vtkMRMLCameraWidget.h.
Standard VTK class macros.
Definition at line 53 of file vtkMRMLCameraWidget.h.
anonymous enum |
Widget states.
Enumerator | |
---|---|
WidgetStateFollowCursor | |
WidgetStateSpin | |
WidgetStateTouchGesture |
Definition at line 72 of file vtkMRMLCameraWidget.h.
anonymous enum |
Widget events.
Definition at line 80 of file vtkMRMLCameraWidget.h.
|
protected |
|
overrideprotected |
|
protected |
|
protected |
|
overridevirtual |
Return true if the widget can process the event.
Reimplemented from vtkMRMLAbstractWidget.
void vtkMRMLCameraWidget::CreateDefaultRepresentation | ( | ) |
Create the default widget representation if one is not set.
|
protected |
|
protected |
vtkMRMLCameraNode* vtkMRMLCameraWidget::GetCameraNode | ( | ) |
|
virtual |
Reimplemented from vtkMRMLAbstractWidget.
|
virtual |
Defines speed of rotation actions by mouse click-and-drag.
|
virtual |
Defines step size for mouse wheel actions.
|
virtual |
Reimplemented from vtkMRMLAbstractWidget.
|
static |
|
static |
Instantiate this class.
|
override |
|
protected |
|
overridevirtual |
Process interaction event.
Reimplemented from vtkMRMLAbstractWidget.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
|
protected |
void vtkMRMLCameraWidget::SetCameraNode | ( | vtkMRMLCameraNode * | cameraNode | ) |
|
virtual |
|
virtual |
|
protected |
Definition at line 166 of file vtkMRMLCameraWidget.h.
|
protected |
Indicates whether the shift key was used during the previous action. This is used to require shift-up before returning to default mode.
Definition at line 173 of file vtkMRMLCameraWidget.h.
|
protected |
Definition at line 163 of file vtkMRMLCameraWidget.h.
|
protected |
Definition at line 164 of file vtkMRMLCameraWidget.h.
|
protected |
Definition at line 169 of file vtkMRMLCameraWidget.h.
|
protected |
Definition at line 168 of file vtkMRMLCameraWidget.h.