VTK
vtkDataObjectToTable.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkDataObjectToTable.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
34 #ifndef __vtkDataObjectToTable_h
35 #define __vtkDataObjectToTable_h
36 
37 #include "vtkTableAlgorithm.h"
38 
40 {
41 public:
42  static vtkDataObjectToTable* New();
44  void PrintSelf(ostream& os, vtkIndent indent);
45 
46  //BTX
47  enum
48  {
49  FIELD_DATA = 0,
50  POINT_DATA = 1,
51  CELL_DATA = 2,
52  VERTEX_DATA = 3,
53  EDGE_DATA = 4
54  };
55  //ETX
56 
58 
60  vtkGetMacro(FieldType, int);
61  vtkSetClampMacro(FieldType, int, 0, 4);
63 
64 protected:
67 
69 
70  int RequestData(
74 
75  int FieldType;
76 
77 private:
78  vtkDataObjectToTable(const vtkDataObjectToTable&); // Not implemented
79  void operator=(const vtkDataObjectToTable&); // Not implemented
80 };
81 
82 #endif
83 
void PrintSelf(ostream &os, vtkIndent indent)
static vtkTableAlgorithm * New()
Store vtkAlgorithm input/output information.
extract field data as a table
a simple class to control print indentation
Definition: vtkIndent.h:37
virtual int FillInputPortInformation(int port, vtkInformation *info)
#define VTK_INFOVIS_EXPORT
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Superclass for algorithms that produce only vtkTables as output.
Store zero or more vtkInformation instances.