VTK
dox/GUISupport/Qt/vtkQtChartRepresentation.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkQtChartRepresentation.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 ----------------------------------------------------------------------------*/
00032 #ifndef __vtkQtChartRepresentation_h
00033 #define __vtkQtChartRepresentation_h
00034 
00035 #include "vtkQtTableRepresentation.h"
00036 class vtkIntArray;
00037 class vtkQtChartSeriesOptionsModel;
00038 class vtkQtChartTableSeriesModel;
00039 
00040 class QVTK_EXPORT vtkQtChartRepresentation : public vtkQtTableRepresentation
00041 {
00042 public:
00043   static vtkQtChartRepresentation *New();
00044   vtkTypeMacro(vtkQtChartRepresentation, vtkQtTableRepresentation);
00045   void PrintSelf(ostream& os, vtkIndent indent);
00046   
00048   vtkQtChartTableSeriesModel* GetSeriesModel();
00049 
00050 
00052 
00055   void SetOptionsModel(vtkQtChartSeriesOptionsModel*);
00056   vtkQtChartSeriesOptionsModel* GetOptionsModel();
00058 
00061   int GetNumberOfSeries();
00062 
00066   const char* GetSeriesName(int series);
00067 
00069 
00071   void SetColumnsAsSeries(bool);
00072   vtkGetMacro(ColumnsAsSeries,int);
00074 
00075 protected:
00076   vtkQtChartRepresentation();
00077   ~vtkQtChartRepresentation();
00078   
00081   bool AddToView(vtkView* view);
00082   
00085   bool RemoveFromView(vtkView* view);
00086 
00087   bool ColumnsAsSeries;
00088 
00089 private:
00090 
00091   class vtkInternal;
00092   vtkInternal* Internal;
00093 
00094   vtkQtChartRepresentation(const vtkQtChartRepresentation&);  // Not implemented.
00095   void operator=(const vtkQtChartRepresentation&);  // Not implemented.
00096 };
00097 
00098 #endif