VTK
vtkMergeDataObjectFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkMergeDataObjectFilter.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 =========================================================================*/
41 #ifndef vtkMergeDataObjectFilter_h
42 #define vtkMergeDataObjectFilter_h
43 
44 #include "vtkFiltersCoreModule.h" // For export macro
45 #include "vtkDataSetAlgorithm.h"
46 
47 class VTKFILTERSCORE_EXPORT vtkMergeDataObjectFilter : public vtkDataSetAlgorithm
48 {
49 public:
50  static vtkMergeDataObjectFilter *New();
52  void PrintSelf(ostream& os, vtkIndent indent) override;
53 
55 
58  void SetDataObjectInputData(vtkDataObject *object);
59  vtkDataObject *GetDataObject();
61 
63 
69  vtkSetMacro(OutputField,int);
70  vtkGetMacro(OutputField,int);
71  void SetOutputFieldToDataObjectField();
72  void SetOutputFieldToPointDataField();
73  void SetOutputFieldToCellDataField();
75 
76 protected:
78  ~vtkMergeDataObjectFilter() override;
79 
80  // Usual data generation method
83 
84  int OutputField; // which output field
85 
86 private:
88  void operator=(const vtkMergeDataObjectFilter&) = delete;
89 };
90 
91 #endif
92 
93 
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:39
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:64
static vtkDataSetAlgorithm * New()
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.