/usr/include/vtk-7.1/vtkPlotPie.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 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkPlotPie.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 vtkPlotPie
* @brief Class for drawing a Pie diagram.
*
*
*/
#ifndef vtkPlotPie_h
#define vtkPlotPie_h
#include "vtkChartsCoreModule.h" // For export macro
#include "vtkPlot.h"
#include "vtkSmartPointer.h" // To hold ColorSeries etc.
class vtkContext2D;
class vtkColorSeries;
class vtkPoints2D;
class vtkPlotPiePrivate;
class VTKCHARTSCORE_EXPORT vtkPlotPie : public vtkPlot
{
public:
vtkTypeMacro(vtkPlotPie, vtkPlot);
virtual void PrintSelf(ostream &os, vtkIndent indent);
static vtkPlotPie *New();
/**
* Paint event for the item.
*/
virtual bool Paint(vtkContext2D *painter);
/**
* Paint legend event for the XY 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.
*/
bool PaintLegend(vtkContext2D *painter, const vtkRectf& rect, int legendIndex);
/**
* Set the dimensions of the pie, arguments 1 and 2 are the x and y coordinate
* of the bottom corner. Arguments 3 and 4 are the width and height.
*/
void SetDimensions(int arg1, int arg2, int arg3, int arg4);
/**
* Set the dimensions of the pie, elements 0 and 1 are the x and y coordinate
* of the bottom corner. Elements 2 and 3 are the width and height.
*/
void SetDimensions(int arg[4]);
//@{
/**
* Get the dimensions of the pie, elements 0 and 1 are the x and y coordinate
* of the bottom corner. Elements 2 and 3 are the width and height.
*/
vtkGetVector4Macro(Dimensions, int);
//@}
/**
* Set the color series to use for the Pie.
*/
void SetColorSeries(vtkColorSeries *colorSeries);
/**
* Get the color series used.
*/
vtkColorSeries *GetColorSeries();
/**
* 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.
*/
virtual vtkIdType GetNearestPoint(const vtkVector2f& point,
const vtkVector2f& tolerance,
vtkVector2f* location);
protected:
vtkPlotPie();
~vtkPlotPie();
/**
* Update the table cache.
*/
bool UpdateTableCache(vtkTable *table);
int Dimensions[4];
/**
* The color series to use for the pie.
*/
vtkSmartPointer<vtkColorSeries> ColorSeries;
/**
* Store a well packed set of angles for the wedges of the pie.
*/
vtkPoints2D *Points;
/**
* The point cache is marked dirty until it has been initialized.
*/
vtkTimeStamp BuildTime;
private:
vtkPlotPie(const vtkPlotPie &) VTK_DELETE_FUNCTION;
void operator=(const vtkPlotPie &) VTK_DELETE_FUNCTION;
vtkPlotPiePrivate *Private;
};
#endif //vtkPlotPie_h
|