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
51
virtual
void
SetPiecewiseFunction(
vtkPiecewiseFunction
*
function
);
52
// Description
53
// Get the piecewise function
54
vtkGetObjectMacro(PiecewiseFunction,
vtkPiecewiseFunction
);
56
60
virtual
vtkIdType
AddPoint
(
double
* newPos);
61
65
virtual
vtkIdType
RemovePoint
(
double
* pos);
66
68
70
vtkSetMacro(StrokeMode,
bool
);
72
73
protected
:
74
vtkPiecewiseControlPointsItem
();
75
virtual
~
vtkPiecewiseControlPointsItem
();
76
77
virtual
unsigned
long
int
GetControlPointsMTime
();
78
79
virtual
int
GetNumberOfPoints
()
const
;
80
virtual
void
GetControlPoint
(
vtkIdType
index
,
double
*
point
);
81
virtual
void
SetControlPoint
(
vtkIdType
index
,
double
*
point
);
82
virtual
void
EditPoint
(
float
tX,
float
tY);
83
84
vtkPiecewiseFunction
*
PiecewiseFunction
;
85
86
private
:
87
vtkPiecewiseControlPointsItem
(
const
vtkPiecewiseControlPointsItem
&);
// Not implemented.
88
void
operator=(
const
vtkPiecewiseControlPointsItem
&);
// Not implemented.
89
};
90
91
#endif
Generated on Wed Nov 21 2012 21:33:39 for VTK by
1.8.2