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
48
void
SetColorTransferFunction(
vtkColorTransferFunction
*
function
);
49
// Description
50
// Get the piecewise function
51
vtkGetObjectMacro(ColorTransferFunction,
vtkColorTransferFunction
);
53
57
virtual
vtkIdType
AddPoint
(
double
* newPos);
58
62
virtual
vtkIdType
RemovePoint
(
double
* pos);
63
65
67
vtkSetMacro(ColorFill,
bool
);
68
vtkGetMacro(ColorFill,
bool
);
70
71
protected
:
72
vtkColorTransferControlPointsItem
();
73
virtual
~
vtkColorTransferControlPointsItem
();
74
75
virtual
unsigned
long
int
GetControlPointsMTime
();
76
77
virtual
void
DrawPoint
(
vtkContext2D
* painter,
vtkIdType
index
);
78
virtual
int
GetNumberOfPoints
()
const
;
79
virtual
void
GetControlPoint
(
vtkIdType
index
,
double
*
point
);
80
virtual
void
SetControlPoint
(
vtkIdType
index
,
double
*
point
);
81
virtual
void
EditPoint
(
float
tX,
float
tY);
82
83
vtkColorTransferFunction
*
ColorTransferFunction
;
84
85
bool
ColorFill
;
86
private
:
87
vtkColorTransferControlPointsItem
(
const
vtkColorTransferControlPointsItem
&);
// Not implemented.
88
void
operator=(
const
vtkColorTransferControlPointsItem
&);
// Not implemented.
89
};
90
91
#endif
Generated on Thu Mar 13 2014 08:09:42 for VTK by
1.8.1.2