VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
GUISupport
Qt
Chart
vtkQtChartTableSeriesModel.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkQtChartTableSeriesModel.h
5
6
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7
All rights reserved.
8
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10
This software is distributed WITHOUT ANY WARRANTY; without even
11
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
PURPOSE. See the above copyright notice for more information.
13
14
=========================================================================*/
15
/*-------------------------------------------------------------------------
16
Copyright 2008 Sandia Corporation.
17
Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18
the U.S. Government retains certain rights in this software.
19
-------------------------------------------------------------------------*/
20
23
24
#ifndef _vtkQtChartTableSeriesModel_h
25
#define _vtkQtChartTableSeriesModel_h
26
27
#include "vtkQtChartExport.h"
28
#include "
vtkQtChartSeriesModel.h
"
29
30
class
vtkQtChartSeriesModelRange
;
31
class
QAbstractItemModel;
32
class
QModelIndex;
33
34
39
class
VTKQTCHART_EXPORT
vtkQtChartTableSeriesModel
:
40
public
vtkQtChartSeriesModel
41
{
42
Q_OBJECT
43
44
public
:
49
vtkQtChartTableSeriesModel
(QAbstractItemModel *model, QObject *parent=0);
50
virtual
~vtkQtChartTableSeriesModel
() {}
51
56
QAbstractItemModel *
getItemModel
()
const
{
return
this->Model;}
57
61
void
setItemModel(QAbstractItemModel *model);
62
67
bool
getColumnsAsSeries()
const
;
68
72
void
setColumnsAsSeries(
bool
columnsAsSeries);
73
75
76
virtual
int
getNumberOfSeries
()
const
;
77
virtual
int
getNumberOfSeriesValues
(
int
series)
const
;
78
virtual
QVariant
getSeriesName
(
int
series)
const
;
79
virtual
QVariant
getSeriesValue
(
int
series,
int
index
,
int
component
)
const
;
80
virtual
QList<QVariant>
getSeriesRange
(
int
series,
int
component
)
const
;
82
83
protected
slots:
89
void
rowsAboutToBeInserted(
const
QModelIndex &
index
,
int
first,
int
last);
90
96
void
rowsInserted(
const
QModelIndex &
index
,
int
first,
int
last);
97
103
void
columnsAboutToBeInserted(
const
QModelIndex &
index
,
int
first,
int
last);
104
110
void
columnsInserted(
const
QModelIndex &
index
,
int
first,
int
last);
111
117
void
rowsAboutToBeRemoved(
const
QModelIndex &
index
,
int
first,
int
last);
118
124
void
rowsRemoved(
const
QModelIndex &
index
,
int
first,
int
last);
125
131
void
columnsAboutToBeRemoved(
const
QModelIndex &
index
,
int
first,
int
last);
132
138
void
columnsRemoved(
const
QModelIndex &
index
,
int
first,
int
last);
139
140
protected
:
141
QAbstractItemModel *
Model
;
142
vtkQtChartSeriesModelRange
*
Range
;
143
bool
ColumnsAsSeries
;
144
145
private
:
146
vtkQtChartTableSeriesModel
(
const
vtkQtChartTableSeriesModel
&);
147
vtkQtChartTableSeriesModel
&operator=(
const
vtkQtChartTableSeriesModel
&);
148
};
149
150
#endif
151
Generated on Wed Nov 21 2012 21:33:56 for VTK by
1.8.2