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 =========================================================================*/
29 #ifndef vtkPlotArea_h
30 #define vtkPlotArea_h
31 
32 #include "vtkPlot.h"
33 
34 class VTKCHARTSCORE_EXPORT vtkPlotArea : public vtkPlot
35 {
36 public:
37  static vtkPlotArea* New();
38  vtkTypeMacro(vtkPlotArea, vtkPlot);
39  void PrintSelf(ostream& os, vtkIndent indent);
40 
48  using Superclass::SetInputArray;
49 
51 
54  virtual void SetColor(unsigned char r, unsigned char g, unsigned char b,
55  unsigned char a);
56  virtual void SetColor(double r, double g, double b);
58 
60 
63  vtkGetMacro(ValidPointMaskName, vtkStdString)
64  vtkSetMacro(ValidPointMaskName, vtkStdString)
66 
70  virtual void Update();
71 
75  virtual void GetBounds(double bounds[4]);
76 
82  virtual void UpdateCache();
83 
87  virtual bool Paint(vtkContext2D *painter);
88 
96  virtual bool PaintLegend(vtkContext2D *painter, const vtkRectf& rect,
97  int legendIndex);
98 
105  const vtkVector2f& tolerance,
107 
112  virtual vtkStdString GetTooltipLabel(const vtkVector2d &plotPos,
113  vtkIdType seriesIndex,
114  vtkIdType segmentIndex);
115 
116 protected:
117  vtkPlotArea();
118  ~vtkPlotArea();
119 
124 
125 private:
126  vtkPlotArea(const vtkPlotArea&) VTK_DELETE_FUNCTION;
127  void operator=(const vtkPlotArea&) VTK_DELETE_FUNCTION;
128 
129  class vtkTableCache;
130  vtkTableCache* TableCache;
131 
132  vtkTimeStamp UpdateTime;
133 
134 };
135 
136 #endif
vtkPlot::GetTooltipLabel
virtual vtkStdString GetTooltipLabel(const vtkVector2d &plotPos, vtkIdType seriesIndex, vtkIdType segmentIndex)
Generate and return the tooltip label string for this plot The segmentIndex parameter is ignored,...
vtkPlot.h
vtkIdType
int vtkIdType
Definition: vtkType.h:287
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkTimeStamp
record modification and/or execution time
Definition: vtkTimeStamp.h:35
vtkPlot::SetColor
virtual void SetColor(unsigned char r, unsigned char g, unsigned char b, unsigned char a)
Set the plot color.
vtkContext2D
Class for drawing 2D primitives to a graphical context.
Definition: vtkContext2D.h:57
vtkPlot
Abstract class for 2D plots.
Definition: vtkPlot.h:52
vtkVector2d
Definition: vtkVector.h:346
vtkPlotArea
draws an area plot.
Definition: vtkPlotArea.h:34
vtkX3D::point
@ point
Definition: vtkX3D.h:236
vtkPlot::UpdateCache
virtual void UpdateCache()
Subclasses that build data caches to speed up painting should override this method to update such cac...
Definition: vtkPlot.h:376
vtkPlot::GetNearestPoint
virtual vtkIdType GetNearestPoint(const vtkVector2f &point, const vtkVector2f &tolerance, vtkVector2f *location)
Function to query a plot for the nearest point to the specified coordinate.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkPlot::PaintLegend
virtual bool PaintLegend(vtkContext2D *painter, const vtkRectf &rect, int legendIndex)
Paint legend event for the plot, called whenever the legend needs the plot items symbol/mark/line dra...
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkAbstractContextItem::Paint
virtual bool Paint(vtkContext2D *painter)
Paint event for the item, called whenever the item needs to be drawn.
vtkPlot::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkX3D::location
@ location
Definition: vtkX3D.h:406
vtkStdString
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:47
vtkPlot::GetBounds
virtual void GetBounds(double bounds[4])
Get the bounds for this plot as (Xmin, Xmax, Ymin, Ymax).
Definition: vtkPlot.h:336
vtkRectf
Definition: vtkRect.h:296
vtkVector2f
Definition: vtkVector.h:337
vtkAbstractContextItem::Update
virtual void Update()
Perform any updates to the item that may be necessary before rendering.
vtkPlotArea::ValidPointMaskName
vtkStdString ValidPointMaskName
Name of the valid point mask array.
Definition: vtkPlotArea.h:123