ParaView
vtkAttributeDataToTableFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkAttributeDataToTableFilter.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html 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 =========================================================================*/
26 #ifndef vtkAttributeDataToTableFilter_h
27 #define vtkAttributeDataToTableFilter_h
28 
29 #include "vtkPVVTKExtensionsRenderingModule.h" // needed for export macro
30 #include "vtkTableAlgorithm.h"
31 
32 class vtkFieldData;
33 
34 class VTKPVVTKEXTENSIONSRENDERING_EXPORT vtkAttributeDataToTableFilter : public vtkTableAlgorithm
35 {
36 public:
37  static vtkAttributeDataToTableFilter* New();
38  vtkTypeMacro(vtkAttributeDataToTableFilter, vtkTableAlgorithm);
39  void PrintSelf(ostream& os, vtkIndent indent);
40 
42 
53  vtkSetMacro(FieldAssociation, int);
54  vtkGetMacro(FieldAssociation, int);
56 
58 
64  vtkSetMacro(AddMetaData, bool);
65  vtkGetMacro(AddMetaData, bool);
66  vtkBooleanMacro(AddMetaData, bool);
68 
70 
75  vtkSetMacro(GenerateOriginalIds, bool);
76  vtkGetMacro(GenerateOriginalIds, bool);
78 
80 
84  vtkSetMacro(GenerateCellConnectivity, bool);
85  vtkGetMacro(GenerateCellConnectivity, bool);
87 
88 protected:
91 
92  // Overridden to indicate to the executive that we accept non-composite
93  // datasets. We let the executive manage the looping over the composite
94  // dataset leaves.
95  virtual int FillInputPortInformation(int port, vtkInformation* info);
96 
100  virtual int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
101 
105  virtual vtkExecutive* CreateDefaultExecutive();
106 
112  vtkFieldData* GetSelectedField(vtkDataObject* input);
113 
117  void Decorate(vtkTable* output, vtkDataObject* input);
118 
119  void PassFieldData(vtkFieldData* output, vtkFieldData* input);
120 
125 
126 private:
128  void operator=(const vtkAttributeDataToTableFilter&) VTK_DELETE_FUNCTION;
129 };
130 
131 #endif
this filter produces a vtkTable from the chosen attribute in the input data object.