VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Charts
Core
vtkPiecewisePointHandleItem.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkPiecewisePointHandleItem.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
=========================================================================*/
15
26
#ifndef __vtkPiecewisePointHandleItem_h
27
#define __vtkPiecewisePointHandleItem_h
28
29
#include "vtkChartsCoreModule.h"
// For export macro
30
#include "
vtkContextItem.h
"
31
#include "
vtkWeakPointer.h
"
// Needed for weak pointer to the PiecewiseFunction.
32
33
class
vtkContext2D
;
34
class
vtkPiecewiseFunction
;
35
class
vtkCallbackCommand
;
36
class
vtkAbstractContextItem
;
37
38
class
VTKCHARTSCORE_EXPORT
vtkPiecewisePointHandleItem
:
public
vtkContextItem
39
{
40
public
:
41
vtkTypeMacro(
vtkPiecewisePointHandleItem
,
vtkContextItem
);
42
virtual
void
PrintSelf
(ostream &os,
vtkIndent
indent);
43
44
static
vtkPiecewisePointHandleItem
*
New
();
45
static
void
CallRedraw(
vtkObject
* sender,
unsigned
long
event,
void
* receiver,
void
* params);
46
48
virtual
void
SetParent
(
vtkAbstractContextItem
*parent);
49
51
virtual
bool
Paint
(
vtkContext2D
*painter);
52
54
55
vtkSetMacro(CurrentPointIndex,
vtkIdType
);
56
vtkGetMacro(CurrentPointIndex,
vtkIdType
);
58
60
61
virtual
void
SetPiecewiseFunction(
vtkPiecewiseFunction
* piecewiseFunc);
62
vtkWeakPointer<vtkPiecewiseFunction>
GetPiecewiseFunction();
64
67
int
IsOverHandle(
float
* pos);
68
70
virtual
bool
Hit
(
const
vtkContextMouseEvent
&mouse);
71
73
virtual
bool
MouseMoveEvent
(
const
vtkContextMouseEvent
&mouse);
74
76
virtual
bool
MouseButtonPressEvent
(
const
vtkContextMouseEvent
&mouse);
77
79
virtual
bool
MouseButtonReleaseEvent
(
const
vtkContextMouseEvent
&mouse);
80
81
//BTX
82
protected
:
83
vtkPiecewisePointHandleItem
();
84
~
vtkPiecewisePointHandleItem
();
85
87
virtual
void
Redraw();
88
89
int
MouseOverHandleIndex
;
90
vtkIdType
CurrentPointIndex
;
91
float
HandleRadius
;
92
93
vtkWeakPointer<vtkPiecewiseFunction>
PiecewiseFunction
;
94
vtkCallbackCommand
*
Callback
;
95
96
private
:
97
vtkPiecewisePointHandleItem
(
const
vtkPiecewisePointHandleItem
&);
// Not implemented.
98
void
operator=(
const
vtkPiecewisePointHandleItem
&);
// Not implemented.
99
100
class
InternalPiecewisePointHandleInfo;
101
InternalPiecewisePointHandleInfo* Internal;
102
//ETX
103
};
104
105
#endif //__vtkPiecewisePointHandleItem_h
Generated on Thu May 24 2012 22:22:08 for VTK by
1.8.1