vtkDataTabulator.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
14 #ifndef vtkDataTabulator_h
15 #define vtkDataTabulator_h
16 
17 #include "vtkDataObjectAlgorithm.h"
18 #include "vtkPVVTKExtensionsFiltersRenderingModule.h" // needed for export macro
19 #include "vtkSmartPointer.h" // for ivars
20 #include "vtkSplitColumnComponents.h" // for vtkSplitColumnComponents enums
21 
22 #include <set> // for std::set
23 #include <string> // for std::string
24 
26 class vtkPartitionedDataSet;
27 
29 {
30 public:
31  static vtkDataTabulator* New();
33  void PrintSelf(ostream& os, vtkIndent indent) override;
34 
36  void AddSelector(const char* selector);
37  void ClearSelectors();
39 
41 
45  vtkSetStringMacro(ActiveAssemblyForSelectors);
46  vtkGetStringMacro(ActiveAssemblyForSelectors);
48 
50 
53  vtkSetMacro(GenerateCellConnectivity, bool);
54  vtkGetMacro(GenerateCellConnectivity, bool);
56 
58 
69  vtkSetMacro(FieldAssociation, int);
70  vtkGetMacro(FieldAssociation, int);
72 
74 
78  vtkSetMacro(SplitComponents, int);
79  vtkGetMacro(SplitComponents, int);
81 
83 
88  vtkSetClampMacro(SplitComponentsNamingMode, int, vtkSplitColumnComponents::NUMBERS_WITH_PARENS,
90  vtkGetMacro(SplitComponentsNamingMode, int);
92 
94 
98  vtkSetMacro(GenerateOriginalIds, bool);
99  vtkGetMacro(GenerateOriginalIds, bool);
101 
105  static vtkInformationIntegerKey* COMPOSITE_INDEX();
106 
108 
111  static vtkInformationIntegerKey* HIERARCHICAL_LEVEL();
112  static vtkInformationIntegerKey* HIERARCHICAL_INDEX();
114 
120  static bool HasInputCompositeIds(vtkPartitionedDataSet* ptd);
121 
122 protected:
124  ~vtkDataTabulator() override;
125 
126  int FillOutputPortInformation(int port, vtkInformation* info) override;
128 
130 
131 private:
132  vtkDataTabulator(const vtkDataTabulator&) = delete;
133  void operator=(const vtkDataTabulator&) = delete;
134 
135  int FieldAssociation;
136  bool GenerateCellConnectivity;
137  bool GenerateOriginalIds;
138  int SplitComponents;
139  int SplitComponentsNamingMode;
140  std::set<std::string> Selectors;
141  char* ActiveAssemblyForSelectors;
142 };
143 
144 #endif
static vtkDataObjectAlgorithm * New()
Transform
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
#define VTKPVVTKEXTENSIONSFILTERSRENDERING_EXPORT
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
converts input data to a table (or composite-data of tables)
void operator=(const vtkObjectBase &)
virtual int FillOutputPortInformation(int port, vtkInformation *info)