/usr/include/vtk-7.1/vtkPlotArea.h is in libvtk7-dev 7.1.1+dfsg1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkPlotArea.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
/**
* @class vtkPlotArea
* @brief draws an area plot.
*
* vtkPlotArea is used to render an area plot. An area plot (sometimes called a
* range plot) renders a filled region between the selected ymin and ymax
* arrays.
* To specify the x array and ymin/ymax arrays, use the SetInputArray method
* with array index as 0, 1, or 2, respectively.
*/
#ifndef vtkPlotArea_h
#define vtkPlotArea_h
#include "vtkPlot.h"
class VTKCHARTSCORE_EXPORT vtkPlotArea : public vtkPlot
{
public:
static vtkPlotArea* New();
vtkTypeMacro(vtkPlotArea, vtkPlot);
void PrintSelf(ostream& os, vtkIndent indent);
/**
* Convenience method to set the input arrays. vtkPlotArea supports the
* following indices:
* \li 0: x-axis,
* \li 1: y-axis,
* \li 2: y-axis.
*/
using Superclass::SetInputArray;
//@{
/**
* Overridden to set the brush color.
*/
virtual void SetColor(unsigned char r, unsigned char g, unsigned char b,
unsigned char a);
virtual void SetColor(double r, double g, double b);
//@}
//@{
/**
* Get/set the valid point mask array name.
*/
vtkGetMacro(ValidPointMaskName, vtkStdString)
vtkSetMacro(ValidPointMaskName, vtkStdString)
//@}
/**
* Perform any updates to the item that may be necessary before rendering.
*/
virtual void Update();
/**
* Get the bounds for this plot as (Xmin, Xmax, Ymin, Ymax).
*/
virtual void GetBounds(double bounds[4]);
/**
* Subclasses that build data caches to speed up painting should override this
* method to update such caches. This is called on each Paint, hence
* subclasses must add checks to avoid rebuilding of cache, unless necessary.
*/
virtual void UpdateCache();
/**
* Paint event for the XY plot, called whenever the chart needs to be drawn
*/
virtual bool Paint(vtkContext2D *painter);
/**
* Paint legend event for the plot, called whenever the legend needs the
* plot items symbol/mark/line drawn. A rect is supplied with the lower left
* corner of the rect (elements 0 and 1) and with width x height (elements 2
* and 3). The plot can choose how to fill the space supplied. The index is used
* by Plots that return more than one label.
*/
virtual bool PaintLegend(vtkContext2D *painter, const vtkRectf& rect,
int legendIndex);
/**
* Function to query a plot for the nearest point to the specified coordinate.
* Returns the index of the data series with which the point is associated, or
* -1 if no point was found.
*/
virtual vtkIdType GetNearestPoint(const vtkVector2f& point,
const vtkVector2f& tolerance,
vtkVector2f* location);
/**
* Generate and return the tooltip label string for this plot
* The segmentIndex parameter is ignored, except for vtkPlotBar
*/
virtual vtkStdString GetTooltipLabel(const vtkVector2d &plotPos,
vtkIdType seriesIndex,
vtkIdType segmentIndex);
protected:
vtkPlotArea();
~vtkPlotArea();
/**
* Name of the valid point mask array.
*/
vtkStdString ValidPointMaskName;
private:
vtkPlotArea(const vtkPlotArea&) VTK_DELETE_FUNCTION;
void operator=(const vtkPlotArea&) VTK_DELETE_FUNCTION;
class vtkTableCache;
vtkTableCache* TableCache;
vtkTimeStamp UpdateTime;
};
#endif
|