This file is indexed.

/usr/include/vtk-6.3/vtkPlotSurface.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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
/*=========================================================================

  Program:   Visualization Toolkit
  Module:    vtkPlotSurface.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 vtkPlotSurface - 3D surface plot.
//
// .SECTION Description
// 3D surface plot.
//

#ifndef vtkPlotSurface_h
#define vtkPlotSurface_h

#include "vtkChartsCoreModule.h" // For export macro
#include "vtkNew.h"              //  For vtkNew ivar
#include "vtkPlot3D.h"

class vtkContext2D;
class vtkLookupTable;
class vtkTable;

class VTKCHARTSCORE_EXPORT vtkPlotSurface : public vtkPlot3D
{
public:
  vtkTypeMacro(vtkPlotSurface, vtkPlot3D);
  virtual void PrintSelf(ostream &os, vtkIndent indent);
  static vtkPlotSurface * New();

  // Description:
  // Paint event for the XY plot, called whenever the chart needs to be drawn
  virtual bool Paint(vtkContext2D *painter);

  // Description:
  // Set the input to the surface plot.
  virtual void SetInputData(vtkTable *input);

  // Description:
  // Set the input to the surface plot.
  // Do not use these versions of SetInputData, as all the parameters
  // beyond the vtkTable are ignored.
  virtual void SetInputData(vtkTable *input, const vtkStdString &xName,
                            const vtkStdString &yName,
                            const vtkStdString &zName);
  virtual void SetInputData(vtkTable *input, const vtkStdString &xName,
                            const vtkStdString &yName,
                            const vtkStdString &zName,
                            const vtkStdString &colorName);
  virtual void SetInputData(vtkTable *input, vtkIdType xColumn,
                            vtkIdType yColumn, vtkIdType zColumn);

  // Description:
  // Set the range of the input data for the X dimension.  By default it is
  // (1, NumberOfColumns).  Calling this method after SetInputData() results
  // in recomputation of the plot's data.  Therefore, it is more efficient
  // to call it before SetInputData() when possible.
  void SetXRange(float min, float max);

  // Description:
  // Set the range of the input data for the Y dimension.  By default it is
  // (1, NumberOfRows).  Calling this method after SetInputData() results
  // in recomputation of the plot's data.  Therefore, it is more efficient
  // to call it before SetInputData() when possible.
  void SetYRange(float min, float max);

//BTX
protected:
  vtkPlotSurface();
  ~vtkPlotSurface();

  // Description:
  // Generate a surface (for OpenGL) from our list of points.
  void GenerateSurface();

  // Description:
  // Helper function used to setup a colored surface.
  void InsertSurfaceVertex(float *data, float value, int i, int j, int &pos);

  // Description:
  // Change data values if SetXRange() or SetYRange() were called.
  void RescaleData();

  // Description:
  // Map a column index to the user-specified range for the X-axis.
  float ColumnToX(int columnIndex);

  // Description:
  // Map a row index to the user-specified range for the Y-axis.
  float RowToY(int rowIndex);

  // Description:
  // Surface to render.
  std::vector<vtkVector3f> Surface;

  // Description:
  // The number of rows in the input table.
  vtkIdType NumberOfRows;

  // Description:
  // The number of columns in the input table.
  vtkIdType NumberOfColumns;

  // Description:
  // The number of vertices in the surface.
  vtkIdType NumberOfVertices;

  // Description:
  // This array indicates how the surface should be colored.
  vtkNew<vtkUnsignedCharArray> Colors;

  // Description:
  // The number of components used to color the surface.
  int ColorComponents;

  // Description:
  // The input table used to generate the surface.
  vtkTable *InputTable;

  // Description:
  // The lookup table used to color the surface by height (Z dimension).
  vtkNew<vtkLookupTable> LookupTable;

  // Description:
  // user-defined data ranges
  float XMinimum;
  float XMaximum;
  float YMinimum;
  float YMaximum;

  // Description:
  // true if user-defined data scaling has already been applied,
  // false otherwise.
  bool DataHasBeenRescaled;

private:
  vtkPlotSurface(const vtkPlotSurface &); // Not implemented.
  void operator=(const vtkPlotSurface &); // Not implemented.

//ETX
};

#endif //vtkPlotSurface_h