00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkQtChartView.h,v $ 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00015 /*---------------------------------------------------------------------------- 00016 Copyright (c) Sandia Corporation 00017 See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details. 00018 ----------------------------------------------------------------------------*/ 00030 #ifndef __vtkQtChartView_h 00031 #define __vtkQtChartView_h 00032 00033 #include "QVTKWin32Header.h" 00034 #include "vtkView.h" 00035 00036 #include <QGraphicsView> 00037 #include <QMouseEvent> 00038 #include <QTimeLine> 00039 00040 class QGraphicsScene; 00041 class QResizeEvent; 00042 class vtkQtChartArea; 00043 00044 class QVTK_EXPORT vtkQtChartView : public vtkView 00045 { 00046 public: 00047 static vtkQtChartView *New(); 00048 vtkTypeRevisionMacro(vtkQtChartView, vtkView); 00049 void PrintSelf(ostream& os, vtkIndent indent); 00050 00052 00053 virtual void SetChartView(vtkQtChartArea*); 00054 vtkQtChartArea* GetChartView() { return this->ChartView; } 00056 00058 virtual void Update(); 00059 00060 protected: 00061 vtkQtChartView(); 00062 ~vtkQtChartView(); 00063 00065 vtkQtChartArea* ChartView; 00066 00068 bool IOwnChartView; 00069 00070 private: 00071 vtkQtChartView(const vtkQtChartView&); // Not implemented. 00072 void operator=(const vtkQtChartView&); // Not implemented. 00073 }; 00074 00075 #endif