VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
vtkContextInteractorStyle Class Reference

An interactor for chart views. More...

#include <vtkContextInteractorStyle.h>

Inheritance diagram for vtkContextInteractorStyle:
[legend]
Collaboration diagram for vtkContextInteractorStyle:
[legend]

Public Types

typedef vtkInteractorStyle Superclass
 
- Public Types inherited from vtkInteractorStyle
typedef vtkInteractorObserver Superclass
 
- Public Types inherited from vtkInteractorObserver
typedef vtkObject Superclass
 

Public Member Functions

virtual vtkTypeBool IsA (const char *type)
 Return 1 if this class is the same type of (or a subclass of) the named class. More...
 
vtkContextInteractorStyleNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent) override
 Methods invoked by print to print information about the object including superclasses. More...
 
void SetScene (vtkContextScene *scene)
 Set the scene to forward user events to. More...
 
vtkContextSceneGetScene ()
 Return the observed scene. More...
 
virtual void OnSceneModified ()
 Called when the scene is modified. More...
 
void OnMouseMove () override
 Called when the user moves the mouse Default behavior forwards the event to the observed scene. More...
 
void OnLeftButtonDown () override
 Called when the user clicks the mouse left button. More...
 
void OnLeftButtonUp () override
 Called when the user releases the mouse left button. More...
 
void OnMiddleButtonDown () override
 Called when the user clicks the mouse middle button. More...
 
void OnMiddleButtonUp () override
 Called when the user releases the mouse middle button. More...
 
void OnRightButtonDown () override
 Called when the user clicks the mouse right button. More...
 
void OnRightButtonUp () override
 Called when the user releases the mouse right button. More...
 
void OnMouseWheelForward () override
 Called when the user moves the mouse wheel forward. More...
 
void OnMouseWheelBackward () override
 Called when the user moves the mouse wheel backward. More...
 
virtual void OnSelection (unsigned int rect[5])
 Place holder for future implementation. More...
 
void OnChar () override
 Handle key presses. More...
 
void OnKeyPress () override
 Called when the user presses a key. More...
 
void OnKeyRelease () override
 Called when the user releases a key. More...
 
- Public Member Functions inherited from vtkInteractorStyle
vtkInteractorStyleNewInstance () const
 
void SetInteractor (vtkRenderWindowInteractor *interactor) override
 Set/Get the Interactor wrapper being controlled by this object. More...
 
void SetEnabled (int) override
 Turn on/off this interactor. More...
 
void FindPokedRenderer (int, int)
 When an event occurs, we must determine which Renderer the event occurred within, since one RenderWindow may contain multiple renderers. More...
 
virtual void OnFourthButtonDown ()
 
virtual void OnFourthButtonUp ()
 
virtual void OnFifthButtonDown ()
 
virtual void OnFifthButtonUp ()
 
virtual void OnMove3D (vtkEventData *)
 Generic 3D event bindings can be overridden in subclasses. More...
 
virtual void OnButton3D (vtkEventData *)
 
virtual void OnKeyDown ()
 
virtual void OnKeyUp ()
 
virtual void OnExpose ()
 These are more esoteric events, but are useful in some cases. More...
 
virtual void OnConfigure ()
 
virtual void OnEnter ()
 
virtual void OnLeave ()
 
virtual void OnTimer ()
 OnTimer calls Rotate, Rotate etc which should be overridden by style subclasses. More...
 
virtual void Rotate ()
 These methods for the different interactions in different modes are overridden in subclasses to perform the correct motion. More...
 
virtual void Spin ()
 
virtual void Pan ()
 
virtual void Dolly ()
 
virtual void Zoom ()
 
virtual void UniformScale ()
 
virtual void OnPinch ()
 gesture based events More...
 
virtual void OnRotate ()
 
virtual void OnPan ()
 
virtual void OnTap ()
 
virtual void OnLongTap ()
 
virtual void OnSwipe ()
 
void DelegateTDxEvent (unsigned long event, void *calldata)
 Called by the callback to process 3DConnexion device events. More...
 
virtual void SetAutoAdjustCameraClippingRange (vtkTypeBool)
 If AutoAdjustCameraClippingRange is on, then before each render the camera clipping range will be adjusted to "fit" the whole scene. More...
 
virtual vtkTypeBool GetAutoAdjustCameraClippingRange ()
 If AutoAdjustCameraClippingRange is on, then before each render the camera clipping range will be adjusted to "fit" the whole scene. More...
 
