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 -------------------------------------------------------------------------*/
35 #ifndef vtkDataObjectToTable_h
36 #define vtkDataObjectToTable_h
37 
38 #include "vtkInfovisCoreModule.h" // For export macro
39 #include "vtkTableAlgorithm.h"
40 
41 class VTKINFOVISCORE_EXPORT vtkDataObjectToTable : public vtkTableAlgorithm
42 {
43 public:
44  static vtkDataObjectToTable* New();
46  void PrintSelf(ostream& os, vtkIndent indent);
47 
48  enum
49  {
50  FIELD_DATA = 0,
51  POINT_DATA = 1,
52  CELL_DATA = 2,
53  VERTEX_DATA = 3,
54  EDGE_DATA = 4
55  };
56 
58 
62  vtkGetMacro(FieldType, int);
63  vtkSetClampMacro(FieldType, int, 0, 4);
65 
66 protected:
69 
71 
72  int RequestData(
76 
77  int FieldType;
78 
79 private:
80  vtkDataObjectToTable(const vtkDataObjectToTable&) VTK_DELETE_FUNCTION;
81  void operator=(const vtkDataObjectToTable&) VTK_DELETE_FUNCTION;
82 };
83 
84 #endif
85 
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkTableAlgorithm * New()
Store vtkAlgorithm input/output information.
extract field data as a table
a simple class to control print indentation
Definition: vtkIndent.h:39
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Superclass for algorithms that produce only vtkTables as output.
Store zero or more vtkInformation instances.