VTK
dox/GUISupport/Qt/vtkQtStackedChartView.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkQtStackedChartView.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 
00030 #ifndef _vtkQtStackedChartView_h
00031 #define _vtkQtStackedChartView_h
00032 
00033 #include "QVTKWin32Header.h"
00034 #include "vtkQtChartView.h"
00035 #include <QPointer>
00036 
00037 class vtkQtStackedChart;
00038 class vtkQtChartSeriesModelCollection;
00039 class vtkQtChartSeriesOptions;
00040 
00041 class QVTK_EXPORT vtkQtStackedChartView : public vtkQtChartView
00042 {
00043 Q_OBJECT
00044 
00045 public:
00046   static vtkQtStackedChartView *New();
00047   vtkTypeMacro(vtkQtStackedChartView, vtkQtChartView);
00048   void PrintSelf(ostream& os, vtkIndent indent);
00049 
00051   virtual void Update();
00052 
00054   void SetHelpFormat(const char* format);
00055 
00057   void SetSumNormalized(bool normalized);
00058 
00060   void SetGradientDisplayed(bool gradient);
00061 
00063   virtual void AddChartSelectionHandlers(vtkQtChartMouseSelection* selector);
00064 
00066   virtual vtkQtChartSeriesLayer* GetChartSeriesLayer();
00067 
00069   virtual vtkQtChartSeriesModelCollection* GetChartSeriesModel();
00070 
00072   virtual vtkQtChartSeriesOptions* GetChartSeriesOptions(int series);
00073 
00074 protected:
00075   vtkQtStackedChartView();
00076   ~vtkQtStackedChartView();
00077 
00078 protected:
00079   vtkQtStackedChart *StackedChart;
00080   vtkQtChartSeriesModelCollection *StackedModel;
00081 
00082 private:
00083   vtkQtStackedChartView(const vtkQtStackedChartView&);  // Not implemented.
00084   void operator=(const vtkQtStackedChartView&);  // Not implemented.
00085 };
00086 
00087 #endif