vtkPVPostFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPVPostFilter.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 =========================================================================*/
28 #ifndef vtkPVPostFilter_h
29 #define vtkPVPostFilter_h
30 
31 #include "vtkDataObjectAlgorithm.h"
32 #include "vtkPVVTKExtensionsCoreModule.h" // needed for export macro
33 
34 #include <string> // for std::string
35 
37 {
38 public:
39  static vtkPVPostFilter* New();
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
49 
50  static std::string DefaultComponentName(int componentNumber, int componentCount);
51 
52 protected:
54  ~vtkPVPostFilter() override;
55 
56  int FillInputPortInformation(int port, vtkInformation* info) override;
59 
60  int DoAnyNeededConversions(vtkDataObject* output);
61  int DoAnyNeededConversions(vtkDataSet* dataset);
62  int DoAnyNeededConversions(vtkDataSet* output, const char* requested_name, int fieldAssociation,
63  const char* demangled_name, const char* demagled_component_name);
64  void CellDataToPointData(vtkDataSet* output, const char* name);
65  void PointDataToCellData(vtkDataSet* output, const char* name);
66  int ExtractComponent(vtkDataSetAttributes* dsa, const char* requested_name,
67  const char* demangled_name, const char* demagled_component_name);
68 
69 private:
70  vtkPVPostFilter(const vtkPVPostFilter&) = delete;
71  void operator=(const vtkPVPostFilter&) = delete;
72 };
73 
74 #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 &)