VTK
dox/GUISupport/Qt/vtkQtStatisticalBoxChartView.h
Go to the documentation of this file.
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   // Description:
00061   // Adds box chart selection handlers to the mouse selection.
00062   virtual void AddChartSelectionHandlers(vtkQtChartMouseSelection* selector);
00063 
00064   // Description:
00065   // Gets the statistical box chart series model.
00066   virtual vtkQtChartSeriesModelCollection* GetChartSeriesModel();
00067 
00068   // Description:
00069   // Gets the chart series layer
00070   virtual vtkQtChartSeriesLayer* GetChartSeriesLayer();
00071 
00072   // Description:
00073   // Gets the statistical box chart series options.
00074   virtual vtkQtChartSeriesOptions* GetChartSeriesOptions(int series);
00075 
00076 protected:
00077   vtkQtStatisticalBoxChartView();
00078   ~vtkQtStatisticalBoxChartView();
00079 
00080 protected:
00081   vtkQtStatisticalBoxChart *BoxChart;
00082   vtkQtChartSeriesModelCollection *BoxModel;
00083 
00084 private:
00085   vtkQtStatisticalBoxChartView(const vtkQtStatisticalBoxChartView&);  // Not implemented.
00086   void operator=(const vtkQtStatisticalBoxChartView&);  // Not implemented.
00087 };
00088 
00089 #endif