00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkQtStackedChartView.h,v $ 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 "vtkQtChartViewBase.h" 00024 00025 class vtkQtStackedChart; 00026 class vtkQtChartSeriesModelCollection; 00027 00028 00029 class QVTK_EXPORT vtkQtStackedChartView : public vtkQtChartViewBase 00030 { 00031 public: 00032 static vtkQtStackedChartView *New(); 00033 vtkTypeRevisionMacro(vtkQtStackedChartView, vtkQtChartViewBase); 00034 void PrintSelf(ostream& os, vtkIndent indent); 00035 00036 // Description: 00037 // Updates the view. 00038 virtual void Update(); 00039 00040 // Description: 00041 // Sets the stacked chart help format. 00042 void SetHelpFormat(const char* format); 00043 00044 // Description: 00045 // Sets whether or not the stacked chart sumation is normalized. 00046 void SetSumNormalized(bool normalized); 00047 00048 // Description: 00049 // Sets whether or not the stacked chart is drawn with a gradient. 00050 void SetGradientDisplayed(bool gradient); 00051 00052 //BTX 00053 // Description: 00054 // Adds stacked chart selection handlers to the mouse selection. 00055 virtual void AddChartSelectionHandlers(vtkQtChartMouseSelection* selector); 00056 00057 // Description: 00058 // Gets the stacked chart series model. 00059 virtual vtkQtChartSeriesModelCollection* GetChartSeriesModel(); 00060 //ETX 00061 00062 protected: 00063 vtkQtStackedChartView(); 00064 ~vtkQtStackedChartView(); 00065 00066 protected: 00067 vtkQtStackedChart *StackedChart; 00068 vtkQtChartSeriesModelCollection *StackedModel; 00069 00070 private: 00071 vtkQtStackedChartView(const vtkQtStackedChartView&); // Not implemented. 00072 void operator=(const vtkQtStackedChartView&); // Not implemented. 00073 }; 00074 00075 #endif