VTK
vtkStructuredGridAppend.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkStructuredGridAppend.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  =========================================================================*/
27 #ifndef vtkStructuredGridAppend_h
28 #define vtkStructuredGridAppend_h
29 
30 #include "vtkFiltersCoreModule.h" // For export macro
32 
33 class VTKFILTERSCORE_EXPORT vtkStructuredGridAppend : public vtkStructuredGridAlgorithm
34 {
35  public:
36  static vtkStructuredGridAppend *New();
38  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
39 
46  virtual void ReplaceNthInputConnection(int idx, vtkAlgorithmOutput* input);
47 
49 
54  void SetInputData(int num, vtkDataObject *input);
55  void SetInputData(vtkDataObject *input) { this->SetInputData(0, input); };
57 
59 
64  vtkDataObject *GetInput(int num);
65  vtkDataObject *GetInput() { return this->GetInput(0); };
67 
73  int GetNumberOfInputs() { return this->GetNumberOfInputConnections(0); };
74 
75  protected:
77  ~vtkStructuredGridAppend() VTK_OVERRIDE;
78 
79  int RequestInformation (vtkInformation *,
81  vtkInformationVector *) VTK_OVERRIDE;
82 
83  int RequestUpdateExtent(vtkInformation *,
84  vtkInformationVector **,
85  vtkInformationVector *) VTK_OVERRIDE;
86 
87  int RequestData(vtkInformation *,
88  vtkInformationVector **,
89  vtkInformationVector *) VTK_OVERRIDE;
90 
91  // see vtkAlgorithm for docs.
92  int FillInputPortInformation(int, vtkInformation*) VTK_OVERRIDE;
93 
94  private:
95  vtkStructuredGridAppend(const vtkStructuredGridAppend&) VTK_DELETE_FUNCTION;
96  void operator=(const vtkStructuredGridAppend&) VTK_DELETE_FUNCTION;
97 };
98 
99 #endif
int GetNumberOfInputConnections(int port)
Get the number of inputs currently connected to a port.
int GetNumberOfInputs()
Get the number of inputs to this filter.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Store vtkAlgorithm input/output information.
static vtkStructuredGridAlgorithm * New()
Proxy object to connect input/output ports.
a simple class to control print indentation
Definition: vtkIndent.h:39
Superclass for algorithms that produce only structured grid as output.
void SetInputData(vtkDataObject *)
Assign a data object as input.
vtkDataObject * GetInput()
vtkDataObject * GetInput()
Get one input to this filter.
Collects data from multiple inputs into one structured grid.
Store zero or more vtkInformation instances.
general representation of visualization data
Definition: vtkDataObject.h:64
void SetInputData(vtkDataObject *input)
Assign a data object as input.