VTK
vtkQtChartContentsArea.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkQtChartContentsArea.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 _vtkQtChartContentsArea_h
25 #define _vtkQtChartContentsArea_h
26 
27 #include "vtkQtChartExport.h"
28 #include <QGraphicsItem>
29 
30 #include "vtkQtChartGraphicsItemTypes.h" // needed for enum
31 
32 
33 class VTKQTCHART_EXPORT vtkQtChartContentsArea : public QGraphicsItem
34 {
35 public:
37 
38 public:
39  vtkQtChartContentsArea(QGraphicsItem *parent=0, QGraphicsScene *scene=0);
41 
45  void setXOffset(float offset);
46 
50  void setYOffset(float offset);
51 
52  virtual int type() const {return vtkQtChartContentsArea::Type;}
53  virtual QRectF boundingRect() const;
54  virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
55  QWidget *widget=0);
56 
57 private:
58  void updateMatrix();
59 
60 private:
61  float XOffset;
62  float YOffset;
63 };
64 
65 #endif
virtual int type() const