This file is indexed.

/usr/include/Wt/Chart/WEquidistantGridData is in libwt-dev 3.3.4+dfsg-6ubuntu1.

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
// This may look like C code, but it's really -*- C++ -*-
/*
 * Copyright (C) 2013 Emweb bvba, Leuven, Belgium.
 *
 * See the LICENSE file for terms of use.
 */

#ifndef CHART_WEQUIDISTANTGRIDDATA_H
#define CHART_WEQUIDISTANTGRIDDATA_H

#include <Wt/Chart/WAbstractGridData>

namespace Wt {
  namespace Chart {

/*! \class WEquidistantGridData
 *  \brief Class representing grid-based data for on a 3D chart.
 *
 * General information can be found at WAbstractDataSeries3D. The model for 
 * this dataseries does not contain an x- and y-axis. Instead the class 
 * derives the x- and y-values from the minimum and delta provided in the 
 * constructor. The size of the model determines the size of the grid. The 
 * model itself is structured as a table, where every value represents the 
 * z-value of a data-point. The corresponding x- and y-values are calculated 
 * by adding delta times the row/column-index to the axis-minimum.
 *
 * \ingroup charts
 */
class WT_API WEquidistantGridData : public WAbstractGridData {
public:
  /*! \brief Constructor
   */
  WEquidistantGridData(WAbstractItemModel *model,
		       double XMin,
		       double deltaX,
		       double YMin,
		       double deltaY);

  virtual double minimum(Axis axis) const;

  virtual double maximum(Axis axis) const;
  
  /*! \brief Sets the minimum and delta for the X-axis.
   */
  void setXAbscis(double XMinimum, double deltaX);

  /*! \brief Returns the minimum value of the X-axis.
   *
   * \sa setXAbscis()
   */
  double XMinimum() const { return XMinimum_; }

  /*! \brief Returns the delta value of the X-axis.
   *
   * The delta is the interval between subsequent values on the axis.
   *
   * \sa setXAbscis()
   */
  double deltaX() const {return deltaX_; } 
  
  /*! \brief Sets the minimum and delta for the Y-axis.
   */
  void setYAbscis(double YMinimum, double deltaY);

  /*! \brief Returns the minimum value of the Y-axis.
   *
   * \sa setYAbscis()
   */
  double YMinimum() const { return YMinimum_; }

  /*! \brief Returns the delta value of the Y-axis.
   *
   * The delta is the interval between subsequent values on the axis.
   *
   * \sa setYAbscis()
   */
  double deltaY() const {return deltaY_; } 

  // below = internal API
  virtual int nbXPoints() const;
  virtual int nbYPoints() const;
  virtual WString axisLabel(int u, Axis axis) const;
  virtual boost::any data(int i, int j) const;
  
protected:
  virtual int countSimpleData() const;
  virtual void pointDataFromModel(FloatBuffer& simplePtsArray,
				  FloatBuffer& simplePtsSize,
				  FloatBuffer& coloredPtsArray,
				  FloatBuffer& coloredPtsSize,
				  FloatBuffer& coloredPtsColor) const;
  virtual void surfaceDataFromModel(std::vector<FloatBuffer>& simplePtsArrays) const;
  virtual void barDataFromModel(std::vector<FloatBuffer>& simplePtsArrays) const;
  virtual void barDataFromModel(std::vector<FloatBuffer>& simplePtsArrays,
				std::vector<FloatBuffer>& coloredPtsArrays,
				std::vector<FloatBuffer>& coloredPtsColors) const;

private:
  void findRange() const;

  double XMinimum_;
  double deltaX_;
  double YMinimum_;
  double deltaY_;
};
    
  }
}

#endif