VTK
dox/Infovis/Core/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 "vtkInfovisCoreModule.h" // For export macro
00038 #include "vtkTableAlgorithm.h"
00039 
00040 class VTKINFOVISCORE_EXPORT vtkDataObjectToTable : public vtkTableAlgorithm
00041 {
00042 public:
00043   static vtkDataObjectToTable* New();
00044   vtkTypeMacro(vtkDataObjectToTable,vtkTableAlgorithm);
00045   void PrintSelf(ostream& os, vtkIndent indent);
00046 
00047   //BTX
00048   enum
00049     {
00050     FIELD_DATA = 0,
00051     POINT_DATA = 1,
00052     CELL_DATA = 2,
00053     VERTEX_DATA = 3,
00054     EDGE_DATA = 4
00055     };
00056   //ETX
00057 
00059 
00061   vtkGetMacro(FieldType, int);
00062   vtkSetClampMacro(FieldType, int, 0, 4);
00064 
00065 protected:
00066   vtkDataObjectToTable();
00067   ~vtkDataObjectToTable();
00068 
00069   int FillInputPortInformation(int port, vtkInformation* info);
00070 
00071   int RequestData(
00072     vtkInformation*,
00073     vtkInformationVector**,
00074     vtkInformationVector*);
00075 
00076   int FieldType;
00077 
00078 private:
00079   vtkDataObjectToTable(const vtkDataObjectToTable&); // Not implemented
00080   void operator=(const vtkDataObjectToTable&);   // Not implemented
00081 };
00082 
00083 #endif
00084