VTK
vtkPlotFunctionalBag.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPlotFunctionalBag.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 
34 #ifndef vtkPlotFunctionalBag_h
35 #define vtkPlotFunctionalBag_h
36 
37 #include "vtkChartsCoreModule.h" // For export macro
38 #include "vtkPlot.h"
39 #include "vtkNew.h" // Needed to hold SP ivars
40 
41 class vtkDataArray;
42 class vtkPlotFuntionalBagInternal;
43 class vtkPlotLine;
44 class vtkPoints2D;
45 class vtkScalarsToColors;
46 
48 {
49 public:
50  vtkTypeMacro(vtkPlotFunctionalBag, vtkPlot);
51  virtual void PrintSelf(ostream &os, vtkIndent indent);
52 
54  static vtkPlotFunctionalBag *New();
55 
58  virtual bool IsBag();
59 
61  virtual bool GetVisible();
62 
66  virtual void Update();
67 
70  virtual bool Paint(vtkContext2D *painter);
71 
73 
78  virtual bool PaintLegend(vtkContext2D *painter, const vtkRectf& rect,
79  int legendIndex);
81 
83  virtual void GetBounds(double bounds[4]);
84 
87  virtual void GetUnscaledInputBounds(double bounds[4]);
88 
90 
91  void SetLookupTable(vtkScalarsToColors *lut);
92  vtkScalarsToColors *GetLookupTable();
94 
97  virtual void CreateDefaultLookupTable();
98 
99 //BTX
101 
105  const vtkVector2f& tolerance,
107 //ETX
109 
110  virtual bool SelectPoints(const vtkVector2f& min, const vtkVector2f& max);
111 
113 
114  virtual bool SelectPointsInPolygon(const vtkContextPolygon &polygon);
115 protected:
119 
121  bool GetDataArrays(vtkTable *table, vtkDataArray *array[2]);
122 
124  bool UpdateTableCache(vtkTable*);
125 
128 
131 
134 
137 
138  bool LogX, LogY;
139 
140 private:
141  vtkPlotFunctionalBag(const vtkPlotFunctionalBag &); // Not implemented.
142  void operator=(const vtkPlotFunctionalBag &); // Not implemented.
143 };
144 
145 #endif //vtkPlotFunctionalBag_h
Class for drawing an XY line plot or bag given two columns from a vtkTable.
virtual bool PaintLegend(vtkContext2D *painter, const vtkRectf &rect, int legendIndex)
virtual bool Paint(vtkContext2D *painter)
record modification and/or execution time
Definition: vtkTimeStamp.h:34
virtual void GetBounds(double bounds[4])
Definition: vtkPlot.h:276
vtkScalarsToColors * LookupTable
int vtkIdType
Definition: vtkType.h:275
vtkNew< vtkPoints2D > BagPoints
Superclass for mapping scalar values to colors.
Class for drawing 2D primitives to a graphical context.
Definition: vtkContext2D.h:56
virtual bool SelectPoints(const vtkVector2f &min, const vtkVector2f &max)
a simple class to control print indentation
Definition: vtkIndent.h:38
represent and manipulate 2D points
Definition: vtkPoints2D.h:35
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
Abstract class for 2D plots.
Definition: vtkPlot.h:51
virtual vtkIdType GetNearestPoint(const vtkVector2f &point, const vtkVector2f &tolerance, vtkVector2f *location)
virtual bool SelectPointsInPolygon(const vtkContextPolygon &polygon)
vtkNew< vtkPlotLine > Line
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:67
virtual void GetUnscaledInputBounds(double bounds[4])
Definition: vtkPlot.h:295
virtual void PrintSelf(ostream &os, vtkIndent indent)
static vtkObject * New()
Class for drawing an XY line plot given two columns from a vtkTable.
Definition: vtkPlotLine.h:33
virtual bool GetVisible()
virtual void Update()
#define max(a, b)
#define VTKCHARTSCORE_EXPORT