VTK
vtkPlotArea.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPlotArea.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 =========================================================================*/
26 #ifndef vtkPlotArea_h
27 #define vtkPlotArea_h
28 
29 #include "vtkPlot.h"
30 
31 class VTKCHARTSCORE_EXPORT vtkPlotArea : public vtkPlot
32 {
33 public:
34  static vtkPlotArea* New();
35  vtkTypeMacro(vtkPlotArea, vtkPlot);
36  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
37 
45  using Superclass::SetInputArray;
46 
48 
51  void SetColor(unsigned char r, unsigned char g, unsigned char b,
52  unsigned char a) VTK_OVERRIDE;
53  void SetColor(double r, double g, double b) VTK_OVERRIDE;
55 
57 
60  vtkGetMacro(ValidPointMaskName, vtkStdString)
61  vtkSetMacro(ValidPointMaskName, vtkStdString)
63 
67  void Update() VTK_OVERRIDE;
68 
72  void GetBounds(double bounds[4]) VTK_OVERRIDE;
73 
79  void UpdateCache() VTK_OVERRIDE;
80 
84  bool Paint(vtkContext2D *painter) VTK_OVERRIDE;
85 
93  bool PaintLegend(vtkContext2D *painter, const vtkRectf& rect,
94  int legendIndex) VTK_OVERRIDE;
95 
101  vtkIdType GetNearestPoint(const vtkVector2f& point,
102  const vtkVector2f& tolerance,
103  vtkVector2f* location) VTK_OVERRIDE;
104 
109  vtkStdString GetTooltipLabel(const vtkVector2d &plotPos,
110  vtkIdType seriesIndex,
111  vtkIdType segmentIndex) VTK_OVERRIDE;
112 
113 protected:
114  vtkPlotArea();
115  ~vtkPlotArea() VTK_OVERRIDE;
116 
120  vtkStdString ValidPointMaskName;
121 
122 private:
123  vtkPlotArea(const vtkPlotArea&) VTK_DELETE_FUNCTION;
124  void operator=(const vtkPlotArea&) VTK_DELETE_FUNCTION;
125 
126  class vtkTableCache;
127  vtkTableCache* TableCache;
128 
129  vtkTimeStamp UpdateTime;
130 
131 };
132 
133 #endif
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:41
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
record modification and/or execution time
Definition: vtkTimeStamp.h:32
virtual void Update()
Updates the extensions string.
int vtkIdType
Definition: vtkType.h:345
virtual void SetColor(unsigned char r, unsigned char g, unsigned char b, unsigned char a)
Set the plot color.
Class for drawing 2D primitives to a graphical context.
Definition: vtkContext2D.h:52
a simple class to control print indentation
Definition: vtkIndent.h:33
Abstract class for 2D plots.
Definition: vtkPlot.h:46
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
draws an area plot.
Definition: vtkPlotArea.h:31
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...