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) VTK_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() VTK_OVERRIDE;
79 
80  // Usual data generation method
81  int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
82  int FillInputPortInformation(int port, vtkInformation *info) VTK_OVERRIDE;
83 
84  int OutputField; // which output field
85 
86 private:
87  vtkMergeDataObjectFilter(const vtkMergeDataObjectFilter&) VTK_DELETE_FUNCTION;
88  void operator=(const vtkMergeDataObjectFilter&) VTK_DELETE_FUNCTION;
89 };
90 
91 #endif
92 
93 
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkMergeDataObjectFilter
merge dataset and data object field to create dataset with attribute data
Definition: vtkMergeDataObjectFilter.h:47
vtkDataSetAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkDataSetAlgorithm.h:51
vtkX3D::port
Definition: vtkX3D.h:447
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
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
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