VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Charts
vtkPiecewiseControlPointsItem.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkPiecewiseControlPointsItem.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
33
#ifndef __vtkPiecewiseControlPointsItem_h
34
#define __vtkPiecewiseControlPointsItem_h
35
36
#include "
vtkControlPointsItem.h
"
37
38
class
vtkPiecewiseFunction
;
39
40
class
VTK_CHARTS_EXPORT
vtkPiecewiseControlPointsItem
:
public
vtkControlPointsItem
41
{
42
public
:
43
vtkTypeMacro(
vtkPiecewiseControlPointsItem
,
vtkControlPointsItem
);
44
virtual
void
PrintSelf
(ostream &os,
vtkIndent
indent);
45
47
static
vtkPiecewiseControlPointsItem
*
New
();
48
50
virtual
void
SetPiecewiseFunction(
vtkPiecewiseFunction
*
function
);
52
53
vtkGetObjectMacro(PiecewiseFunction,
vtkPiecewiseFunction
);
55
59
virtual
vtkIdType
AddPoint
(
double
* newPos);
60
64
virtual
vtkIdType
RemovePoint
(
double
* pos);
65
67
69
vtkSetMacro(StrokeMode,
bool
);
71
72
protected
:
73
vtkPiecewiseControlPointsItem
();
74
virtual
~
vtkPiecewiseControlPointsItem
();
75
76
virtual
void
emitEvent
(
unsigned
long
event,
void
* params = 0);
77
78
virtual
unsigned
long
int
GetControlPointsMTime
();
79
80
virtual
vtkIdType
GetNumberOfPoints
()
const
;
81
virtual
void
GetControlPoint
(
vtkIdType
index
,
double
*
point
)
const
;
82
virtual
void
SetControlPoint
(
vtkIdType
index
,
double
*
point
);
83
virtual
void
EditPoint
(
float
tX,
float
tY);
84
85
vtkPiecewiseFunction
*
PiecewiseFunction
;
86
87
private
:
88
vtkPiecewiseControlPointsItem
(
const
vtkPiecewiseControlPointsItem
&);
// Not implemented.
89
void
operator=(
const
vtkPiecewiseControlPointsItem
&);
// Not implemented.
90
};
91
92
#endif
Generated on Tue Jan 8 2013 05:45:22 for VTK by
1.8.1.2