VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
GUISupport
Qt
Chart
vtkQtChartAxisOptions.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkQtChartAxisOptions.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 _vtkQtChartAxisOptions_h
25
#define _vtkQtChartAxisOptions_h
26
27
28
#include "vtkQtChartExport.h"
29
#include <QObject>
30
31
#include <QColor>
// Needed for member variable
32
#include <QFont>
// Needed for member variable
33
#include <QString>
// Needed for return value
34
35
class
QVariant;
36
37
42
class
VTKQTCHART_EXPORT
vtkQtChartAxisOptions
:
public
QObject
43
{
44
Q_OBJECT
45
46
public
:
47
enum
NotationType
48
{
49
Standard = 0,
50
Exponential
,
51
Engineering
,
52
StandardOrExponential
53
};
54
55
enum
AxisGridColor
56
{
57
Lighter = 0,
58
Specified
59
};
60
61
enum
AxisScale
62
{
63
Linear
,
64
Logarithmic
65
};
66
67
public
:
71
vtkQtChartAxisOptions
(QObject *parent=0);
72
76
vtkQtChartAxisOptions
(
const
vtkQtChartAxisOptions
&other);
77
virtual
~vtkQtChartAxisOptions
() {}
78
83
bool
isVisible
()
const
{
return
this->Visible;}
84
88
void
setVisible(
bool
visible);
89
94
bool
areLabelsVisible
()
const
{
return
this->ShowLabels;}
95
99
void
setLabelsVisible(
bool
visible);
100
105
bool
isGridVisible
()
const
{
return
this->ShowGrid;}
106
110
void
setGridVisible(
bool
visible);
111
116
const
QColor &
getAxisColor
()
const
{
return
this->AxisColor;}
117
126
void
setAxisColor(
const
QColor &
color
);
127
132
const
QColor &
getLabelColor
()
const
{
return
this->LabelColor;}
133
137
void
setLabelColor(
const
QColor &
color
);
138
143
const
QFont &
getLabelFont
()
const
{
return
this->LabelFont;}
144
148
void
setLabelFont(
const
QFont &font);
149
154
AxisScale
getAxisScale
()
const
{
return
this->Scale;}
155
159
void
setAxisScale(AxisScale
scale
);
160
166
int
getPrecision
()
const
{
return
this->Precision;}
167
172
void
setPrecision(
int
precision);
173
179
NotationType
getNotation
()
const
{
return
this->Notation;}
180
185
void
setNotation(NotationType notation);
186
195
void
setGridColorType(AxisGridColor
type
);
196
202
AxisGridColor
getGridColorType
()
const
{
return
this->GridType;}
203
214
QColor getGridColor()
const
;
215
224
void
setGridColor(
const
QColor &
color
);
225
231
vtkQtChartAxisOptions
&operator=(
const
vtkQtChartAxisOptions
&other);
232
238
QString formatValue(
const
QVariant &
value
)
const
;
239
240
signals:
242
void
visibilityChanged();
243
245
void
colorChanged();
246
248
void
fontChanged();
249
251
void
axisScaleChanged();
252
254
void
presentationChanged();
255
257
void
gridChanged();
258
259
private
:
261
AxisScale Scale;
262
264
NotationType Notation;
265
267
AxisGridColor GridType;
268
269
QColor AxisColor;
270
QColor GridColor;
271
QColor LabelColor;
272
QFont LabelFont;
273
int
Precision;
274
bool
Visible;
275
bool
ShowLabels;
276
bool
ShowGrid;
277
};
278
279
#endif
Generated on Thu Mar 13 2014 08:10:11 for VTK by
1.8.1.2