/usr/include/vtk-5.8/vtkPlotHistogram2D.h is in libvtk5-dev 5.8.0-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 | /*=========================================================================
Program: Visualization Toolkit
Module: vtk2DHistogramItem.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 vtk2DHistogramItem - 2D histogram item.
//
// .SECTION Description
//
#ifndef __vtk2DHistogramItem_h
#define __vtk2DHistogramItem_h
#include "vtkPlot.h"
#include "vtkSmartPointer.h" // Needed for SP ivars
#include "vtkRect.h" // Needed for vtkRectf
class vtkImageData;
class vtkScalarsToColors;
class VTK_CHARTS_EXPORT vtkPlotHistogram2D : public vtkPlot
{
public:
vtkTypeMacro(vtkPlotHistogram2D, vtkPlot);
virtual void PrintSelf(ostream &os, vtkIndent indent);
// Description:
// Creates a new object.
static vtkPlotHistogram2D *New();
// Description:
// Perform any updates to the item that may be necessary before rendering.
// The scene should take care of calling this on all items before their
// Paint function is invoked.
virtual void Update();
// Description:
// Paint event for the item, called whenever it needs to be drawn.
virtual bool Paint(vtkContext2D *painter);
// Description:
// Set the input, we are expecting a vtkImageData with just one component,
// this would normally be a float or a double. It will be passed to the other
// functions as a double to generate a color.
virtual void SetInput(vtkImageData *data, vtkIdType z = 0);
virtual void SetInput(vtkTable*) { }
virtual void SetInput(vtkTable*, const vtkStdString&, const vtkStdString&) { }
// Description:
// Get the input table used by the plot.
vtkImageData * GetInputImageData();
// Description:
// Set the color transfer funtion that will be used to generate the 2D
// histogram.
void SetTransferFunction(vtkScalarsToColors *transfer);
// Description:
// Get the color transfer function that is used to generate the histogram.
vtkScalarsToColors * GetTransferFunction();
virtual void GetBounds(double bounds[4]);
virtual void SetPosition(const vtkRectf& pos);
virtual vtkRectf GetPosition();
//BTX
protected:
vtkPlotHistogram2D();
~vtkPlotHistogram2D();
// Description:
// Where all the magic happens...
void GenerateHistogram();
vtkSmartPointer<vtkImageData> Input;
vtkSmartPointer<vtkImageData> Output;
vtkSmartPointer<vtkScalarsToColors> TransferFunction;
vtkRectf Position;
private:
vtkPlotHistogram2D(const vtkPlotHistogram2D &); // Not implemented.
void operator=(const vtkPlotHistogram2D &); // Not implemented.
//ETX
};
#endif //__vtk2DHistogramItem_h
|