VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Charts
vtkContextInteractorStyle.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkContextInteractorStyle.h
5
6
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7
All rights reserved.
8
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10
This software is distributed WITHOUT ANY WARRANTY; without even
11
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
PURPOSE. See the above copyright notice for more information.
13
14
=========================================================================*/
24
#ifndef __vtkContextInteractorStyle_h
25
#define __vtkContextInteractorStyle_h
26
27
#include "vtkInteractorStyle.h"
28
29
class
vtkContextScene
;
30
31
class
VTK_CHARTS_EXPORT
vtkContextInteractorStyle
:
public
vtkInteractorStyle
32
{
33
public
:
34
static
vtkContextInteractorStyle
*New();
35
vtkTypeMacro(
vtkContextInteractorStyle
, vtkInteractorStyle);
36
void
PrintSelf(ostream& os,
vtkIndent
indent);
37
39
43
void
SetScene(
vtkContextScene
* scene);
44
// Description:
45
// Return the observed scene.
46
vtkGetObjectMacro(Scene,
vtkContextScene
);
48
50
virtual
void
OnSceneModified();
51
54
virtual
void
OnMouseMove();
55
58
virtual
void
OnLeftButtonDown();
59
62
virtual
void
OnLeftButtonUp();
63
66
virtual
void
OnMiddleButtonDown();
67
70
virtual
void
OnMiddleButtonUp();
71
74
virtual
void
OnRightButtonDown();
75
78
virtual
void
OnRightButtonUp();
79
82
virtual
void
OnMouseWheelForward();
83
86
virtual
void
OnMouseWheelBackward();
87
90
virtual
void
OnSelection(
unsigned
int
rect[5]);
91
92
protected
:
93
vtkContextInteractorStyle
();
94
~
vtkContextInteractorStyle
();
95
static
void
ProcessSceneEvents(
vtkObject
*
object
,
unsigned
long
event,
96
void
* clientdata,
void
* calldata);
97
101
void
BeginProcessingEvent();
102
106
void
EndProcessingEvent();
107
108
vtkContextScene
*
Scene
;
109
vtkCallbackCommand
*
SceneCallbackCommand
;
110
int
ProcessingEvents
;
111
unsigned
long
int
LastSceneRepaintMTime
;
112
113
private
:
114
vtkContextInteractorStyle
(
const
vtkContextInteractorStyle
&);
// Not implemented
115
void
operator=(
const
vtkContextInteractorStyle
&);
// Not implemented
116
};
117
118
#endif
VTK_CHARTS_EXPORT
#define VTK_CHARTS_EXPORT
Definition:
vtkWin32Header.h:285
vtkObject
abstract base class for most VTK objects
Definition:
vtkObject.h:60
vtkContextInteractorStyle::ProcessingEvents
int ProcessingEvents
Definition:
vtkContextInteractorStyle.h:110
vtkContextInteractorStyle::LastSceneRepaintMTime
unsigned long int LastSceneRepaintMTime
Definition:
vtkContextInteractorStyle.h:111
vtkContextInteractorStyle
An interactor for chart views It observes the user events (mouse events) and propagates them to the s...
Definition:
vtkContextInteractorStyle.h:31
vtkCallbackCommand
supports function callbacks
Definition:
vtkCallbackCommand.h:48
vtkContextScene
Provides a 2D scene for vtkContextItem objects.
Definition:
vtkContextScene.h:46
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:37
vtkContextInteractorStyle::SceneCallbackCommand
vtkCallbackCommand * SceneCallbackCommand
Definition:
vtkContextInteractorStyle.h:109
vtkContextInteractorStyle::Scene
vtkContextScene * Scene
Definition:
vtkContextInteractorStyle.h:108
Generated on Thu Oct 24 2019 21:14:24 for VTK by
1.8.6