• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

dox/GUISupport/Qt/vtkQtTableRepresentation.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkQtTableRepresentation.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 
00050 #ifndef __vtkQtTableRepresentation_h
00051 #define __vtkQtTableRepresentation_h
00052 
00053 #include "QVTKWin32Header.h"
00054 #include "vtkDataRepresentation.h"
00055 
00056 class vtkDoubleArray;
00057 class vtkLookupTable;
00058 class vtkQtTableModelAdapter;
00059 
00060 // ----------------------------------------------------------------------
00061 
00062 class QVTK_EXPORT vtkQtTableRepresentation : public vtkDataRepresentation
00063 {
00064 public:
00065   vtkTypeRevisionMacro(vtkQtTableRepresentation, vtkDataRepresentation);
00066   void PrintSelf(ostream &os, vtkIndent indent);
00067 
00071   virtual void SetInputConnection(vtkAlgorithmOutput *conn);
00072 
00074 
00076   void SetColorTable(vtkLookupTable *t);
00077   vtkGetObjectMacro(ColorTable, vtkLookupTable);
00079 
00081 
00084   void SetKeyColumn(const char* col);
00085   // This wasn't actually implemented anywhere so
00086   // I commented out the declaration:
00087   // char* GetKeyColumn();
00089 
00091 
00093   vtkSetStringMacro(FirstDataColumn);
00094   vtkGetStringMacro(FirstDataColumn);
00096 
00098 
00100   vtkSetStringMacro(LastDataColumn);
00101   vtkGetStringMacro(LastDataColumn);
00103 
00105   virtual void Update();
00106 
00107 protected:
00108   vtkQtTableRepresentation();
00109   ~vtkQtTableRepresentation();
00110 
00111   vtkSetStringMacro(KeyColumnInternal);
00112   vtkGetStringMacro(KeyColumnInternal);
00113 
00114   // ----------------------------------------------------------------------
00115   vtkQtTableModelAdapter *ModelAdapter;
00116   vtkLookupTable *ColorTable;
00117   vtkDoubleArray *SeriesColors;
00118   char *KeyColumnInternal;
00119   char *FirstDataColumn;
00120   char *LastDataColumn;
00121 
00122   virtual void ResetModel();
00123   virtual void CreateSeriesColors();
00124 
00127   virtual void SetModelType() { };
00128 
00129 private:
00130   vtkQtTableRepresentation(const vtkQtTableRepresentation &);
00131   void operator=(const vtkQtTableRepresentation &);
00132 
00133 };
00134 
00135 #endif

Generated by  doxygen 1.7.1