/usr/include/Wt/Chart/WSelection 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 | // This may look like C code, but it's really -*- C++ -*-
/*
* Copyright (C) 2014 Emweb bvba, Herent, Belgium.
*
* See the LICENSE file for terms of use.
*/
#ifndef CHART_WSELECTION_H_
#define CHART_WSELECTION_H_
#include <limits>
#include <Wt/WModelIndex>
namespace Wt {
namespace Chart {
/*! \class WSelection Wt/Chart/WSelection
* \brief Represents a selection on a chart.
*
* \ingroup charts
*/
class WT_API WSelection {
public:
double distance; //!< The distance from the look point to the selected point.
WSelection()
: distance(std::numeric_limits<double>::infinity())
{}
WSelection(double distance)
: distance(distance)
{}
};
/*! \class WPointSelection Wt/Chart/WSelection
* \brief Represents a single point selection on a WScatterData
*/
class WT_API WPointSelection : public WSelection {
public:
int rowNumber; //!< The row number of the WAbstractDataModel that the selected point is defined in.
WPointSelection()
: WSelection(), rowNumber(-1)
{}
WPointSelection(double distance, int rowNumber)
: WSelection(distance), rowNumber(rowNumber)
{}
};
/*! \class WSurfaceSelection Wt/Chart/WSelection
\brief Represents a selection on a surface plot.
*/
class WT_API WSurfaceSelection : public WSelection {
public:
double x; //!< The x coordinate in the coordinate system of the WAbstractDataModel
double y; //!< The y coordinate in the coordinate system of the WAbstractDataModel
double z; //!< The z coordinate in the coordinate system of the WAbstractDataModel
WSurfaceSelection()
: WSelection(), x(0.0), y(0.0), z(0.0)
{}
WSurfaceSelection(double distance, double x, double y, double z)
: WSelection(distance), x(x), y(y), z(z)
{}
};
/*! \class WBarSelection Wt/Chart/WSelection
* \brief Represents a selection of a bar.
*/
class WT_API WBarSelection : public WSelection {
public:
WModelIndex index; //!< The index that corresponds to the selected bar in the WAbstractDataModel
WBarSelection()
: WSelection(), index(WModelIndex())
{}
WBarSelection(double distance, WModelIndex index)
: WSelection(distance), index(index)
{}
};
}
}
#endif // CHART_WSELECTION_H_
|