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 
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   //BTX
00057   // Description:
00058   // Adds stacked chart selection handlers to the mouse selection.
00059   virtual void AddChartSelectionHandlers(vtkQtChartMouseSelection* selector);
00060 
00061   // Description:
00062   // Gets the chart series layer
00063   virtual vtkQtChartSeriesLayer* GetChartSeriesLayer();
00064 
00065   // Description:
00066   // Gets the stacked chart series model.
00067   virtual vtkQtChartSeriesModelCollection* GetChartSeriesModel();
00068 
00069   // Description:
00070   // Gets the stacked chart series options.
00071   virtual vtkQtChartSeriesOptions* GetChartSeriesOptions(int series);
00072   //ETX
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