VTK
|
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. More...
#include <vtkContextInteractorStyle.h>
Public Types | |
typedef vtkInteractorStyle | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkContextInteractorStyle * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | SetScene (vtkContextScene *scene) |
vtkContextScene * | GetScene () |
virtual void | OnSceneModified () |
virtual void | OnMouseMove () |
virtual void | OnLeftButtonDown () |
virtual void | OnLeftButtonUp () |
virtual void | OnMiddleButtonDown () |
virtual void | OnMiddleButtonUp () |
virtual void | OnRightButtonDown () |
virtual void | OnRightButtonUp () |
virtual void | OnMouseWheelForward () |
virtual void | OnMouseWheelBackward () |
virtual void | OnSelection (unsigned int rect[5]) |
virtual void | OnChar () |
virtual void | OnKeyPress () |
virtual void | OnKeyRelease () |
Static Public Member Functions | |
static vtkContextInteractorStyle * | New () |
static int | IsTypeOf (const char *type) |
static vtkContextInteractorStyle * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkContextInteractorStyle () | |
~vtkContextInteractorStyle () | |
virtual void | RenderNow () |
void | BeginProcessingEvent () |
void | EndProcessingEvent () |
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) |
Protected Attributes | |
vtkWeakPointer< vtkContextScene > | Scene |
vtkNew< vtkCallbackCommand > | SceneCallbackCommand |
vtkNew< vtkCallbackCommand > | InteractorCallbackCommand |
int | ProcessingEvents |
unsigned long int | LastSceneRepaintMTime |
unsigned long int | TimerId |
bool | TimerCallbackInitialized |
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.
Definition at line 38 of file vtkContextInteractorStyle.h.
Reimplemented from vtkInteractorStyle.
Definition at line 42 of file vtkContextInteractorStyle.h.
vtkContextInteractorStyle::vtkContextInteractorStyle | ( | ) | [protected] |
vtkContextInteractorStyle::~vtkContextInteractorStyle | ( | ) | [protected] |
static vtkContextInteractorStyle* vtkContextInteractorStyle::New | ( | ) | [static] |
This class must be supplied with a vtkRenderWindowInteractor wrapper or parent. This class should not normally be instantiated by application programmers.
Reimplemented from vtkInteractorStyle.
static int vtkContextInteractorStyle::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type 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.
virtual int 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] |
Reimplemented from vtkInteractorStyle.
virtual vtkObjectBase* vtkContextInteractorStyle::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkInteractorStyle.
Reimplemented from vtkInteractorStyle.
void vtkContextInteractorStyle::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
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.
Return the observed scene.
virtual void vtkContextInteractorStyle::OnSceneModified | ( | ) | [virtual] |
Called when the scene is modified. Refresh the scene if needed.
virtual void vtkContextInteractorStyle::OnMouseMove | ( | ) | [virtual] |
Called when the user moves the mouse Default behavior forwards the event to the observed scene.
Reimplemented from vtkInteractorStyle.
virtual void vtkContextInteractorStyle::OnLeftButtonDown | ( | ) | [virtual] |
Called when the user clicks the mouse left button. Default behavior forwards the event to the observed scene.
Reimplemented from vtkInteractorStyle.
virtual void vtkContextInteractorStyle::OnLeftButtonUp | ( | ) | [virtual] |
Called when the user releases the mouse left button. Default behavior forwards the event to the observed scene.
Reimplemented from vtkInteractorStyle.
virtual void vtkContextInteractorStyle::OnMiddleButtonDown | ( | ) | [virtual] |
Called when the user clicks the mouse middle button. Default behavior forwards the event to the observed scene.
Reimplemented from vtkInteractorStyle.
virtual void vtkContextInteractorStyle::OnMiddleButtonUp | ( | ) | [virtual] |
Called when the user releases the mouse middle button. Default behavior forwards the event to the observed scene.
Reimplemented from vtkInteractorStyle.
virtual void vtkContextInteractorStyle::OnRightButtonDown | ( | ) | [virtual] |
Called when the user clicks the mouse right button. Default behavior forwards the event to the observed scene.
Reimplemented from vtkInteractorStyle.
virtual void vtkContextInteractorStyle::OnRightButtonUp | ( | ) | [virtual] |
Called when the user releases the mouse right button. Default behavior forwards the event to the observed scene.
Reimplemented from vtkInteractorStyle.
virtual void vtkContextInteractorStyle::OnMouseWheelForward | ( | ) | [virtual] |
Called when the user moves the mouse wheel forward. Default behavior forwards the event to the observed scene.
Reimplemented from vtkInteractorStyle.
virtual void vtkContextInteractorStyle::OnMouseWheelBackward | ( | ) | [virtual] |
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.
virtual void vtkContextInteractorStyle::OnChar | ( | ) | [virtual] |
Handle key presses.
Reimplemented from vtkInteractorStyle.
virtual void vtkContextInteractorStyle::OnKeyPress | ( | ) | [virtual] |
Called when the user presses a key.
Reimplemented from vtkInteractorStyle.
virtual void vtkContextInteractorStyle::OnKeyRelease | ( | ) | [virtual] |
Called when the user releases a key.
Reimplemented from vtkInteractorStyle.
static void vtkContextInteractorStyle::ProcessSceneEvents | ( | vtkObject * | object, |
unsigned long | event, | ||
void * | clientdata, | ||
void * | calldata | ||
) | [static, protected] |
static void vtkContextInteractorStyle::ProcessInteractorEvents | ( | vtkObject * | object, |
unsigned long | event, | ||
void * | clientdata, | ||
void * | calldata | ||
) | [static, protected] |
virtual void vtkContextInteractorStyle::RenderNow | ( | ) | [protected, virtual] |
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)
Definition at line 128 of file vtkContextInteractorStyle.h.
Definition at line 129 of file vtkContextInteractorStyle.h.
Definition at line 130 of file vtkContextInteractorStyle.h.
int vtkContextInteractorStyle::ProcessingEvents [protected] |
Definition at line 131 of file vtkContextInteractorStyle.h.
unsigned long int vtkContextInteractorStyle::LastSceneRepaintMTime [protected] |
Definition at line 132 of file vtkContextInteractorStyle.h.
unsigned long int vtkContextInteractorStyle::TimerId [protected] |
Reimplemented from vtkInteractorStyle.
Definition at line 134 of file vtkContextInteractorStyle.h.
bool vtkContextInteractorStyle::TimerCallbackInitialized [protected] |
Definition at line 135 of file vtkContextInteractorStyle.h.