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 =========================================================================*/
28 #ifndef vtkPlotArea_h
29 #define vtkPlotArea_h
30 
31 #include "vtkPlot.h"
32 
34 {
35 public:
36  static vtkPlotArea* New();
37  vtkTypeMacro(vtkPlotArea, vtkPlot);
38  void PrintSelf(ostream& os, vtkIndent indent);
39 
42  using Superclass::SetInputArray;
43 
45 
46  virtual void SetColor(unsigned char r, unsigned char g, unsigned char b,
47  unsigned char a);
48  virtual void SetColor(double r, double g, double b);
50 
52 
53  vtkGetMacro(ValidPointMaskName, vtkStdString)
54  vtkSetMacro(ValidPointMaskName, vtkStdString)
56 
59  virtual void Update();
60 
62  virtual void GetBounds(double bounds[4]);
63 
68  virtual void UpdateCache();
69 
72  virtual bool Paint(vtkContext2D *painter);
73 
75 
80  virtual bool PaintLegend(vtkContext2D *painter, const vtkRectf& rect,
81  int legendIndex);
83 
84 //BTX
85 
87 
90  virtual vtkIdType GetNearestPoint(const vtkVector2f& point,
91  const vtkVector2f& tolerance,
94 
96 
98  virtual vtkStdString GetTooltipLabel(const vtkVector2d &plotPos,
99  vtkIdType seriesIndex,
100  vtkIdType segmentIndex);
101 protected:
102  vtkPlotArea();
103  ~vtkPlotArea();
105 
107  vtkStdString ValidPointMaskName;
108 
109 private:
110  vtkPlotArea(const vtkPlotArea&); // Not implemented.
111  void operator=(const vtkPlotArea&); // Not implemented.
112 
113  class vtkTableCache;
114  vtkTableCache* TableCache;
115 
116  vtkTimeStamp UpdateTime;
117 //ETX
118 };
119 
120 #endif
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:46
record modification and/or execution time
Definition: vtkTimeStamp.h:34
virtual void Update()
int vtkIdType
Definition: vtkType.h:247
virtual void SetColor(unsigned char r, unsigned char g, unsigned char b, unsigned char a)
Class for drawing 2D primitives to a graphical context.
Definition: vtkContext2D.h:56
a simple class to control print indentation
Definition: vtkIndent.h:38
Abstract class for 2D plots.
Definition: vtkPlot.h:51
draws an area plot.
Definition: vtkPlotArea.h:33
virtual void PrintSelf(ostream &os, vtkIndent indent)
static vtkObject * New()
#define VTKCHARTSCORE_EXPORT