/usr/include/vtk-6.3/vtkPlotArea.h is in libvtk6-dev 6.3.0+dfsg1-5.
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 | /*=========================================================================
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.
=========================================================================*/
// .NAME vtkPlotArea - draws an area plot.
// .SECTION Description
// 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);
// Description:
// 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;
// Description:
// 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);
// Description:
// Get/set the valid point mask array name.
vtkGetMacro(ValidPointMaskName, vtkStdString)
vtkSetMacro(ValidPointMaskName, vtkStdString)
// Description:
// Perform any updates to the item that may be necessary before rendering.
virtual void Update();
// Description:
// Get the bounds for this plot as (Xmin, Xmax, Ymin, Ymax).
virtual void GetBounds(double bounds[4]);
// Description:
// 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();
// Description:
// Paint event for the XY plot, called whenever the chart needs to be drawn
virtual bool Paint(vtkContext2D *painter);
// Description:
// 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);
//BTX
// Description:
// 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);
// Description:
// 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();
// Description:
// Name of the valid point mask array.
vtkStdString ValidPointMaskName;
private:
vtkPlotArea(const vtkPlotArea&); // Not implemented.
void operator=(const vtkPlotArea&); // Not implemented.
class vtkTableCache;
vtkTableCache* TableCache;
vtkTimeStamp UpdateTime;
//ETX
};
#endif
|