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   
00047   //BTX
00049   vtkQtChartTableSeriesModel* GetSeriesModel();
00050 
00051 
00053 
00056   void SetOptionsModel(vtkQtChartSeriesOptionsModel*);
00057   vtkQtChartSeriesOptionsModel* GetOptionsModel();
00058   //ETX
00060 
00063   int GetNumberOfSeries();
00064 
00068   const char* GetSeriesName(int series);
00069 
00071 
00073   void SetColumnsAsSeries(bool);
00074   vtkGetMacro(ColumnsAsSeries,int);
00076 
00077 protected:
00078   vtkQtChartRepresentation();
00079   ~vtkQtChartRepresentation();
00080   
00083   bool AddToView(vtkView* view);
00084   
00087   bool RemoveFromView(vtkView* view);
00088 
00089   bool ColumnsAsSeries;
00090 
00091 private:
00092 
00093   //BTX
00094   class vtkInternal;
00095   vtkInternal* Internal;
00096   //ETX
00097 
00098   vtkQtChartRepresentation(const vtkQtChartRepresentation&);  // Not implemented.
00099   void operator=(const vtkQtChartRepresentation&);  // Not implemented.
00100 };
00101 
00102 #endif