VTK
dox
opt
build
vtk6-6.3.0+dfsg2
Charts
Core
vtkCategoryLegend.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkCategoryLegend.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 vtkCategoryLegend_h
31
#define vtkCategoryLegend_h
32
33
#include "
vtkChartsCoreModule.h
"
// For export macro
34
#include "
vtkChartLegend.h
"
35
#include "
vtkNew.h
"
// For vtkNew ivars
36
#include "
vtkStdString.h
"
// For vtkStdString ivars
37
#include "
vtkVector.h
"
// For vtkRectf
38
39
class
vtkScalarsToColors
;
40
class
vtkTextProperty
;
41
class
vtkVariantArray
;
42
43
class
VTKCHARTSCORE_EXPORT
vtkCategoryLegend
:
public
vtkChartLegend
44
{
45
public
:
46
vtkTypeMacro
(
vtkCategoryLegend
,
vtkChartLegend
);
47
static
vtkCategoryLegend
*
New
();
48
50
51
enum
{
52
VERTICAL = 0,
53
HORIZONTAL
54
};
56
58
virtual
bool
Paint
(
vtkContext2D
*painter);
59
62
virtual
vtkRectf
GetBoundingRect
(
vtkContext2D
* painter);
63
65
68
virtual
void
SetScalarsToColors
(
vtkScalarsToColors
* stc);
69
virtual
vtkScalarsToColors
*
GetScalarsToColors
();
71
73
77
vtkGetMacro
(Values,
vtkVariantArray
*);
78
vtkSetMacro
(Values,
vtkVariantArray
*);
80
82
83
virtual
void
SetTitle
(
const
vtkStdString
&
title
);
84
virtual
vtkStdString
GetTitle
();
86
88
89
vtkGetMacro
(OutlierLabel,
vtkStdString
);
90
vtkSetMacro
(OutlierLabel,
vtkStdString
);
92
93
protected
:
94
vtkCategoryLegend
();
95
virtual
~vtkCategoryLegend
();
96
97
bool
HasOutliers
;
98
float
TitleWidthOffset
;
99
vtkScalarsToColors
*
ScalarsToColors
;
100
vtkStdString
OutlierLabel
;
101
vtkStdString
Title
;
102
vtkNew<vtkTextProperty>
TitleProperties
;
103
vtkVariantArray
*
Values
;
104
105
private
:
106
vtkCategoryLegend
(
const
vtkCategoryLegend
&);
// Not implemented.
107
void
operator=(
const
vtkCategoryLegend
&);
// Not implemented.
108
};
109
110
#endif
vtkCategoryLegend::Paint
virtual bool Paint(vtkContext2D *painter)
vtkChartsCoreModule.h
vtkStdString.h
vtkCategoryLegend::SetTitle
virtual void SetTitle(const vtkStdString &title)
vtkCategoryLegend::HasOutliers
bool HasOutliers
Definition:
vtkCategoryLegend.h:97
vtkChartLegend
draw the chart legend
Definition:
vtkChartLegend.h:42
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition:
vtkSetGet.h:642
vtkVector.h
vtkCategoryLegend::GetTitle
virtual vtkStdString GetTitle()
vtkVariantArray
An array holding vtkVariants.
Definition:
vtkVariantArray.h:48
vtkContext2D
Class for drawing 2D primitives to a graphical context.
Definition:
vtkContext2D.h:57
vtkCategoryLegend::SetScalarsToColors
virtual void SetScalarsToColors(vtkScalarsToColors *stc)
vtkCategoryLegend::Values
vtkVariantArray * Values
Definition:
vtkCategoryLegend.h:103
vtkCategoryLegend::GetBoundingRect
virtual vtkRectf GetBoundingRect(vtkContext2D *painter)
vtkCategoryLegend::New
static vtkCategoryLegend * New()
vtkCategoryLegend::ScalarsToColors
vtkScalarsToColors * ScalarsToColors
Definition:
vtkCategoryLegend.h:99
vtkX3D::title
@ title
Definition:
vtkX3D.h:500
vtkCategoryLegend::TitleWidthOffset
float TitleWidthOffset
Definition:
vtkCategoryLegend.h:98
vtkCategoryLegend::~vtkCategoryLegend
virtual ~vtkCategoryLegend()
vtkNew< vtkTextProperty >
vtkGetMacro
#define vtkGetMacro(name, type)
Definition:
vtkSetGet.h:93
vtkScalarsToColors
Superclass for mapping scalar values to colors.
Definition:
vtkScalarsToColors.h:63
vtkTextProperty
represent text properties.
Definition:
vtkTextProperty.h:39
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkCategoryLegend::GetScalarsToColors
virtual vtkScalarsToColors * GetScalarsToColors()
vtkNew.h
vtkCategoryLegend::TitleProperties
vtkNew< vtkTextProperty > TitleProperties
Definition:
vtkCategoryLegend.h:102
vtkChartLegend.h
vtkCategoryLegend
Legend item to display categorical data.
Definition:
vtkCategoryLegend.h:44
vtkStdString
Wrapper around std::string to keep symbols short.
Definition:
vtkStdString.h:48
VTKCHARTSCORE_EXPORT
#define VTKCHARTSCORE_EXPORT
Definition:
vtkChartsCoreModule.h:15
vtkRectf
Definition:
vtkRect.h:97
vtkCategoryLegend::Title
vtkStdString Title
Definition:
vtkCategoryLegend.h:101
vtkCategoryLegend::vtkCategoryLegend
vtkCategoryLegend()
vtkCategoryLegend::OutlierLabel
vtkStdString OutlierLabel
Definition:
vtkCategoryLegend.h:100
Generated by
1.8.20