VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Charts
Core
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 "vtkChartsCoreModule.h"
// For export macro
34
#include "
vtkControlPointsItem.h
"
35
36
class
vtkColorTransferFunction
;
37
38
class
VTKCHARTSCORE_EXPORT
vtkColorTransferControlPointsItem
:
public
vtkControlPointsItem
39
{
40
public
:
41
vtkTypeMacro(
vtkColorTransferControlPointsItem
,
vtkControlPointsItem
);
42
virtual
void
PrintSelf
(ostream &os,
vtkIndent
indent);
43
45
static
vtkColorTransferControlPointsItem
*
New
();
46
48
void
SetColorTransferFunction(
vtkColorTransferFunction
*
function
);
50
51
vtkGetObjectMacro(ColorTransferFunction,
vtkColorTransferFunction
);
53
55
virtual
vtkIdType
GetNumberOfPoints
()
const
;
56
60
virtual
void
GetControlPoint
(
vtkIdType
index
,
double
*
point
)
const
;
61
65
virtual
void
SetControlPoint
(
vtkIdType
index
,
double
*
point
);
66
70
virtual
vtkIdType
AddPoint
(
double
* newPos);
71
75
virtual
vtkIdType
RemovePoint
(
double
* pos);
76
78
80
vtkSetMacro(ColorFill,
bool
);
81
vtkGetMacro(ColorFill,
bool
);
83
84
protected
:
85
vtkColorTransferControlPointsItem
();
86
virtual
~
vtkColorTransferControlPointsItem
();
87
88
virtual
void
emitEvent
(
unsigned
long
event,
void
* params);
89
90
virtual
unsigned
long
int
GetControlPointsMTime
();
91
92
virtual
void
DrawPoint
(
vtkContext2D
* painter,
vtkIdType
index
);
93
virtual
void
EditPoint
(
float
tX,
float
tY);
94
95
vtkColorTransferFunction
*
ColorTransferFunction
;
96
97
bool
ColorFill
;
98
private
:
99
vtkColorTransferControlPointsItem
(
const
vtkColorTransferControlPointsItem
&);
// Not implemented.
100
void
operator=(
const
vtkColorTransferControlPointsItem
&);
// Not implemented.
101
};
102
103
#endif
Generated on Thu May 24 2012 22:22:08 for VTK by
1.8.1