VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Charts
vtkCompositeControlPointsItem.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkCompositeControlPointsItem.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
31
#ifndef __vtkCompositeControlPointsItem_h
32
#define __vtkCompositeControlPointsItem_h
33
34
#include "
vtkColorTransferControlPointsItem.h
"
35
36
class
vtkPiecewiseFunction
;
37
38
class
VTK_CHARTS_EXPORT
vtkCompositeControlPointsItem
:
39
public
vtkColorTransferControlPointsItem
40
{
41
public
:
42
vtkTypeMacro(
vtkCompositeControlPointsItem
,
vtkColorTransferControlPointsItem
);
43
virtual
void
PrintSelf
(ostream &os,
vtkIndent
indent);
44
46
static
vtkCompositeControlPointsItem
*
New
();
47
49
virtual
void
SetColorTransferFunction
(
vtkColorTransferFunction
*
function
);
50
52
53
void
SetOpacityFunction(
vtkPiecewiseFunction
* opacity);
54
vtkGetObjectMacro(OpacityFunction,
vtkPiecewiseFunction
);
56
60
virtual
vtkIdType
AddPoint
(
double
* newPos);
61
65
virtual
vtkIdType
RemovePoint
(
double
* pos);
66
67
protected
:
68
vtkCompositeControlPointsItem
();
69
virtual
~
vtkCompositeControlPointsItem
();
70
71
virtual
unsigned
long
int
GetControlPointsMTime
();
72
virtual
void
ComputePoints
();
73
74
virtual
void
GetControlPoint
(
vtkIdType
index
,
double
* pos);
75
virtual
void
SetControlPoint
(
vtkIdType
index
,
double
*
point
);
76
virtual
void
EditPoint
(
float
tX,
float
tY);
77
78
void
MergeColorTransferFunction();
79
80
vtkPiecewiseFunction
*
OpacityFunction
;
81
bool
Updating
;
82
private
:
83
vtkCompositeControlPointsItem
(
const
vtkCompositeControlPointsItem
&);
// Not implemented.
84
void
operator=(
const
vtkCompositeControlPointsItem
&);
// Not implemented.
85
};
86
87
#endif
Generated on Fri Aug 2 2013 12:19:46 for VTK by
1.8.4