virtual void AutoAdjustCameraClippingRangeOn ()
 If AutoAdjustCameraClippingRange is on, then before each render the camera clipping range will be adjusted to "fit" the whole scene. More...
 
virtual void AutoAdjustCameraClippingRangeOff ()
 If AutoAdjustCameraClippingRange is on, then before each render the camera clipping range will be adjusted to "fit" the whole scene. More...
 
virtual int GetState ()
 Some useful information for interaction. More...
 
virtual vtkTypeBool GetUseTimers ()
 Set/Get timer hint. More...
 
virtual void SetUseTimers (vtkTypeBool)
 Set/Get timer hint. More...
 
virtual void UseTimersOn ()
 Set/Get timer hint. More...
 
virtual void UseTimersOff ()
 Set/Get timer hint. More...
 
virtual void SetTimerDuration (unsigned long)
 If using timers, specify the default timer interval (in milliseconds). More...
 
virtual unsigned long GetTimerDuration ()
 If using timers, specify the default timer interval (in milliseconds). More...
 
virtual void SetHandleObservers (vtkTypeBool)
 Does ProcessEvents handle observers on this class or not. More...
 
virtual vtkTypeBool GetHandleObservers ()
 Does ProcessEvents handle observers on this class or not. More...
 
virtual void HandleObserversOn ()
 Does ProcessEvents handle observers on this class or not. More...
 
virtual void HandleObserversOff ()
 Does ProcessEvents handle observers on this class or not. More...
 
virtual void StartState (int newstate)
 utility routines used by state changes More...
 
virtual void StopState ()
 utility routines used by state changes More...
 
virtual void StartAnimate ()
 Interaction mode entry points used internally. More...
 
virtual void StopAnimate ()
 Interaction mode entry points used internally. More...
 
virtual void StartRotate ()
 Interaction mode entry points used internally. More...
 
virtual void EndRotate ()
 Interaction mode entry points used internally. More...
 
virtual void StartZoom ()
 Interaction mode entry points used internally. More...
 
virtual void EndZoom ()
 Interaction mode entry points used internally. More...
 
virtual void StartPan ()
 Interaction mode entry points used internally. More...
 
virtual void EndPan ()
 Interaction mode entry points used internally. More...
 
virtual void StartSpin ()
 Interaction mode entry points used internally. More...
 
virtual void EndSpin ()
 Interaction mode entry points used internally. More...
 
virtual void StartDolly ()
 Interaction mode entry points used internally. More...
 
virtual void EndDolly ()
 Interaction mode entry points used internally. More...
 
virtual void StartUniformScale ()
 Interaction mode entry points used internally. More...
 
virtual void EndUniformScale ()
 Interaction mode entry points used internally. More...
 
virtual void StartTimer ()
 Interaction mode entry points used internally. More...
 
virtual void EndTimer ()
 Interaction mode entry points used internally. More...
 
virtual void StartTwoPointer ()
 Interaction mode entry points used internally. More...
 
virtual void EndTwoPointer ()
 Interaction mode entry points used internally. More...
 
virtual void HighlightProp (vtkProp *prop)
 When picking successfully selects an actor, this method highlights the picked prop appropriately. More...
 
virtual void HighlightActor2D (vtkActor2D *actor2D)
 When picking successfully selects an actor, this method highlights the picked prop appropriately. More...
 
virtual void HighlightProp3D (vtkProp3D *prop3D)
 When picking successfully selects an actor, this method highlights the picked prop appropriately. More...
 
