VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
GUISupport
Qt
Chart
vtkQtChartLegendModel.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkQtChartLegendModel.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 _vtkQtChartLegendModel_h
25
#define _vtkQtChartLegendModel_h
26
27
28
#include "vtkQtChartExport.h"
29
#include <QObject>
30
#include <QPixmap>
// Needed for return type
31
#include <QString>
// Needed for return type
32
33
class
vtkQtChartLegendModelInternal;
34
class
vtkQtPointMarker
;
35
class
QPen;
36
37
41
class
VTKQTCHART_EXPORT
vtkQtChartLegendModel
:
public
QObject
42
{
43
Q_OBJECT
44
45
public
:
49
vtkQtChartLegendModel
(QObject *parent=0);
50
virtual
~
vtkQtChartLegendModel
();
51
58
int
addEntry(
const
QPixmap &icon,
const
QString &text,
bool
visible);
59
67
int
insertEntry(
68
int
index
,
const
QPixmap &icon,
const
QString &text,
bool
visible);
69
73
void
removeEntry(
int
index);
74
76
void
removeAllEntries();
77
88
void
startModifyingData();
89
96
void
finishModifyingData();
97
102
int
getNumberOfEntries()
const
;
103
110
int
getIndexForId(
unsigned
int
id
)
const
;
111
118
QPixmap getIcon(
int
index)
const
;
119
124
void
setIcon(
int
index,
const
QPixmap &icon);
125
132
QString getText(
int
index)
const
;
133
138
void
setText(
int
index,
const
QString &text);
139
144
void
setVisible(
int
index,
bool
visible);
145
148
bool
getVisible(
int
index)
const
;
149
150
signals:
154
void
entryInserted(
int
index);
155
159
void
removingEntry(
int
index);
160
164
void
entryRemoved(
int
index);
165
167
void
entriesReset();
168
172
void
iconChanged(
int
index);
173
177
void
textChanged(
int
index);
178
181
void
visibilityChanged(
int
index);
182
183
private
:
184
vtkQtChartLegendModelInternal *Internal;
185
bool
InModify;
186
};
187
188
#endif
Generated on Wed Nov 21 2012 21:33:55 for VTK by
1.8.2