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 
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkDataSetAlgorithm::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
Definition: vtkDataSetAlgorithm.h:180
vtkMergeDataObjectFilter
merge dataset and data object field to create dataset with attribute data
Definition: vtkMergeDataObjectFilter.h:47
vtkMergeDataObjectFilter::OutputField
int OutputField
Definition: vtkMergeDataObjectFilter.h:84
vtkDataSetAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkDataSetAlgorithm.h:48
vtkX3D::port
Definition: vtkX3D.h:447
vtkDataSetAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkDataSetAlgorithm::New
static vtkDataSetAlgorithm * New()
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkX3D::info
Definition: vtkX3D.h:376
vtkDataSetAlgorithm.h
vtkDataSetAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:64