VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Charts
vtkColorTransferControlPointsItem.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkColorTransferControlPointsItem.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
30
#ifndef __vtkColorTransferControlPointsItem_h
31
#define __vtkColorTransferControlPointsItem_h
32
33
#include "
vtkControlPointsItem.h
"
34
35
class
vtkColorTransferFunction
;
36
37
class
VTK_CHARTS_EXPORT
vtkColorTransferControlPointsItem
:
public
vtkControlPointsItem
38
{
39
public
:
40
vtkTypeMacro(
vtkColorTransferControlPointsItem
,
vtkControlPointsItem
);
41
virtual
void
PrintSelf
(ostream &os,
vtkIndent
indent);
42
44
static
vtkColorTransferControlPointsItem
*
New
();
45
47
void
SetColorTransferFunction(
vtkColorTransferFunction
*
function
);
49
50
vtkGetObjectMacro(ColorTransferFunction,
vtkColorTransferFunction
);
52
54
virtual
vtkIdType
GetNumberOfPoints
()
const
;
55
59
virtual
void
GetControlPoint
(
vtkIdType
index
,
double
*
point
)
const
;
60
64
virtual
void
SetControlPoint
(
vtkIdType
index
,
double
*
point
);
65
69
virtual
vtkIdType
AddPoint
(
double
* newPos);
70
74
virtual
vtkIdType
RemovePoint
(
double
* pos);
75
77
79
vtkSetMacro(ColorFill,
bool
);
80
vtkGetMacro(ColorFill,
bool
);
82
83
protected
:
84
vtkColorTransferControlPointsItem
();
85
virtual
~
vtkColorTransferControlPointsItem
();
86
87
virtual
void
emitEvent
(
unsigned
long
event,
void
* params);
88
89
virtual
unsigned
long
int
GetControlPointsMTime
();
90
91
virtual
void
DrawPoint
(
vtkContext2D
* painter,
vtkIdType
index
);
92
virtual
void
EditPoint
(
float
tX,
float
tY);
93
94
vtkColorTransferFunction
*
ColorTransferFunction
;
95
96
bool
ColorFill
;
97
private
:
98
vtkColorTransferControlPointsItem
(
const
vtkColorTransferControlPointsItem
&);
// Not implemented.
99
void
operator=(
const
vtkColorTransferControlPointsItem
&);
// Not implemented.
100
};
101
102
#endif
Generated on Tue Jan 8 2013 05:45:22 for VTK by
1.8.1.2