VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Charts
vtkColorLegend.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkColorLegend.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
23
#ifndef __vtkColorLegend_h
24
#define __vtkColorLegend_h
25
26
#include "
vtkChartLegend.h
"
27
#include "
vtkSmartPointer.h
"
// For SP ivars
28
#include "
vtkVector.h
"
// For vtkRectf
29
30
class
vtkAxis
;
31
class
vtkImageData
;
32
class
vtkScalarsToColors
;
33
class
vtkCallbackCommand
;
34
35
class
VTK_CHARTS_EXPORT
vtkColorLegend
:
public
vtkChartLegend
36
{
37
public
:
38
vtkTypeMacro(
vtkColorLegend
,
vtkChartLegend
);
39
virtual
void
PrintSelf
(ostream &os,
vtkIndent
indent);
40
static
vtkColorLegend
*
New
();
41
44
virtual
void
GetBounds(
double
bounds[4]);
45
49
virtual
void
Update
();
50
54
virtual
bool
Paint
(
vtkContext2D
*painter);
55
56
virtual
void
SetTransferFunction(
vtkScalarsToColors
* transfer);
57
virtual
vtkScalarsToColors
* GetTransferFunction();
58
59
virtual
void
SetPosition(
const
vtkRectf
& pos);
60
virtual
vtkRectf
GetPosition();
61
67
vtkRectf
GetBoundingRect
(
vtkContext2D
* painter);
68
69
protected
:
70
vtkColorLegend
();
71
virtual
~
vtkColorLegend
();
72
76
virtual
void
ComputeTexture();
77
79
81
virtual
void
ScalarsToColorsModified(
vtkObject
* caller,
unsigned
long
eid,
82
void
* calldata);
83
static
void
OnScalarsToColorsModified(
vtkObject
* caller,
unsigned
long
eid,
84
void
*clientdata,
void
* calldata);
86
87
vtkScalarsToColors
*
TransferFunction
;
88
vtkSmartPointer<vtkImageData>
ImageData
;
89
vtkSmartPointer<vtkAxis>
Axis
;
90
vtkSmartPointer<vtkCallbackCommand>
Callback
;
91
bool
Interpolate
;
92
vtkRectf
Position
;
93
94
private
:
95
vtkColorLegend
(
const
vtkColorLegend
&);
// Not implemented.
96
void
operator=(
const
vtkColorLegend
&);
// Not implemented.
97
};
98
99
#endif
VTK_CHARTS_EXPORT
#define VTK_CHARTS_EXPORT
Definition:
vtkWin32Header.h:285
vtkColorLegend::Position
vtkRectf Position
Definition:
vtkColorLegend.h:92
vtkObject
abstract base class for most VTK objects
Definition:
vtkObject.h:60
vtkChartLegend::GetBoundingRect
virtual vtkRectf GetBoundingRect(vtkContext2D *painter)
vtkColorLegend
Legend item to display vtkScalarsToColors.
Definition:
vtkColorLegend.h:35
vtkSmartPointer< vtkImageData >
vtkChartLegend::Update
virtual void Update()
vtkColorLegend::Callback
vtkSmartPointer< vtkCallbackCommand > Callback
Definition:
vtkColorLegend.h:90
vtkScalarsToColors
Superclass for mapping scalar values into colors.
Definition:
vtkScalarsToColors.h:42
vtkContext2D
Class for drawing 2D primitives to a graphical context.
Definition:
vtkContext2D.h:54
vtkCallbackCommand
supports function callbacks
Definition:
vtkCallbackCommand.h:48
vtkRectf
Definition:
vtkRect.h:103
vtkAxis
takes care of drawing 2D axes
Definition:
vtkAxis.h:44
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:37
vtkChartLegend::New
static vtkChartLegend * New()
vtkImageData
topologically and geometrically regular array of data
Definition:
vtkImageData.h:43
vtkChartLegend.h
vtkVector.h
vtkColorLegend::TransferFunction
vtkScalarsToColors * TransferFunction
Definition:
vtkColorLegend.h:87
vtkSmartPointer.h
vtkColorLegend::ImageData
vtkSmartPointer< vtkImageData > ImageData
Definition:
vtkColorLegend.h:88
vtkChartLegend
draw the chart legend
Definition:
vtkChartLegend.h:40
vtkChartLegend::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkColorLegend::Interpolate
bool Interpolate
Definition:
vtkColorLegend.h:91
vtkChartLegend::Paint
virtual bool Paint(vtkContext2D *painter)
vtkColorLegend::Axis
vtkSmartPointer< vtkAxis > Axis
Definition:
vtkColorLegend.h:89
Generated on Thu Oct 24 2019 21:14:24 for VTK by
1.8.6