VTK  9.3.1
vtkStructuredGridAppend.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
15 #ifndef vtkStructuredGridAppend_h
16 #define vtkStructuredGridAppend_h
17 
18 #include "vtkFiltersCoreModule.h" // For export macro
20 
21 VTK_ABI_NAMESPACE_BEGIN
22 class VTKFILTERSCORE_EXPORT vtkStructuredGridAppend : public vtkStructuredGridAlgorithm
23 {
24 public:
25  static vtkStructuredGridAppend* New();
27  void PrintSelf(ostream& os, vtkIndent indent) override;
28 
35  virtual void ReplaceNthInputConnection(int idx, vtkAlgorithmOutput* input);
36 
38 
43  void SetInputData(int num, vtkDataObject* input);
44  void SetInputData(vtkDataObject* input) { this->SetInputData(0, input); }
46 
48 
53  vtkDataObject* GetInput(int num);
54  vtkDataObject* GetInput() { return this->GetInput(0); }
56 
63 
64 protected:
66  ~vtkStructuredGridAppend() override;
67 
69 
71 
73 
74  // see vtkAlgorithm for docs.
75  int FillInputPortInformation(int, vtkInformation*) override;
76 
77 private:
79  void operator=(const vtkStructuredGridAppend&) = delete;
80 };
81 
82 VTK_ABI_NAMESPACE_END
83 #endif
int GetNumberOfInputConnections(int port)
Get the number of inputs currently connected to a port.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
int GetNumberOfInputs()
Get the number of inputs to this filter.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Store vtkAlgorithm input/output information.
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
static vtkStructuredGridAlgorithm * New()
Proxy object to connect input/output ports.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
a simple class to control print indentation
Definition: vtkIndent.h:28
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:54
void SetInputData(vtkDataObject *input)
Assign a data object as input.