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
VTK_CHARTS_EXPORT
#define VTK_CHARTS_EXPORT
Definition:
vtkWin32Header.h:285
vtkControlPointsItem::EditPoint
virtual void EditPoint(float vtkNotUsed(tX), float vtkNotUsed(tY))
vtkControlPointsItem::RemovePoint
virtual vtkIdType RemovePoint(double *pos)
vtkColorTransferControlPointsItem::ColorTransferFunction
vtkColorTransferFunction * ColorTransferFunction
Definition:
vtkColorTransferControlPointsItem.h:83
vtkControlPointsItem
Abstract class for control points items.
Definition:
vtkControlPointsItem.h:38
vtkControlPointsItem::GetControlPoint
virtual void GetControlPoint(vtkIdType index, double *point)=0
vtkControlPointsItem::AddPoint
virtual vtkIdType AddPoint(double *newPos)
vtkIdType
int vtkIdType
Definition:
vtkType.h:255
vtkControlPointsItem::DrawPoint
virtual void DrawPoint(vtkContext2D *painter, vtkIdType index)
vtkContext2D
Class for drawing 2D primitives to a graphical context.
Definition:
vtkContext2D.h:54
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:37
vtkControlPointsItem::GetControlPointsMTime
virtual unsigned long int GetControlPointsMTime()=0
vtkColorTransferControlPointsItem
Control points for vtkColorTransferFunction.
Definition:
vtkColorTransferControlPointsItem.h:37
vtkControlPointsItem::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkControlPointsItem::GetNumberOfPoints
virtual int GetNumberOfPoints() const =0
vtkControlPointsItem::SetControlPoint
virtual void SetControlPoint(vtkIdType index, double *point)=0
vtkColorTransferControlPointsItem::ColorFill
bool ColorFill
Definition:
vtkColorTransferControlPointsItem.h:85
vtkObject::New
static vtkObject * New()
vtkControlPointsItem.h
Generated on Thu Oct 24 2019 21:14:24 for VTK by
1.8.6