VTK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
home
boeckb
code
depot
group-kitware
vtk
build-release
Utilities
Doxygen
dox
Charts
Core
vtkPlotBag.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkPlotBag.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
35
#ifndef vtkPlotBag_h
36
#define vtkPlotBag_h
37
38
#include "
vtkChartsCoreModule.h
"
// For export macro
39
#include "
vtkPlotPoints.h
"
40
41
class
vtkPen
;
42
43
class
VTKCHARTSCORE_EXPORT
vtkPlotBag
:
public
vtkPlotPoints
44
{
45
public
:
46
vtkTypeMacro(
vtkPlotBag
,
vtkPlotPoints
);
47
virtual
void
PrintSelf
(ostream &os,
vtkIndent
indent);
48
50
static
vtkPlotBag
*
New
();
51
55
virtual
void
Update
();
56
59
virtual
bool
Paint
(
vtkContext2D
*painter);
60
62
67
virtual
bool
PaintLegend
(
vtkContext2D
*painter,
const
vtkRectf
& rect,
68
int
legendIndex);
70
74
virtual
vtkStringArray
*
GetLabels
();
75
77
79
virtual
vtkStdString
GetTooltipLabel
(
const
vtkVector2d
&plotPos,
80
vtkIdType
seriesIndex,
81
vtkIdType
segmentIndex);
83
85
90
virtual
void
SetInputData
(
vtkTable
*table);
91
virtual
void
SetInputData
(
vtkTable
*table,
const
vtkStdString
&yColumn,
92
const
vtkStdString
&densityColumn);
93
virtual
void
SetInputData
(
vtkTable
*table,
const
vtkStdString
&xColumn,
94
const
vtkStdString
&yColumn,
95
const
vtkStdString
&densityColumn);
97
98
virtual
void
SetInputData
(
vtkTable
*table,
vtkIdType
xColumn,
99
vtkIdType
yColumn,
100
vtkIdType
densityColumn);
101
103
104
vtkSetMacro(BagVisible,
bool
);
105
vtkGetMacro(BagVisible,
bool
);
107
109
111
void
SetLinePen(
vtkPen
* pen);
112
vtkGetObjectMacro(LinePen,
vtkPen
);
114
116
119
void
SetPointPen
(
vtkPen
* pen) { this->
SetPen
(pen); }
120
vtkPen
*
GetPointPen
() {
return
this->
GetPen
(); }
122
123
protected
:
124
vtkPlotBag
();
125
~
vtkPlotBag
();
126
127
void
UpdateTableCache
(
vtkDataArray
*);
128
129
bool
BagVisible
;
130
vtkPoints2D
*
MedianPoints
;
131
vtkPoints2D
*
Q3Points
;
132
vtkPen
*
LinePen
;
133
134
private
:
135
vtkPlotBag
(
const
vtkPlotBag
&);
// Not implemented.
136
void
operator=(
const
vtkPlotBag
&);
// Not implemented.
137
};
138
139
#endif //vtkPlotBag_h
vtkStdString
Wrapper around std::string to keep symbols short.
Definition:
vtkStdString.h:46
vtkVector2d
Definition:
vtkVector.h:286
vtkPlotBag::BagVisible
bool BagVisible
Definition:
vtkPlotBag.h:129
vtkPlotBag::LinePen
vtkPen * LinePen
Definition:
vtkPlotBag.h:132
vtkPlotPoints::Paint
virtual bool Paint(vtkContext2D *painter)
vtkPlot::SetPen
void SetPen(vtkPen *pen)
vtkPlotPoints
Class for drawing an points given two columns from a vtkTable.
Definition:
vtkPlotPoints.h:52
vtkPlotBag::SetPointPen
void SetPointPen(vtkPen *pen)
Definition:
vtkPlotBag.h:119
vtkStringArray
a vtkAbstractArray subclass for strings
Definition:
vtkStringArray.h:44
vtkIdType
int vtkIdType
Definition:
vtkType.h:275
vtkPlot::GetPen
vtkPen * GetPen()
vtkContext2D
Class for drawing 2D primitives to a graphical context.
Definition:
vtkContext2D.h:56
vtkRectf
Definition:
vtkRect.h:96
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:38
vtkPoints2D
represent and manipulate 2D points
Definition:
vtkPoints2D.h:35
vtkPlot::GetLabels
virtual vtkStringArray * GetLabels()
vtkPlotBag::Q3Points
vtkPoints2D * Q3Points
Definition:
vtkPlotBag.h:131
vtkDataArray
abstract superclass for arrays of numeric data
Definition:
vtkDataArray.h:54
vtkPlotPoints::PaintLegend
virtual bool PaintLegend(vtkContext2D *painter, const vtkRectf &rect, int legendIndex)
vtkPlotBag::MedianPoints
vtkPoints2D * MedianPoints
Definition:
vtkPlotBag.h:130
vtkPen
provides a pen that draws the outlines of shapes drawn by vtkContext2D.
Definition:
vtkPen.h:38
vtkPlotBag::GetPointPen
vtkPen * GetPointPen()
Definition:
vtkPlotBag.h:120
vtkPlotPoints::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkTable
A table, which contains similar-typed columns of data.
Definition:
vtkTable.h:67
vtkPlot::SetInputData
virtual void SetInputData(vtkTable *table)
vtkPlotPoints::New
static vtkPlotPoints * New()
vtkPlotPoints::UpdateTableCache
bool UpdateTableCache(vtkTable *table)
vtkPlotPoints::Update
virtual void Update()
vtkPlotPoints.h
VTKCHARTSCORE_EXPORT
#define VTKCHARTSCORE_EXPORT
Definition:
vtkChartsCoreModule.h:15
vtkPlot::GetTooltipLabel
virtual vtkStdString GetTooltipLabel(const vtkVector2d &plotPos, vtkIdType seriesIndex, vtkIdType segmentIndex)
vtkPlotBag
Class for drawing an a bagplot.
Definition:
vtkPlotBag.h:43
vtkChartsCoreModule.h
Generated by
1.8.9.1