VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
42 {
43 public:
45  virtual void PrintSelf(ostream &os, vtkIndent indent);
46 
48  static vtkPlotBag *New();
49 
53  virtual void Update();
54 
57  virtual bool Paint(vtkContext2D *painter);
58 
60 
65  virtual bool PaintLegend(vtkContext2D *painter, const vtkRectf& rect,
66  int legendIndex);
68 
72  virtual vtkStringArray *GetLabels();
73 
75 
77  virtual vtkStdString GetTooltipLabel(const vtkVector2d &plotPos,
78  vtkIdType seriesIndex,
79  vtkIdType segmentIndex);
81 
83 
88  virtual void SetInputData(vtkTable *table);
89  virtual void SetInputData(vtkTable *table, const vtkStdString &yColumn,
90  const vtkStdString &densityColumn);
91  virtual void SetInputData(vtkTable *table, const vtkStdString &xColumn,
92  const vtkStdString &yColumn,
93  const vtkStdString &densityColumn);
95 
96  virtual void SetInputData(vtkTable *table, vtkIdType xColumn,
97  vtkIdType yColumn,
98  vtkIdType densityColumn);
99 
100 protected:
101  vtkPlotBag();
102  ~vtkPlotBag();
103 
105 
108 
109 private:
110  vtkPlotBag(const vtkPlotBag &); // Not implemented.
111  void operator=(const vtkPlotBag &); // Not implemented.
112 };
113 
114 #endif //__vtkPlotBag_h
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:46
virtual bool Paint(vtkContext2D *painter)
Class for drawing an points given two columns from a vtkTable.
Definition: vtkPlotPoints.h:52
a vtkAbstractArray subclass for strings
int vtkIdType
Definition: vtkType.h:268
GLenum GLsizei GLenum GLenum const GLvoid * table
Definition: vtkgl.h:11332
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:619
Class for drawing 2D primitives to a graphical context.
Definition: vtkContext2D.h:56
a simple class to control print indentation
Definition: vtkIndent.h:38
represent and manipulate 2D points
Definition: vtkPoints2D.h:35
virtual vtkStringArray * GetLabels()
vtkPoints2D * Q3Points
Definition: vtkPlotBag.h:107
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:53
virtual bool PaintLegend(vtkContext2D *painter, const vtkRectf &rect, int legendIndex)
vtkPoints2D * MedianPoints
Definition: vtkPlotBag.h:106
virtual void PrintSelf(ostream &os, vtkIndent indent)
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:67
virtual void SetInputData(vtkTable *table)
static vtkPlotPoints * New()
bool UpdateTableCache(vtkTable *table)
virtual void Update()
#define VTKCHARTSCORE_EXPORT
virtual vtkStdString GetTooltipLabel(const vtkVector2d &plotPos, vtkIdType seriesIndex, vtkIdType segmentIndex)
Class for drawing an a bagplot.
Definition: vtkPlotBag.h:41