VTK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
dox
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::OutlierLabel
vtkStdString OutlierLabel
Definition:
vtkCategoryLegend.h:100
vtkStdString
Wrapper around std::string to keep symbols short.
Definition:
vtkStdString.h:46
vtkCategoryLegend::Title
vtkStdString Title
Definition:
vtkCategoryLegend.h:101
vtkVariantArray
An array holding vtkVariants.
Definition:
vtkVariantArray.h:47
vtkChartLegend::GetBoundingRect
virtual vtkRectf GetBoundingRect(vtkContext2D *painter)
vtkCategoryLegend::ScalarsToColors
vtkScalarsToColors * ScalarsToColors
Definition:
vtkCategoryLegend.h:99
vtkCategoryLegend::HasOutliers
bool HasOutliers
Definition:
vtkCategoryLegend.h:97
vtkScalarsToColors
Superclass for mapping scalar values to colors.
Definition:
vtkScalarsToColors.h:62
vtkContext2D
Class for drawing 2D primitives to a graphical context.
Definition:
vtkContext2D.h:56
vtkCategoryLegend::Values
vtkVariantArray * Values
Definition:
vtkCategoryLegend.h:103
vtkRectf
Definition:
vtkRect.h:263
vtkCategoryLegend::TitleWidthOffset
float TitleWidthOffset
Definition:
vtkCategoryLegend.h:98
vtkChartLegend::New
static vtkChartLegend * New()
vtkChartLegend.h
vtkVector.h
vtkTextProperty
represent text properties.
Definition:
vtkTextProperty.h:38
vtkNew.h
vtkStdString.h
vtkCategoryLegend
Legend item to display categorical data.
Definition:
vtkCategoryLegend.h:43
vtkChartLegend
draw the chart legend
Definition:
vtkChartLegend.h:41
vtkNew< vtkTextProperty >
vtkChartLegend::Paint
virtual bool Paint(vtkContext2D *painter)
vtkCategoryLegend::TitleProperties
vtkNew< vtkTextProperty > TitleProperties
Definition:
vtkCategoryLegend.h:102
VTKCHARTSCORE_EXPORT
#define VTKCHARTSCORE_EXPORT
Definition:
vtkChartsCoreModule.h:15
vtkChartsCoreModule.h
vtkX3D::title
Definition:
vtkX3D.h:500
Generated on Wed Dec 16 2015 17:14:46 for VTK by
1.8.9.1