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:
51  virtual void PrintSelf(ostream &os, vtkIndent indent);
52 
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 
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 
122 
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
vtkPlotFunctionalBag::GetLookupTable
vtkScalarsToColors * GetLookupTable()
vtkPoints2D
represent and manipulate 2D points
Definition: vtkPoints2D.h:36
vtkChartsCoreModule.h
vtkPlotFunctionalBag::GetDataArrays
bool GetDataArrays(vtkTable *table, vtkDataArray *array[2])
vtkPlotFunctionalBag::GetVisible
virtual bool GetVisible()
vtkPlotFunctionalBag::LookupTable
vtkScalarsToColors * LookupTable
Definition: vtkPlotFunctionalBag.h:130
vtkPlotFunctionalBag::SetLookupTable
void SetLookupTable(vtkScalarsToColors *lut)
vtkPlot.h
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkTable
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:68
vtkPlotFunctionalBag::LogY
bool LogY
Definition: vtkPlotFunctionalBag.h:138
vtkTimeStamp
record modification and/or execution time
Definition: vtkTimeStamp.h:35
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkPlotFunctionalBag::~vtkPlotFunctionalBag
~vtkPlotFunctionalBag()
vtkgl::table
GLenum GLsizei GLenum GLenum const GLvoid * table
Definition: vtkgl.h:11332
vtkContext2D
Class for drawing 2D primitives to a graphical context.
Definition: vtkContext2D.h:57
vtkDataArray
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:55
vtkPlot
Abstract class for 2D plots.
Definition: vtkPlot.h:52
vtkPlotFunctionalBag::Paint
virtual bool Paint(vtkContext2D *painter)
max
#define max(a, b)
Definition: vtkX3DExporterFIWriterHelper.h:30
vtkPlotFunctionalBag::Line
vtkNew< vtkPlotLine > Line
Definition: vtkPlotFunctionalBag.h:133
vtkPlotFunctionalBag::GetBounds
virtual void GetBounds(double bounds[4])
vtkX3D::point
@ point
Definition: vtkX3D.h:236
vtkPlotFunctionalBag::IsBag
virtual bool IsBag()
vtkPlotFunctionalBag::UpdateTableCache
bool UpdateTableCache(vtkTable *)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkPlotFunctionalBag
Class for drawing an XY line plot or bag given two columns from a vtkTable.
Definition: vtkPlotFunctionalBag.h:48
vtkPlotFunctionalBag::SelectPointsInPolygon
virtual bool SelectPointsInPolygon(const vtkContextPolygon &polygon)
vtkPlotFunctionalBag::GetUnscaledInputBounds
virtual void GetUnscaledInputBounds(double bounds[4])
vtkPlotFunctionalBag::BagPoints
vtkNew< vtkPoints2D > BagPoints
Definition: vtkPlotFunctionalBag.h:136
vtkPlotFunctionalBag::BuildTime
vtkTimeStamp BuildTime
Definition: vtkPlotFunctionalBag.h:127
vtkPlotLine
Class for drawing an XY line plot given two columns from a vtkTable.
Definition: vtkPlotLine.h:34
vtkNew< vtkPlotLine >
vtkContextPolygon
Definition: vtkContextPolygon.h:27
vtkPlotFunctionalBag::New
static vtkPlotFunctionalBag * New()
vtkScalarsToColors
Superclass for mapping scalar values to colors.
Definition: vtkScalarsToColors.h:63
vtkPlotFunctionalBag::vtkPlotFunctionalBag
vtkPlotFunctionalBag()
vtkNew.h
vtkPlotFunctionalBag::SelectPoints
virtual bool SelectPoints(const vtkVector2f &min, const vtkVector2f &max)
vtkPlotFunctionalBag::PaintLegend
virtual bool PaintLegend(vtkContext2D *painter, const vtkRectf &rect, int legendIndex)
vtkgl::location
GLint location
Definition: vtkgl.h:12002
vtkPlotFunctionalBag::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
VTKCHARTSCORE_EXPORT
#define VTKCHARTSCORE_EXPORT
Definition: vtkChartsCoreModule.h:15
vtkPlotFunctionalBag::Update
virtual void Update()
vtkRectf
Definition: vtkRect.h:97
vtkPlotFunctionalBag::CreateDefaultLookupTable
virtual void CreateDefaultLookupTable()
vtkVector2f
Definition: vtkVector.h:277
vtkPlotFunctionalBag::GetNearestPoint
virtual vtkIdType GetNearestPoint(const vtkVector2f &point, const vtkVector2f &tolerance, vtkVector2f *location)