VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
GUISupport
Qt
Chart
vtkQtChartGridLayer.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkQtChartGridLayer.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 _vtkQtChartGridLayer_h
25
#define _vtkQtChartGridLayer_h
26
27
#include "vtkQtChartExport.h"
28
#include "
vtkQtChartLayer.h
"
29
30
class
vtkQtChartAxis
;
31
32
37
class
VTKQTCHART_EXPORT
vtkQtChartGridLayer
:
public
vtkQtChartLayer
38
{
39
Q_OBJECT
40
41
public
:
42
enum
{Type =
vtkQtChart_GridLayerType
};
43
44
public
:
45
vtkQtChartGridLayer
();
46
virtual
~
vtkQtChartGridLayer
();
47
48
virtual
void
setChartArea
(
vtkQtChartArea
*area);
49
50
virtual
void
layoutChart
(
const
QRectF &area);
51
52
virtual
QRectF boundingRect()
const
;
53
virtual
void
paint(QPainter *painter,
const
QStyleOptionGraphicsItem *option,
54
QWidget *widget=0);
55
56
public
slots:
60
void
setXOffset(
float
xOffset);
61
65
void
setYOffset(
float
yOffset);
66
67
private
slots:
69
void
handleGridChange();
70
71
private
:
76
void
drawAxisGrid(QPainter *painter,
vtkQtChartAxis
*axis);
77
78
private
:
79
vtkQtChartAxis
*Axis[4];
80
QSizeF *Bounds;
81
82
private
:
83
vtkQtChartGridLayer
(
const
vtkQtChartGridLayer
&);
84
vtkQtChartGridLayer
&operator=(
const
vtkQtChartGridLayer
&);
85
};
86
87
#endif
Generated on Wed May 30 2012 13:22:10 for VTK by
1.8.1