VTK
dox
build
vtk6-vWj1Jg
vtk6-6.3.0+dfsg1
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
vtkObject
abstract base class for most VTK objects
Definition:
vtkObject.h:61
vtkAbstractContextItem::Paint
virtual bool Paint(vtkContext2D *painter)
vtkGetMacro
#define vtkGetMacro(name, type)
Definition:
vtkSetGet.h:93
vtkPlot::GetBounds
virtual void GetBounds(double bounds[4])
Definition:
vtkPlot.h:276
vtkScalarsToColorsItem::TextureWidth
int TextureWidth
Definition:
vtkScalarsToColorsItem.h:104
vtkScalarsToColorsItem::Texture
vtkImageData * Texture
Definition:
vtkScalarsToColorsItem.h:105
vtkScalarsToColorsItem
Abstract class for ScalarsToColors items.
Definition:
vtkScalarsToColorsItem.h:39
vtkScalarsToColorsItem::PolyLinePen
vtkPen * PolyLinePen
Definition:
vtkScalarsToColorsItem.h:110
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition:
vtkSetGet.h:642
vtkScalarsToColorsItem::Interpolate
bool Interpolate
Definition:
vtkScalarsToColorsItem.h:106
vtkContext2D
Class for drawing 2D primitives to a graphical context.
Definition:
vtkContext2D.h:56
vtkCallbackCommand
supports function callbacks
Definition:
vtkCallbackCommand.h:49
vtkSetVector4Macro
#define vtkSetVector4Macro(name, type)
Definition:
vtkSetGet.h:322
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:38
vtkPoints2D
represent and manipulate 2D points
Definition:
vtkPoints2D.h:35
vtkImageData
topologically and geometrically regular array of data
Definition:
vtkImageData.h:44
vtkScalarsToColorsItem::Callback
vtkCallbackCommand * Callback
Definition:
vtkScalarsToColorsItem.h:108
vtkGetVector4Macro
#define vtkGetVector4Macro(name, type)
Definition:
vtkSetGet.h:341
vtkScalarsToColorsItem::MaskAboveCurve
bool MaskAboveCurve
Definition:
vtkScalarsToColorsItem.h:111
vtkPen
provides a pen that draws the outlines of shapes drawn by vtkContext2D.
Definition:
vtkPen.h:38
vtkPlot
Abstract class for 2D plots.
Definition:
vtkPlot.h:51
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition:
vtkSetGet.h:232
vtkPlot::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkPlot.h
VTKCHARTSCORE_EXPORT
#define VTKCHARTSCORE_EXPORT
Definition:
vtkChartsCoreModule.h:15
vtkChartsCoreModule.h
vtkSetMacro
#define vtkSetMacro(name, type)
Definition:
vtkSetGet.h:79
vtkScalarsToColorsItem::Shape
vtkPoints2D * Shape
Definition:
vtkScalarsToColorsItem.h:107
Generated by
1.8.13