VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
59  virtual void Update();
60 
63  virtual bool Paint(vtkContext2D *painter);
64 
66 
71  virtual bool PaintLegend(vtkContext2D *painter, const vtkRectf& rect,
72  int legendIndex);
74 
76  virtual void GetBounds(double bounds[4]);
77 
80  virtual void GetUnscaledInputBounds(double bounds[4]);
81 
83 
84  void SetLookupTable(vtkScalarsToColors *lut);
85  vtkScalarsToColors *GetLookupTable();
87 
90  virtual void CreateDefaultLookupTable();
91 
92 //BTX
94 
98  const vtkVector2f& tolerance,
100 //ETX
102 
103 protected:
106 
108  bool GetDataArrays(vtkTable *table, vtkDataArray *array[2]);
109 
111  bool UpdateTableCache(vtkTable*);
112 
115 
118 
121 
124 
125  bool LogX, LogY;
126 
127 private:
128  vtkPlotFunctionalBag(const vtkPlotFunctionalBag &); // Not implemented.
129  void operator=(const vtkPlotFunctionalBag &); // Not implemented.
130 };
131 
132 #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:239
vtkScalarsToColors * LookupTable
int vtkIdType
Definition: vtkType.h:268
GLenum GLsizei GLenum GLenum const GLvoid * table
Definition: vtkgl.h:11332
vtkNew< vtkPoints2D > BagPoints
Superclass for mapping scalar values to colors.
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
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:53
Abstract class for 2D plots.
Definition: vtkPlot.h:51
virtual vtkIdType GetNearestPoint(const vtkVector2f &point, const vtkVector2f &tolerance, vtkVector2f *location)
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:258
virtual void PrintSelf(ostream &os, vtkIndent indent)
GLint location
Definition: vtkgl.h:12002
static vtkObject * New()
Class for drawing an XY line plot given two columns from a vtkTable.
Definition: vtkPlotLine.h:33
virtual void Update()
#define VTKCHARTSCORE_EXPORT