VTK  9.7.1
vtkMergeDataObjectFilter.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
29 #ifndef vtkMergeDataObjectFilter_h
30 #define vtkMergeDataObjectFilter_h
31 
32 #include "vtkDataSetAlgorithm.h"
33 #include "vtkFiltersCoreModule.h" // For export macro
34 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
35 
36 VTK_ABI_NAMESPACE_BEGIN
37 class VTKFILTERSCORE_EXPORT VTK_MARSHALAUTO vtkMergeDataObjectFilter : public vtkDataSetAlgorithm
38 {
39 public:
40  static vtkMergeDataObjectFilter* New();
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
45 
48  void SetDataObjectInputData(vtkDataObject* object);
49  vtkDataObject* GetDataObject();
51 
53 
59  vtkSetMacro(OutputField, int);
60  vtkGetMacro(OutputField, int);
61  void SetOutputFieldToDataObjectField();
62  void SetOutputFieldToPointDataField();
63  void SetOutputFieldToCellDataField();
65 
66 protected:
68  ~vtkMergeDataObjectFilter() override;
69 
70  // Usual data generation method
73 
74  int OutputField; // which output field
75 
76 private:
78  void operator=(const vtkMergeDataObjectFilter&) = delete;
79 };
80 
81 VTK_ABI_NAMESPACE_END
82 #endif
merge dataset and data object field to create dataset with attribute data
Store vtkAlgorithm input/output information.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
Store zero or more vtkInformation instances.
#define VTK_MARSHALAUTO
Superclass for algorithms that produce output of the same type as input.
general representation of visualization data
Definition: vtkDataObject.h:55
static vtkDataSetAlgorithm * New()
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.