VTK
dox
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
30
#ifndef vtkScalarsToColorsItem_h
31
#define vtkScalarsToColorsItem_h
32
33
#include "vtkChartsCoreModule.h"
// For export macro
34
#include "
vtkPlot.h
"
35
36
class
vtkCallbackCommand
;
37
class
vtkImageData
;
38
class
vtkPoints2D
;
39
40
class
VTKCHARTSCORE_EXPORT
vtkScalarsToColorsItem
:
public
vtkPlot
41
{
42
public
:
43
vtkTypeMacro(
vtkScalarsToColorsItem
,
vtkPlot
);
44
virtual
void
PrintSelf
(ostream &os,
vtkIndent
indent);
45
50
void
GetBounds
(
double
bounds[4]);
51
53
58
vtkSetVector4Macro(UserBounds,
double
);
59
vtkGetVector4Macro(UserBounds,
double
)
61
67
virtual
bool
Paint(
vtkContext2D
*painter);
68
70
75
vtkGetObjectMacro(PolyLinePen,
vtkPen
);
77
79
86
vtkSetMacro
(MaskAboveCurve,
bool
);
87
vtkGetMacro(MaskAboveCurve,
bool
);
89
90
protected:
91
vtkScalarsToColorsItem
();
92
virtual ~
vtkScalarsToColorsItem
();
93
99
virtual
void
ComputeBounds(
double
* bounds);
100
106
virtual
void
ComputeTexture() = 0;
107
108
vtkGetMacro(TextureWidth,
int
);
109
111
115
virtual
void
ScalarsToColorsModified(
vtkObject
* caller,
unsigned
long
eid,
void
* calldata);
116
static
void
OnScalarsToColorsModified(
vtkObject
* caller,
unsigned
long
eid,
void
*clientdata,
void
* calldata);
118
119
double
UserBounds[4];
120
121
int
TextureWidth;
122
vtkImageData
* Texture;
123
bool
Interpolate;
124
vtkPoints2D
*
Shape
;
125
vtkCallbackCommand
* Callback;
126
127
vtkPen
* PolyLinePen;
128
bool
MaskAboveCurve;
129
private:
130
vtkScalarsToColorsItem
(const
vtkScalarsToColorsItem
&) VTK_DELETE_FUNCTION;
131
void
operator=(const
vtkScalarsToColorsItem
&) VTK_DELETE_FUNCTION;
132
};
133
134
#endif
vtkPoints2D
represent and manipulate 2D points
Definition:
vtkPoints2D.h:37
vtkScalarsToColorsItem
Abstract class for ScalarsToColors items.
Definition:
vtkScalarsToColorsItem.h:41
vtkPlot.h
vtkX3D::Shape
@ Shape
Definition:
vtkX3D.h:36
vtkObject
abstract base class for most VTK objects
Definition:
vtkObject.h:60
vtkContext2D
Class for drawing 2D primitives to a graphical context.
Definition:
vtkContext2D.h:58
vtkPlot
Abstract class for 2D plots.
Definition:
vtkPlot.h:53
vtkScalarsToColorsItem::GetBounds
void GetBounds(double bounds[4])
Bounds of the item, use the UserBounds if valid otherwise compute the bounds of the item (based on th...
vtkScalarsToColorsItem::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkImageData
topologically and geometrically regular array of data
Definition:
vtkImageData.h:46
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:40
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkCallbackCommand
supports function callbacks
Definition:
vtkCallbackCommand.h:51
vtkPen
provides a pen that draws the outlines of shapes drawn by vtkContext2D.
Definition:
vtkPen.h:40
Generated by
1.8.20