VTK  9.3.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 
35 VTK_ABI_NAMESPACE_BEGIN
36 class VTKFILTERSCORE_EXPORT vtkMergeDataObjectFilter : public vtkDataSetAlgorithm
37 {
38 public:
39  static vtkMergeDataObjectFilter* New();
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
44 
47  void SetDataObjectInputData(vtkDataObject* object);
48  vtkDataObject* GetDataObject();
50 
52 
58  vtkSetMacro(OutputField, int);
59  vtkGetMacro(OutputField, int);
60  void SetOutputFieldToDataObjectField();
61  void SetOutputFieldToPointDataField();
62  void SetOutputFieldToCellDataField();
64 
65 protected:
67  ~vtkMergeDataObjectFilter() override;
68 
69  // Usual data generation method
72 
73  int OutputField; // which output field
74 
75 private:
77  void operator=(const vtkMergeDataObjectFilter&) = delete;
78 };
79 
80 VTK_ABI_NAMESPACE_END
81 #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.
Superclass for algorithms that produce output of the same type as input.
general representation of visualization data
Definition: vtkDataObject.h:54
static vtkDataSetAlgorithm * New()
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.