VTK
dox/Infovis/vtkDataObjectToTable.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkDataObjectToTable.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 2008 Sandia Corporation.
00017   Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
00018   the U.S. Government retains certain rights in this software.
00019 -------------------------------------------------------------------------*/
00034 #ifndef __vtkDataObjectToTable_h
00035 #define __vtkDataObjectToTable_h
00036 
00037 #include "vtkTableAlgorithm.h"
00038 
00039 class VTK_INFOVIS_EXPORT vtkDataObjectToTable : public vtkTableAlgorithm
00040 {
00041 public:
00042   static vtkDataObjectToTable* New();
00043   vtkTypeMacro(vtkDataObjectToTable,vtkTableAlgorithm);
00044   void PrintSelf(ostream& os, vtkIndent indent);
00045   
00046   //BTX
00047   enum
00048     {
00049     FIELD_DATA = 0,
00050     POINT_DATA = 1,
00051     CELL_DATA = 2,
00052     VERTEX_DATA = 3,
00053     EDGE_DATA = 4
00054     };
00055   //ETX
00056   
00058 
00060   vtkGetMacro(FieldType, int);
00061   vtkSetClampMacro(FieldType, int, 0, 4);
00063   
00064 protected:
00065   vtkDataObjectToTable();
00066   ~vtkDataObjectToTable();
00067   
00068   int FillInputPortInformation(int port, vtkInformation* info);
00069   
00070   int RequestData(
00071     vtkInformation*, 
00072     vtkInformationVector**, 
00073     vtkInformationVector*);
00074   
00075   int FieldType;
00076 
00077 private:
00078   vtkDataObjectToTable(const vtkDataObjectToTable&); // Not implemented
00079   void operator=(const vtkDataObjectToTable&);   // Not implemented
00080 };
00081 
00082 #endif
00083