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 "vtkPVVTKExtensionsMiscModule.h" // needed for export macro
30 #include "vtkTableAlgorithm.h"
31 
32 class vtkDataSet;
33 class vtkFieldData;
34 class vtkIdTypeArray;
35 
37 {
38 public:
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
44 
55  vtkSetMacro(FieldAssociation, int);
56  vtkGetMacro(FieldAssociation, int);
58 
60 
66  vtkSetMacro(AddMetaData, bool);
67  vtkGetMacro(AddMetaData, bool);
68  vtkBooleanMacro(AddMetaData, bool);
70 
72 
77  vtkSetMacro(GenerateOriginalIds, bool);
78  vtkGetMacro(GenerateOriginalIds, bool);
80 
82 
86  vtkSetMacro(GenerateCellConnectivity, bool);
87  vtkGetMacro(GenerateCellConnectivity, bool);
89 
90 protected:
93 
94  // Overridden to indicate to the executive that we accept non-composite
95  // datasets. We let the executive manage the looping over the composite
96  // dataset leaves.
97  int FillInputPortInformation(int port, vtkInformation* info) override;
98 
103 
108 
112  void Decorate(vtkTable* output, vtkDataObject* input);
113 
114  void PassFieldData(vtkFieldData* output, vtkFieldData* input);
115  void AddCellTypeAndConnectivity(vtkTable* output, vtkDataSet* ds);
116 
121 
122 private:
124  void operator=(const vtkAttributeDataToTableFilter&) = delete;
125 
130  void ConvertToOriginalIds(vtkDataSet* inputDS, vtkIdTypeArray* indices);
131 };
132 
133 #endif
virtual vtkExecutive * CreateDefaultExecutive()
static vtkTableAlgorithm * New()
this filter produces a vtkTable from the chosen attribute in the input data object.
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
virtual int FillInputPortInformation(int port, vtkInformation *info)
#define VTKPVVTKEXTENSIONSMISC_EXPORT
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
void operator=(const vtkObjectBase &)