vtkPVPostFilter.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
3 // SPDX-License-Identifier: BSD-3-Clause
17 #ifndef vtkPVPostFilter_h
18 #define vtkPVPostFilter_h
19 
20 #include "vtkDataObjectAlgorithm.h"
21 #include "vtkPVVTKExtensionsCoreModule.h" // needed for export macro
22 
23 #include <string> // for std::string
24 
26 {
27 public:
28  static vtkPVPostFilter* New();
30  void PrintSelf(ostream& os, vtkIndent indent) override;
31 
38 
39  static std::string DefaultComponentName(int componentNumber, int componentCount);
40 
41 protected:
43  ~vtkPVPostFilter() override;
44 
45  int FillInputPortInformation(int port, vtkInformation* info) override;
48 
49  int DoAnyNeededConversions(vtkDataObject* output);
50  int DoAnyNeededConversions(vtkDataSet* dataset);
51  int DoAnyNeededConversions(vtkDataSet* output, const char* requested_name, int fieldAssociation,
52  const char* demangled_name, const char* demagled_component_name);
53  void CellDataToPointData(vtkDataSet* output, const char* name);
54  void PointDataToCellData(vtkDataSet* output, const char* name);
55  int ExtractComponent(vtkDataSetAttributes* dsa, const char* requested_name,
56  const char* demangled_name, const char* demagled_component_name);
57 
58 private:
59  vtkPVPostFilter(const vtkPVPostFilter&) = delete;
60  void operator=(const vtkPVPostFilter&) = delete;
61 };
62 
63 #endif
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual vtkExecutive * CreateDefaultExecutive()
Post Filter for on demand conversion.
static vtkDataObjectAlgorithm * New()
#define VTKPVVTKEXTENSIONSCORE_EXPORT
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
virtual int FillInputPortInformation(int port, vtkInformation *info)
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
void operator=(const vtkObjectBase &)