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 00020 #ifndef _vtkQtStackedChartView_h 00021 #define _vtkQtStackedChartView_h 00022 00023 #include "QVTKWin32Header.h" 00024 #include "vtkQtChartView.h" 00025 #include <QPointer> 00026 00027 class vtkQtStackedChart; 00028 class vtkQtChartSeriesModelCollection; 00029 class vtkQtChartSeriesOptions; 00030 00031 class QVTK_EXPORT vtkQtStackedChartView : public vtkQtChartView 00032 { 00033 Q_OBJECT 00034 00035 public: 00036 static vtkQtStackedChartView *New(); 00037 vtkTypeMacro(vtkQtStackedChartView, 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 stacked chart help format. 00046 void SetHelpFormat(const char* format); 00047 00048 // Description: 00049 // Sets whether or not the stacked chart sumation is normalized. 00050 void SetSumNormalized(bool normalized); 00051 00052 // Description: 00053 // Sets whether or not the stacked chart is drawn with a gradient. 00054 void SetGradientDisplayed(bool gradient); 00055 00056 // Description: 00057 // Adds stacked chart selection handlers to the mouse selection. 00058 virtual void AddChartSelectionHandlers(vtkQtChartMouseSelection* selector); 00059 00060 // Description: 00061 // Gets the chart series layer 00062 virtual vtkQtChartSeriesLayer* GetChartSeriesLayer(); 00063 00064 // Description: 00065 // Gets the stacked chart series model. 00066 virtual vtkQtChartSeriesModelCollection* GetChartSeriesModel(); 00067 00068 // Description: 00069 // Gets the stacked chart series options. 00070 virtual vtkQtChartSeriesOptions* GetChartSeriesOptions(int series); 00071 00072 protected: 00073 vtkQtStackedChartView(); 00074 ~vtkQtStackedChartView(); 00075 00076 protected: 00077 vtkQtStackedChart *StackedChart; 00078 vtkQtChartSeriesModelCollection *StackedModel; 00079 00080 private: 00081 vtkQtStackedChartView(const vtkQtStackedChartView&); // Not implemented. 00082 void operator=(const vtkQtStackedChartView&); // Not implemented. 00083 }; 00084 00085 #endif