VTK
9.4.20241221
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
Charts
Core
vtkInteractiveArea.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2
// SPDX-License-Identifier: BSD-3-Clause
3
14
#ifndef vtkInteractiveArea_h
15
#define vtkInteractiveArea_h
16
17
#include "vtkChartsCoreModule.h"
// For export macro
18
#include "
vtkContextArea.h
"
19
#include "
vtkNew.h
"
// For vtkNew
20
#include "
vtkWrappingHints.h
"
// For VTK_MARSHALAUTO
21
22
VTK_ABI_NAMESPACE_BEGIN
23
class
vtkContextTransform
;
24
class
vtkRectd
;
25
26
class
VTKCHARTSCORE_EXPORT
VTK_MARSHALAUTO
vtkInteractiveArea
:
public
vtkContextArea
27
{
28
public
:
29
vtkTypeMacro(
vtkInteractiveArea
,
vtkContextArea
);
30
31
static
vtkInteractiveArea
*
New
();
32
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
33
35
38
bool
Paint
(
vtkContext2D
* painter)
override
;
39
bool
Hit
(
const
vtkContextMouseEvent
& mouse)
override
;
40
bool
MouseWheelEvent
(
const
vtkContextMouseEvent
& mouse,
int
delta)
override
;
41
bool
MouseMoveEvent
(
const
vtkContextMouseEvent
& mouse)
override
;
42
bool
MouseButtonPressEvent
(
const
vtkContextMouseEvent
& mouse)
override
;
44
45
protected
:
46
vtkInteractiveArea
();
47
~vtkInteractiveArea
()
override
;
48
50
53
void
SetAxisRange
(
vtkRectd
const
& data)
override
;
54
55
private
:
59
void
RecalculateTickSpacing(
vtkAxis
* axis,
int
numClicks);
60
64
void
ComputeViewTransform
()
override
;
65
66
void
ComputeZoom(
67
vtkVector2d
const
& origin,
vtkVector2d
& scale,
vtkVector2d
& shift,
vtkVector2d
& factor);
68
69
class
MouseActions;
70
MouseActions* Actions;
71
72
vtkInteractiveArea
(
const
vtkInteractiveArea
&) =
delete
;
73
void
operator=(
const
vtkInteractiveArea
&) =
delete
;
74
};
75
76
VTK_ABI_NAMESPACE_END
77
#endif
// vtkInteractiveArea_h
vtkAxis
takes care of drawing 2D axes
Definition
vtkAxis.h:171
vtkContext2D
Class for drawing 2D primitives to a graphical context.
Definition
vtkContext2D.h:69
vtkContextArea
Clipped, transformed area with axes for context items.
Definition
vtkContextArea.h:48
vtkContextArea::ComputeViewTransform
virtual void ComputeViewTransform()
vtkContextMouseEvent
data structure to represent mouse events.
Definition
vtkContextMouseEvent.h:49
vtkContextTransform
all children of this item are transformed by the vtkTransform2D of this item.
Definition
vtkContextTransform.h:50
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:108
vtkInteractiveArea
Implements zooming and panning in a vtkContextArea.
Definition
vtkInteractiveArea.h:27
vtkInteractiveArea::MouseWheelEvent
bool MouseWheelEvent(const vtkContextMouseEvent &mouse, int delta) override
vtkAbstractContextItem API
vtkInteractiveArea::Hit
bool Hit(const vtkContextMouseEvent &mouse) override
vtkAbstractContextItem API
vtkInteractiveArea::~vtkInteractiveArea
~vtkInteractiveArea() override
vtkInteractiveArea::MouseButtonPressEvent
bool MouseButtonPressEvent(const vtkContextMouseEvent &mouse) override
vtkAbstractContextItem API
vtkInteractiveArea::MouseMoveEvent
bool MouseMoveEvent(const vtkContextMouseEvent &mouse) override
vtkAbstractContextItem API
vtkInteractiveArea::vtkInteractiveArea
vtkInteractiveArea()
vtkInteractiveArea::SetAxisRange
void SetAxisRange(vtkRectd const &data) override
vtkContextArea API
vtkInteractiveArea::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkInteractiveArea::Paint
bool Paint(vtkContext2D *painter) override
vtkAbstractContextItem API
vtkInteractiveArea::New
static vtkInteractiveArea * New()
vtkRectd
Definition
vtkRect.h:342
vtkVector2d
Definition
vtkVector.h:465
vtkContextArea.h
vtkNew.h
vtkWrappingHints.h
VTK_MARSHALAUTO
#define VTK_MARSHALAUTO
Definition
vtkWrappingHints.h:50
Generated on Sat Dec 21 2024 12:51:36 for VTK by
1.9.7