ParaView
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 #include "vtkStdString.h" // needed for: vtkStdString
34 
35 class VTKPVVTKEXTENSIONSCORE_EXPORT vtkPVPostFilter : public vtkDataObjectAlgorithm
36 {
37 public:
38  static vtkPVPostFilter* New();
39  vtkTypeMacro(vtkPVPostFilter, vtkDataObjectAlgorithm);
40  void PrintSelf(ostream& os, vtkIndent indent);
41 
47  vtkExecutive* CreateDefaultExecutive();
48 
49  static vtkStdString DefaultComponentName(int componentNumber, int componentCount);
50 
51 protected:
53  ~vtkPVPostFilter();
54 
55  virtual int FillInputPortInformation(int port, vtkInformation* info);
56  virtual int RequestDataObject(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
57  virtual int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
58 
59  int DoAnyNeededConversions(vtkDataObject* output);
60  int DoAnyNeededConversions(vtkDataSet* output, const char* requested_name, int fieldAssociation,
61  const char* demangled_name, const char* demagled_component_name);
62  void CellDataToPointData(vtkDataSet* output);
63  void PointDataToCellData(vtkDataSet* output);
64  int ExtractComponent(vtkDataSetAttributes* dsa, const char* requested_name,
65  const char* demangled_name, const char* demagled_component_name);
66 
67 private:
68  vtkPVPostFilter(const vtkPVPostFilter&) VTK_DELETE_FUNCTION;
69  void operator=(const vtkPVPostFilter&) VTK_DELETE_FUNCTION;
70 };
71 
72 #endif
Post Filter for on demand conversion.