VTK
dox
opt
build
vtk6-6.3.0+dfsg2
Charts
Core
vtkScalarsToColorsItem.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkScalarsToColorsItem.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
29
#ifndef vtkScalarsToColorsItem_h
30
#define vtkScalarsToColorsItem_h
31
32
#include "
vtkChartsCoreModule.h
"
// For export macro
33
#include "
vtkPlot.h
"
34
35
class
vtkCallbackCommand
;
36
class
vtkImageData
;
37
class
vtkPoints2D
;
38
39
class
VTKCHARTSCORE_EXPORT
vtkScalarsToColorsItem
:
public
vtkPlot
40
{
41
public
:
42
vtkTypeMacro
(
vtkScalarsToColorsItem
,
vtkPlot
);
43
virtual
void
PrintSelf
(ostream &os,
vtkIndent
indent);
44
47
void
GetBounds
(
double
bounds[4]);
48
50
53
vtkSetVector4Macro
(UserBounds,
double
);
54
vtkGetVector4Macro
(UserBounds,
double
)
56
60
virtual
bool
Paint(
vtkContext2D
*painter);
61
63
66
vtkGetObjectMacro
(PolyLinePen,
vtkPen
);
68
70
75
vtkSetMacro
(MaskAboveCurve,
bool
);
76
vtkGetMacro
(MaskAboveCurve,
bool
);
78
79
protected:
80
vtkScalarsToColorsItem
();
81
virtual ~
vtkScalarsToColorsItem
();
82
86
virtual
void
ComputeBounds(
double
* bounds);
87
91
virtual
void
ComputeTexture() = 0;
92
93
vtkGetMacro
(TextureWidth,
int
);
94
96
98
virtual
void
ScalarsToColorsModified(
vtkObject
* caller,
unsigned
long
eid,
void
* calldata);
99
static
void
OnScalarsToColorsModified(
vtkObject
* caller,
unsigned
long
eid,
void
*clientdata,
void
* calldata);
101
102
double
UserBounds[4];
103
104
int
TextureWidth;
105
vtkImageData
* Texture;
106
bool
Interpolate;
107
vtkPoints2D
*
Shape
;
108
vtkCallbackCommand
* Callback;
109
110
vtkPen
* PolyLinePen;
111
bool
MaskAboveCurve;
112
private:
113
vtkScalarsToColorsItem
(const
vtkScalarsToColorsItem
&);
// Not implemented.
114
void
operator=(const
vtkScalarsToColorsItem
&);
// Not implemented.
115
};
116
117
#endif
vtkPoints2D
represent and manipulate 2D points
Definition:
vtkPoints2D.h:36
vtkChartsCoreModule.h
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition:
vtkSetGet.h:232
vtkScalarsToColorsItem
Abstract class for ScalarsToColors items.
Definition:
vtkScalarsToColorsItem.h:40
vtkPlot.h
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition:
vtkSetGet.h:642
vtkX3D::Shape
@ Shape
Definition:
vtkX3D.h:36
vtkObject
abstract base class for most VTK objects
Definition:
vtkObject.h:62
vtkContext2D
Class for drawing 2D primitives to a graphical context.
Definition:
vtkContext2D.h:57
vtkPlot
Abstract class for 2D plots.
Definition:
vtkPlot.h:52
vtkScalarsToColorsItem::GetBounds
void GetBounds(double bounds[4])
vtkScalarsToColorsItem::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkImageData
topologically and geometrically regular array of data
Definition:
vtkImageData.h:45
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:39
vtkGetMacro
#define vtkGetMacro(name, type)
Definition:
vtkSetGet.h:93
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkSetVector4Macro
#define vtkSetVector4Macro(name, type)
Definition:
vtkSetGet.h:322
vtkCallbackCommand
supports function callbacks
Definition:
vtkCallbackCommand.h:50
vtkPen
provides a pen that draws the outlines of shapes drawn by vtkContext2D.
Definition:
vtkPen.h:39
VTKCHARTSCORE_EXPORT
#define VTKCHARTSCORE_EXPORT
Definition:
vtkChartsCoreModule.h:15
vtkGetVector4Macro
#define vtkGetVector4Macro(name, type)
Definition:
vtkSetGet.h:341
Generated by
1.8.20