00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkQtStatisticalBoxChartView.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 ----------------------------------------------------------------------------*/ 00019 00020 #ifndef __vtkQtStatisticalBoxChartView_h 00021 #define __vtkQtStatisticalBoxChartView_h 00022 00023 #include "QVTKWin32Header.h" 00024 #include "vtkQtChartView.h" 00025 #include <QPointer> 00026 00027 class vtkQtStatisticalBoxChart; 00028 class vtkQtChartSeriesModelCollection; 00029 class vtkQtChartSeriesOptions; 00030 00031 class QVTK_EXPORT vtkQtStatisticalBoxChartView : public vtkQtChartView 00032 { 00033 Q_OBJECT 00034 00035 public: 00036 static vtkQtStatisticalBoxChartView *New(); 00037 vtkTypeMacro(vtkQtStatisticalBoxChartView, vtkQtChartView); 00038 void PrintSelf(ostream& os, vtkIndent indent); 00039 00040 // Description: 00041 // Updates the view. 00042 virtual void Update(); 00043 00044 // Description: 00045 // Sets the box help format. 00046 void SetHelpFormat(const char* format); 00047 00048 // Description: 00049 // Sets the outlier help format. 00050 void SetOutlierFormat(const char* format); 00051 00052 // Description: 00053 // Sets the box outline style. 00054 void SetOutlineStyle(int outline); 00055 00056 // Description: 00057 // Sets the box width fraction. 00058 void SetBoxWidthFraction(float fraction); 00059 00060 //BTX 00061 // Description: 00062 // Adds box chart selection handlers to the mouse selection. 00063 virtual void AddChartSelectionHandlers(vtkQtChartMouseSelection* selector); 00064 00065 // Description: 00066 // Gets the statistical box chart series model. 00067 virtual vtkQtChartSeriesModelCollection* GetChartSeriesModel(); 00068 00069 // Description: 00070 // Gets the chart series layer 00071 virtual vtkQtChartSeriesLayer* GetChartSeriesLayer(); 00072 00073 // Description: 00074 // Gets the statistical box chart series options. 00075 virtual vtkQtChartSeriesOptions* GetChartSeriesOptions(int series); 00076 //ETX 00077 00078 protected: 00079 vtkQtStatisticalBoxChartView(); 00080 ~vtkQtStatisticalBoxChartView(); 00081 00082 protected: 00083 vtkQtStatisticalBoxChart *BoxChart; 00084 vtkQtChartSeriesModelCollection *BoxModel; 00085 00086 private: 00087 vtkQtStatisticalBoxChartView(const vtkQtStatisticalBoxChartView&); // Not implemented. 00088 void operator=(const vtkQtStatisticalBoxChartView&); // Not implemented. 00089 }; 00090 00091 #endif