/usr/include/vtkQtChartSeriesOptionsModel.h is in libvtk5-qt4-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 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkQtChartSeriesOptionsModel.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.
-------------------------------------------------------------------------*/
#ifndef __vtkQtChartSeriesOptionsModel_h
#define __vtkQtChartSeriesOptionsModel_h
#include "vtkQtChartExport.h"
#include <QObject>
class vtkQtChartSeriesModel;
class vtkQtChartSeriesOptions;
/// \class vtkQtChartSeriesOptionsModel
/// \brief
/// vtkQtChartSeriesOptionsModel is the base class for all chart series options
/// models. This can be considered analogous to vtkQtChartSeriesModel except
/// that instead of providing details about the series, it provides the options
/// for the series.
class VTKQTCHART_EXPORT vtkQtChartSeriesOptionsModel : public QObject
{
Q_OBJECT
public:
typedef QObject Superclass;
/// \brief
/// Creates a chart series options model.
/// \param param The parent object.
vtkQtChartSeriesOptionsModel(QObject* parent=0);
virtual ~vtkQtChartSeriesOptionsModel() {}
/// \brief
/// Gets the number of options.
virtual int getNumberOfOptions() const = 0;
/// \brief
/// Gets the options for a particular series.
/// \param series The series index
/// \return
/// The options for the series at the given index.
virtual vtkQtChartSeriesOptions* getOptions(int series) const = 0;
/// \brief
/// Gets the index for the given series options.
/// \param options The series options object.
/// \return
/// The index for the given series options.
virtual int getOptionsIndex(vtkQtChartSeriesOptions *options) const = 0;
public slots:
/// \brief
/// Resets the model.
virtual void reset()=0;
signals:
/// Emitted when the model is about to be reset.
void modelAboutToBeReset();
/// Emitted when the model has been reset.
void modelReset();
/// \brief
/// Emitted when options will be inserted into the model.
/// \param first The first index to be added.
/// \param last The last index to be added.
void optionsAboutToBeInserted(int first, int last);
/// \brief
/// Emitted when options have been inserted into the model.
/// \param first The first index that was inserted.
/// \param last The last index that was inserted.
void optionsInserted(int first, int last);
/// \brief
/// Emitted when options will be removed from the model.
/// \param first The first index to be removed.
/// \param last The last index to be removed.
void optionsAboutToBeRemoved(int first, int last);
/// \brief
/// Emitted when options have been removed from the model.
/// \param first The first index that was removed.
/// \param last The last index that was removed.
void optionsRemoved(int first, int last);
/// \brief
/// Emitted when options fire dataChanged() signal.
/// \param options The options that fired the dataChanged() signal.
/// \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 optionsChanged(vtkQtChartSeriesOptions* options,
int type, const QVariant& newValue, const QVariant& oldValue);
protected:
/// \brief Creates a new options object.
/// \param parent The parent QObject for the options.
/// \return
/// The new instance of vtkQtChartSeriesOptions with proper default values.
vtkQtChartSeriesOptions* newOptions(QObject* parent);
/// \brief Releases the options. This will delete the options instance.
void releaseOptions(vtkQtChartSeriesOptions* options);
private slots:
/// \brief called when the options fires dataChanged() signal.
void optionsChanged(
int type, const QVariant& newValue, const QVariant& oldValue);
};
#endif
|