/usr/include/vtkQtChartSeriesModelCollection.h is in libvtk5-qt4-dev 5.8.0-17.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 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkQtChartSeriesModelCollection.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 vtkQtChartSeriesModelCollection.h
/// \date February 8, 2008
#ifndef _vtkQtChartSeriesModelCollection_h
#define _vtkQtChartSeriesModelCollection_h
#include "vtkQtChartExport.h"
#include "vtkQtChartSeriesModel.h"
/// \class vtkQtChartSeriesModelCollection
/// \brief
/// The vtkQtChartSeriesModelCollection class is used to combine
/// chart series models.
///
/// The collection maps the overall series index to the model
/// specific series index.
class VTKQTCHART_EXPORT vtkQtChartSeriesModelCollection :
public vtkQtChartSeriesModel
{
Q_OBJECT
public:
/// \brief
/// Creates a chart series model collection.
/// \param parent The parent object.
vtkQtChartSeriesModelCollection(QObject *parent=0);
virtual ~vtkQtChartSeriesModelCollection() {}
/// \name vtkQtChartSeriesModel Methods
//@{
virtual int getNumberOfSeries() const;
virtual int getNumberOfSeriesValues(int series) const;
virtual QVariant getSeriesName(int series) const;
virtual QVariant getSeriesValue(int series, int index, int component) const;
virtual QList<QVariant> getSeriesRange(int series, int component) const;
//@}
/// \brief
/// Adds a series model to the collection.
/// \param model The series model to add.
void addSeriesModel(vtkQtChartSeriesModel *model);
/// \brief
/// Removes a series model from the collection.
/// \param model The series model to remove.
void removeSeriesModel(vtkQtChartSeriesModel *model);
/// \brief
/// Gets the number of series models in the collection.
/// \return
/// The number of series models in the collection.
int getNumberOfSeriesModels() const;
/// \brief
/// Gets the series model at the specified index.
/// \param index The series model index.
/// \return
/// A pointer to the series model.
vtkQtChartSeriesModel *getSeriesModel(int index) const;
/// \brief
/// Maps an index from a series model to an index in the collection.
/// \param model The series model, must be a member of the model collection
/// \param index A series index from the given series model
/// \return
/// A series index in the series model collection.
/// Returns 0 if model is not in collection.
int mapSeriesIndexToCollectionIndex(vtkQtChartSeriesModel* model, int index) const;
protected slots:
/// \brief
/// Called when a series is about to be inserted into a model.
///
/// This method uses the signal sender to determine which model has
/// changed. It then maps the model series indexes to collection
/// series indexes and re-emits the signal.
///
/// \param first The first model series index.
/// \param last The last model series index.
void onSeriesAboutToBeInserted(int first, int last);
/// \brief
/// Called when a series is inserted into a model.
/// \param first The first model series index.
/// \param last The last model series index.
void onSeriesInserted(int first, int last);
/// \brief
/// Called when a series is about to be removed from a model.
/// \param first The first model series index.
/// \param last The last model series index.
void onSeriesAboutToBeRemoved(int first, int last);
/// \brief
/// Called when a series is removed from a model.
/// \param first The first model series index.
/// \param last The last model series index.
void onSeriesRemoved(int first, int last);
private:
/// \brief
/// Gets the series model for the given index.
/// \param series The collection series index. Used to return the
/// model series index.
/// \return
/// A pointer to the series model.
vtkQtChartSeriesModel *modelForSeries(int &series) const;
/// \brief
/// Gets the first series in the given model.
/// \param model The series model.
/// \return
/// The first series in the given model.
int seriesForModel(vtkQtChartSeriesModel *model) const;
private:
QList<vtkQtChartSeriesModel *> Models; ///< Stores the models.
private:
vtkQtChartSeriesModelCollection(const vtkQtChartSeriesModelCollection &);
vtkQtChartSeriesModelCollection &operator=(
const vtkQtChartSeriesModelCollection &);
};
#endif
|