00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkQtBarChartView.h 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 ----------------------------------------------------------------------------*/ 00035 #ifndef __vtkQtBarChartView_h 00036 #define __vtkQtBarChartView_h 00037 00038 #include "QVTKWin32Header.h" 00039 #include "vtkQtChartView.h" 00040 00041 class vtkQtBarChart; 00042 class vtkQtChartSeriesModelCollection; 00043 class vtkQtChartSeriesOptions; 00044 00045 class QVTK_EXPORT vtkQtBarChartView : public vtkQtChartView 00046 { 00047 Q_OBJECT 00048 00049 public: 00050 static vtkQtBarChartView *New(); 00051 vtkTypeMacro(vtkQtBarChartView, vtkQtChartView); 00052 void PrintSelf(ostream& os, vtkIndent indent); 00053 00055 virtual void Update(); 00056 00058 void SetHelpFormat(const char* format); 00059 00061 void SetOutlineStyle(int outline); 00062 00064 void SetBarGroupFraction(float fraction); 00065 00067 void SetBarWidthFraction(float fraction); 00068 00070 virtual void AddChartSelectionHandlers(vtkQtChartMouseSelection* selector); 00071 00073 virtual vtkQtChartSeriesModelCollection* GetChartSeriesModel(); 00074 00076 virtual vtkQtChartSeriesLayer* GetChartSeriesLayer(); 00077 00079 virtual vtkQtChartSeriesOptions* GetChartSeriesOptions(int series); 00080 00081 protected: 00082 vtkQtBarChartView(); 00083 ~vtkQtBarChartView(); 00084 00085 vtkQtBarChart *BarChart; 00086 vtkQtChartSeriesModelCollection *BarModel; 00087 00088 private: 00089 vtkQtBarChartView(const vtkQtBarChartView&); // Not implemented. 00090 void operator=(const vtkQtBarChartView&); // Not implemented. 00091 }; 00092 00093 #endif