virtual void SetPickColor (double, double, double)
 Set/Get the pick color (used by default to color vtkActor2D's). More...
 
virtual void SetPickColor (double[3])
 Set/Get the pick color (used by default to color vtkActor2D's). More...
 
virtual doubleGetPickColor ()
 Set/Get the pick color (used by default to color vtkActor2D's). More...
 
virtual void GetPickColor (double data[3])
 Set/Get the pick color (used by default to color vtkActor2D's). More...
 
virtual void SetMouseWheelMotionFactor (double)
 Set/Get the mouse wheel motion factor. More...
 
virtual double GetMouseWheelMotionFactor ()
 Set/Get the mouse wheel motion factor. More...
 
virtual vtkTDxInteractorStyleGetTDxStyle ()
 3Dconnexion device interactor style. More...
 
virtual void SetTDxStyle (vtkTDxInteractorStyle *tdxStyle)
 3Dconnexion device interactor style. More...
 
- Public Member Functions inherited from vtkInteractorObserver
vtkInteractorObserverNewInstance () const
 
int GetEnabled ()
 
void EnabledOn ()
 
void EnabledOff ()
 
void On ()
 
void Off ()
 
virtual vtkRenderWindowInteractorGetInteractor ()
 This method is used to associate the widget with the render window interactor. More...
 
virtual void SetPriority (float)
 Set/Get the priority at which events are processed. More...
 
virtual float GetPriority ()
 Set/Get the priority at which events are processed. More...
 
virtual void PickingManagedOn ()
 Enable/Disable the use of a manager to process the picking. More...
 
virtual void PickingManagedOff ()
 Enable/Disable the use of a manager to process the picking. More...
 
virtual void SetPickingManaged (bool managed)
 Enable/Disable the use of a manager to process the picking. More...
 
virtual bool GetPickingManaged ()
 Enable/Disable the use of a manager to process the picking. More...
 
virtual void SetKeyPressActivation (vtkTypeBool)
 Enable/Disable of the use of a keypress to turn on and off the interactor observer. More...
 
virtual vtkTypeBool GetKeyPressActivation ()
 Enable/Disable of the use of a keypress to turn on and off the interactor observer. More...
 
virtual void KeyPressActivationOn ()
 Enable/Disable of the use of a keypress to turn on and off the interactor observer. More...
 
virtual void KeyPressActivationOff ()
 Enable/Disable of the use of a keypress to turn on and off the interactor observer. More...
 
virtual void SetKeyPressActivationValue (char)
 Specify which key press value to use to activate the interactor observer (if key press activation is enabled). More...
 
virtual char GetKeyPressActivationValue ()
 Specify which key press value to use to activate the interactor observer (if key press activation is enabled). More...
 
virtual vtkRendererGetDefaultRenderer ()
 Set/Get the default renderer to use when activating the interactor observer. More...
 
virtual void SetDefaultRenderer (vtkRenderer *)
 Set/Get the default renderer to use when activating the interactor observer. More...
 
virtual vtkRendererGetCurrentRenderer ()
 Set/Get the current renderer. More...
 
virtual void SetCurrentRenderer (vtkRenderer *)
 Set/Get the current renderer. More...
 
void GrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=nullptr)
 These methods enable an interactor observer to exclusively grab all events invoked by its associated vtkRenderWindowInteractor. More...
 
void ReleaseFocus ()
 These methods enable an interactor observer to exclusively grab all events invoked by its associated vtkRenderWindowInteractor. More...
 
- Public Member Functions inherited from vtkObject
 vtkBaseTypeMacro (vtkObject, vtkObjectBase)
 
virtual void DebugOn ()
 Turn debugging output on. More...
 
virtual void DebugOff ()
 Turn debugging output off. More...
 
bool GetDebug ()
 Get the value of the debug flag. More...
 
void SetDebug (bool debugFlag)
 Set the value of the debug flag. More...
 
virtual void Modified ()
 Update the modification time for this object. More...
 
virtual vtkMTimeType GetMTime ()
 Return this object's modified time. More...
 
void RemoveObserver (unsigned long tag)
 
void RemoveObservers (unsigned long event)
 
void RemoveObservers (const char *event)
 
void RemoveAllObservers ()
 
vtkTypeBool HasObserver (unsigned long event)
 
vtkTypeBool HasObserver (const char *event)
 
int InvokeEvent (unsigned long event)
 
int InvokeEvent (const char *event)
 
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
vtkCommandGetCommand (unsigned long tag)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
void RemoveObserver (vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
void RemoveObservers (unsigned long event, vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
void RemoveObservers (const char *event, vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
vtkTypeBool HasObserver (unsigned long event, vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
vtkTypeBool HasObserver (const char *event, vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 Overloads to AddObserver that allow developers to add class member functions as callbacks for events. More...
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 Overloads to AddObserver that allow developers to add class member functions as callbacks for events. More...
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 Allow user to set the AbortFlagOn() with the return value of the callback method. More...
 
int InvokeEvent (unsigned long event, void *callData)
 This method invokes an event and return whether the event was aborted or not. More...
 
int InvokeEvent (const char *event, void *callData)
 This method invokes an event and return whether the event was aborted or not. More...
 
- Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
 Return the class name as a string. More...
 
virtual void Delete ()
 Delete a VTK object. More...
 
virtual void FastDelete ()
 Delete a reference to this object. More...
 
void InitializeObjectBase ()
 
void Print (ostream &os)
 Print an object to an ostream. More...
 
virtual void Register (vtkObjectBase *o)
 Increase the reference count (mark as used by another object). More...
 
virtual void UnRegister (vtkObjectBase *o)
 Decrease the reference count (release by another object). More...
 
int GetReferenceCount ()
 Return the current reference count of this object. More...
 
void SetReferenceCount (int)
 Sets the reference count. More...
 
void PrintRevisions (ostream &)
 Legacy. More...
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 Methods invoked by print to print information about the object including superclasses. More...
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 Methods invoked by print to print information about the object including superclasses. More...
 

Static Public Member Functions

static vtkContextInteractorStyleNew ()
 
static vtkTypeBool IsTypeOf (const char *type)
 
static vtkContextInteractorStyleSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkInteractorStyle
static vtkInteractorStyleNew ()
 This class must be supplied with a vtkRenderWindowInteractor wrapper or parent. More...
 
static vtkTypeBool IsTypeOf (const char *type)
 
static vtkInteractorStyleSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkInteractorObserver
static vtkTypeBool IsTypeOf (const char *type)
 
static vtkInteractorObserverSafeDownCast (vtkObjectBase *o)
 
static void ComputeDisplayToWorld (vtkRenderer *ren, double x, double y, double z, double worldPt[4])
 Convenience methods for outside classes. More...
 
static void ComputeWorldToDisplay (vtkRenderer *ren, double x, double y, double z, double displayPt[3])
 Convenience methods for outside classes. More...
 
- Static Public Member Functions inherited from vtkObject
static vtkObjectNew ()
 Create an object with Debug turned off, modified time initialized to zero, and reference counting on. More...
 
static void BreakOnError ()
 This method is called when vtkErrorMacro executes. More...
 
static void SetGlobalWarningDisplay (int val)
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
static void GlobalWarningDisplayOn ()
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
static void GlobalWarningDisplayOff ()
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
static int GetGlobalWarningDisplay ()
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
- Static Public Member Functions inherited from vtkObjectBase
static vtkTypeBool IsTypeOf (const char *name)
 Return 1 if this class type is the same type of (or a subclass of) the named class. More...
 
static vtkObjectBaseNew ()
 Create an object with Debug turned off, modified time initialized to zero, and reference counting on. More...
 

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 
 vtkContextInteractorStyle ()
 
 ~vtkContextInteractorStyle () override
 
virtual void RenderNow ()
 
void BeginProcessingEvent ()
 Inform the interactor style that an event is being processed. More...
 
void EndProcessingEvent ()
 Inform the interactor style that an event is finished to be processed. More...
 
- Protected Member Functions inherited from vtkInteractorStyle
 vtkInteractorStyle ()
 
 ~vtkInteractorStyle () override
 
- Protected Member Functions inherited from vtkInteractorObserver
 vtkInteractorObserver ()
 
 ~vtkInteractorObserver () override
 
virtual void RegisterPickers ()
 Register internal Pickers in the Picking Manager. More...
 
void UnRegisterPickers ()
 Unregister internal pickers from the Picking Manager. More...
 
vtkPickingManagerGetPickingManager ()
 Return the picking manager associated on the context on which the observer currently belong. More...
 
vtkAssemblyPathGetAssemblyPath (double X, double Y, double Z, vtkAbstractPropPicker *picker)
 Proceed to a pick, whether through the PickingManager if the picking is managed or directly using the picker, and return the assembly path. More...
 
int RequestCursorShape (int requestedShape)
 
virtual void StartInteraction ()
 Utility routines used to start and end interaction. More...
 
virtual void EndInteraction ()
 Utility routines used to start and end interaction. More...
 
void ComputeDisplayToWorld (double x, double y, double z, double worldPt[4])
 Helper method for subclasses. More...
 
void ComputeWorldToDisplay (double x, double y, double z, double displayPt[3])
 Helper method for subclasses. More...
 
- Protected Member Functions inherited from vtkObject
 vtkObject ()
 
 ~vtkObject () override
 
void RegisterInternal (vtkObjectBase *, vtkTypeBool check) override
 
void UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) override
 
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=nullptr)
 These methods allow a command to exclusively grab all events. More...
 
void InternalReleaseFocus ()
 These methods allow a command to exclusively grab all events. More...
 
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
 
virtual ~vtkObjectBase ()
 
virtual void CollectRevisions (ostream &)
 
virtual void ReportReferences (vtkGarbageCollector *)
 
 vtkObjectBase (const vtkObjectBase &)
 
void operator= (const vtkObjectBase &)
 

Static Protected Member Functions

static void ProcessSceneEvents (vtkObject *object, unsigned long event, void *clientdata, void *calldata)
 
static void ProcessInteractorEvents (vtkObject *object, unsigned long event, void *clientdata, void *calldata)
 
- Static Protected Member Functions inherited from vtkInteractorStyle
static void ProcessEvents (vtkObject *object, unsigned long event, void *clientdata, void *calldata)
 Main process event method. More...
 
- Static Protected Member Functions inherited from vtkInteractorObserver
static void ProcessEvents (vtkObject *object, unsigned long event, void *clientdata, void *calldata)
 Handles the char widget activation event. More...
 

Protected Attributes

vtkWeakPointer< vtkContextSceneScene
 
vtkNew< vtkCallbackCommandSceneCallbackCommand
 
vtkNew< vtkCallbackCommandInteractorCallbackCommand
 
int ProcessingEvents
 
vtkMTimeType LastSceneRepaintMTime
 
int SceneTimerId
 
bool TimerCallbackInitialized
 
- Protected Attributes inherited from vtkInteractorStyle
int State
 
int AnimState
 
vtkTypeBool HandleObservers
 
vtkTypeBool UseTimers
 
int TimerId
 
vtkTypeBool AutoAdjustCameraClippingRange
 
vtkOutlineSourceOutline
 
vtkPolyDataMapperOutlineMapper
 
vtkActorOutlineActor
 
vtkRendererPickedRenderer
 
vtkPropCurrentProp
 
vtkActor2DPickedActor2D
 
int PropPicked
 
double PickColor [3]
 
double MouseWheelMotionFactor
 
unsigned long TimerDuration
 
vtkEventForwarderCommandEventForwarder
 
vtkTDxInteractorStyleTDxStyle
 
- Protected Attributes inherited from vtkInteractorObserver
int Enabled
 
vtkCallbackCommandEventCallbackCommand
 
vtkCallbackCommandKeyPressCallbackCommand
 
float Priority
 
bool PickingManaged
 
vtkTypeBool KeyPressActivation
 
char KeyPressActivationValue
 
vtkRenderWindowInteractorInteractor
 
vtkRendererCurrentRenderer
 
vtkRendererDefaultRenderer
 
unsigned long CharObserverTag
 
unsigned long DeleteObserverTag
 
vtkObserverMediatorObserverMediator
 
- Protected Attributes inherited from vtkObject
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt32 ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 

Detailed Description

An interactor for chart views.

It observes the user events (mouse events) and propagates them to the scene. If the scene doesn't eat the event, it is propagated to the interactor style superclass.

Tests:
vtkContextInteractorStyle (Tests)

Definition at line 39 of file vtkContextInteractorStyle.h.

Member Typedef Documentation

Definition at line 43 of file vtkContextInteractorStyle.h.

Constructor & Destructor Documentation

vtkContextInteractorStyle::vtkContextInteractorStyle ( )
protected
vtkContextInteractorStyle::~vtkContextInteractorStyle ( )
overrideprotected

Member Function Documentation

static vtkContextInteractorStyle* vtkContextInteractorStyle::New ( )
static
static vtkTypeBool vtkContextInteractorStyle::IsTypeOf ( const char *  type)
static
virtual vtkTypeBool vtkContextInteractorStyle::IsA ( const char *  name)
virtual

Return 1 if this class is the same type of (or a subclass of) the named class.

Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkInteractorStyle.

static vtkContextInteractorStyle* vtkContextInteractorStyle::SafeDownCast ( vtkObjectBase o)
static
virtual vtkObjectBase* vtkContextInteractorStyle::NewInstanceInternal ( ) const
protectedvirtual

Reimplemented from vtkInteractorStyle.

vtkContextInteractorStyle* vtkContextInteractorStyle::NewInstance ( ) const
void vtkContextInteractorStyle::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
overridevirtual

Methods invoked by print to print information about the object including superclasses.

Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkInteractorStyle.

void vtkContextInteractorStyle::SetScene ( vtkContextScene scene)

Set the scene to forward user events to.

Refresh the view when the scene is dirty and no event is being processed. The scene is observed (vtkCommand::ModifiedEvent) and a refresh on the view is called appropriately: scene is dirty and no event is being processed.

vtkContextScene* vtkContextInteractorStyle::GetScene ( )

Return the observed scene.

virtual void vtkContextInteractorStyle::OnSceneModified ( )
virtual

Called when the scene is modified.

Refresh the scene if needed.

void vtkContextInteractorStyle::OnMouseMove ( )
overridevirtual

Called when the user moves the mouse Default behavior forwards the event to the observed scene.

Reimplemented from vtkInteractorStyle.

void vtkContextInteractorStyle::OnLeftButtonDown ( )
overridevirtual

Called when the user clicks the mouse left button.

Default behavior forwards the event to the observed scene.

Reimplemented from vtkInteractorStyle.

void vtkContextInteractorStyle::OnLeftButtonUp ( )
overridevirtual

Called when the user releases the mouse left button.

Default behavior forwards the event to the observed scene.

Reimplemented from vtkInteractorStyle.

void vtkContextInteractorStyle::OnMiddleButtonDown ( )
overridevirtual

Called when the user clicks the mouse middle button.

Default behavior forwards the event to the observed scene.

Reimplemented from vtkInteractorStyle.

void vtkContextInteractorStyle::OnMiddleButtonUp ( )
overridevirtual

Called when the user releases the mouse middle button.

Default behavior forwards the event to the observed scene.

Reimplemented from vtkInteractorStyle.

void vtkContextInteractorStyle::OnRightButtonDown ( )
overridevirtual

Called when the user clicks the mouse right button.

Default behavior forwards the event to the observed scene.

Reimplemented from vtkInteractorStyle.

void vtkContextInteractorStyle::OnRightButtonUp ( )
overridevirtual

Called when the user releases the mouse right button.

Default behavior forwards the event to the observed scene.

Reimplemented from vtkInteractorStyle.

void vtkContextInteractorStyle::OnMouseWheelForward ( )
overridevirtual

Called when the user moves the mouse wheel forward.

Default behavior forwards the event to the observed scene.

Reimplemented from vtkInteractorStyle.

void vtkContextInteractorStyle::OnMouseWheelBackward ( )
overridevirtual

Called when the user moves the mouse wheel backward.

Default behavior forwards the event to the observed scene.

Reimplemented from vtkInteractorStyle.

virtual void vtkContextInteractorStyle::OnSelection ( unsigned int  rect[5])
virtual

Place holder for future implementation.

Default behavior forwards the event to the observed scene.

void vtkContextInteractorStyle::OnChar ( )
overridevirtual

Handle key presses.

Reimplemented from vtkInteractorStyle.

void vtkContextInteractorStyle::OnKeyPress ( )
overridevirtual

Called when the user presses a key.

Reimplemented from vtkInteractorStyle.

void vtkContextInteractorStyle::OnKeyRelease ( )
overridevirtual

Called when the user releases a key.

Reimplemented from vtkInteractorStyle.

static void vtkContextInteractorStyle::ProcessSceneEvents ( vtkObject object,
unsigned long  event,
void *  clientdata,
void *  calldata 
)
staticprotected
static void vtkContextInteractorStyle::ProcessInteractorEvents ( vtkObject object,
unsigned long  event,
void *  clientdata,
void *  calldata 
)
staticprotected
virtual void vtkContextInteractorStyle::RenderNow ( )
protectedvirtual
void vtkContextInteractorStyle::BeginProcessingEvent ( )
protected

Inform the interactor style that an event is being processed.

That way is knows to not refresh the view (the view will eventually be refreshed at the end.

void vtkContextInteractorStyle::EndProcessingEvent ( )
protected

Inform the interactor style that an event is finished to be processed.

If no other event is being processed it check if the scene needs to be rendered (scene is dirty)

Member Data Documentation

vtkWeakPointer<vtkContextScene> vtkContextInteractorStyle::Scene
protected

Definition at line 166 of file vtkContextInteractorStyle.h.

vtkNew<vtkCallbackCommand> vtkContextInteractorStyle::SceneCallbackCommand
protected

Definition at line 167 of file vtkContextInteractorStyle.h.

vtkNew<vtkCallbackCommand> vtkContextInteractorStyle::InteractorCallbackCommand
protected

Definition at line 168 of file vtkContextInteractorStyle.h.

int vtkContextInteractorStyle::ProcessingEvents
protected

Definition at line 169 of file vtkContextInteractorStyle.h.

vtkMTimeType vtkContextInteractorStyle::LastSceneRepaintMTime
protected

Definition at line 170 of file vtkContextInteractorStyle.h.

int vtkContextInteractorStyle::SceneTimerId
protected

Definition at line 172 of file vtkContextInteractorStyle.h.

bool vtkContextInteractorStyle::TimerCallbackInitialized
protected

Definition at line 173 of file vtkContextInteractorStyle.h.


The documentation for this class was generated from the following file: