This file is indexed.

/usr/include/vtk-5.8/vtkQtChartSeriesOptions.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
 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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
/*=========================================================================

  Program:   Visualization Toolkit
  Module:    vtkQtChartSeriesOptions.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.

=========================================================================*/
/*-------------------------------------------------------------------------
  Copyright 2008 Sandia Corporation.
  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
  the U.S. Government retains certain rights in this software.
-------------------------------------------------------------------------*/

/// \file vtkQtChartSeriesOptions.h
/// \date February 15, 2008

#ifndef _vtkQtChartSeriesOptions_h
#define _vtkQtChartSeriesOptions_h

#include "vtkQtChartExport.h"
#include "vtkQtChartLayer.h"  // needed for enum
#include "vtkQtPointMarker.h" // needed for enum

#include <QObject>
#include <QVariant>
#include <QMap>
#include <QBrush>
#include <QPen>
#include <QSizeF>

class vtkQtChartSeriesColors;

/// \class vtkQtChartSeriesOptions
/// \brief
///   The vtkQtChartSeriesOptions class stores the common series
///   drawing options.
class VTKQTCHART_EXPORT vtkQtChartSeriesOptions : public QObject
{
  Q_OBJECT

public:
  enum OptionType
    {
    VISIBLE,
    PEN,
    BRUSH,
    COLORS,
    AXES_CORNER,
    MARKER_STYLE,
    MARKER_SIZE,
    LABEL,
    NUMBER_OF_OPTION_TYPES
    };

public:
  /// \brief
  ///   Creates a series options object.
  /// \param parent The parent object.
  vtkQtChartSeriesOptions(QObject *parent=0);
  vtkQtChartSeriesOptions(const vtkQtChartSeriesOptions &other);
  virtual ~vtkQtChartSeriesOptions();

  vtkQtChartSeriesOptions &operator=(const vtkQtChartSeriesOptions &other);

  /// \brief
  ///   Gets whether or not the series should be visible.
  /// \return
  ///   True if the series should be visible.
  bool isVisible() const
    { return this->getGenericOption(VISIBLE).toBool(); }

  /// \brief
  ///   Sets whether or not the series should be visible.
  /// \param visible True if the series should be visible.
  void setVisible(bool visible)
    { this->setGenericOption(VISIBLE, visible); }

  /// \brief
  ///   Gets the series pen.
  /// \return
  ///   A reference to the series pen.
  QPen getPen() const
    { return this->getGenericOption(PEN).value<QPen>(); }

  /// \brief
  ///   Sets the series pen.
  /// \param pen The new series pen.
  void setPen(const QPen &pen)
    { return this->setGenericOption(PEN, pen); }

  /// \brief
  ///   Gets the series brush.
  /// \return
  ///   A reference to the series brush.
  QBrush getBrush() const
    { return this->getGenericOption(BRUSH).value<QBrush>(); }

  /// \brief
  ///   Sets the series brush.
  /// \param brush The new series brush.
  void setBrush(const QBrush &brush)
    { this->setGenericOption(BRUSH, brush); }

  /// \brief
  ///   Gets the series colors object.
  /// \return
  ///   A pointer to the series colors object.
  vtkQtChartSeriesColors *getSeriesColors() const;

  /// \brief
  ///   Sets the series colors object.
  ///
  /// If the series colors object is not null, the series should be
  /// drawn in multiple colors.
  ///
  /// \param colors The new series colors object.
  void setSeriesColors(vtkQtChartSeriesColors *colors);

  /// \brief
  ///   Gets the axes corner for the series.
  /// \return
  ///   The axes corner for the series.
  vtkQtChartLayer::AxesCorner getAxesCorner() const
    { 
    return static_cast<vtkQtChartLayer::AxesCorner>(
      this->getGenericOption(AXES_CORNER).value<int>());
    }

  /// \brief
  ///   Sets the axes corner for the series.
  /// \param axes The new axes corner for the series.
  void setAxesCorner(vtkQtChartLayer::AxesCorner axes)
    { this->setGenericOption(AXES_CORNER, axes); }

  /// \brief
  ///   Gets the series marker style.
  /// \return
  ///   The series marker style.
  vtkQtPointMarker::MarkerStyle getMarkerStyle() const
    {
    return
      static_cast<vtkQtPointMarker::MarkerStyle>(
      this->getGenericOption(MARKER_STYLE).value<int>());
    }

  /// \brief
  ///   Sets the series marker style.
  /// \param style The new series marker style.
  void setMarkerStyle(vtkQtPointMarker::MarkerStyle style)
    { 
    this->setGenericOption(MARKER_STYLE, style);
    }

  /// \brief
  ///   Gets the marker size for the series.
  /// \return
  ///   A reference to the series marker size.
  QSizeF getMarkerSize() const
    { return this->getGenericOption(MARKER_SIZE).value<QSizeF>(); }

  /// \brief
  ///   Sets the marker size for the series.
  /// \param size The new series marker size.
  void setMarkerSize(const QSizeF &size)
    { this->setGenericOption(MARKER_SIZE, size); }

  /// \brief
  ///   Gets the label for this series, if any. If an empty string is returned,
  ///   the default, then the name of the series is used as the label.
  QString getLabel() const
    { return this->getGenericOption(LABEL).toString(); }

  void setLabel(const QString& label)
    { this->setGenericOption(LABEL, label); }

  /// \brief
  ///   Sets the option using generic API.
  void setGenericOption(OptionType type, const QVariant& value);

  /// \brief
  ///   Gets the option using generic API.
  QVariant getGenericOption(OptionType type) const;

  /// \brief
  ///   Set the default value.
  void setDefaultOption(OptionType type, const QVariant& value);

signals:
  /// \brief
  ///   Emitted whenever any of the options change.
  /// \param type Type of the option that was changed.
  /// \param newValue The new value for the option.
  /// \param oldValue The previous value for the option, if any.
  void dataChanged(int type,
    const QVariant& newValue, const QVariant& oldValue);

private:
  QMap<OptionType, QVariant> Data;
  QMap<OptionType, QVariant> Defaults;

  void InitializeDefaults();
};

#endif