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  =========================================================================*/
24 #ifndef vtkStructuredGridAppend_h
25 #define vtkStructuredGridAppend_h
26 
27 #include "vtkFiltersCoreModule.h" // For export macro
29 
30 class VTKFILTERSCORE_EXPORT vtkStructuredGridAppend : public vtkStructuredGridAlgorithm
31 {
32  public:
33  static vtkStructuredGridAppend *New();
35  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
43  virtual void ReplaceNthInputConnection(int idx, vtkAlgorithmOutput* input);
44 
46 
51  void SetInputData(int num, vtkDataObject *input);
52  void SetInputData(vtkDataObject *input) { this->SetInputData(0, input); };
54 
56 
61  vtkDataObject *GetInput(int num);
62  vtkDataObject *GetInput() { return this->GetInput(0); };
64 
70  int GetNumberOfInputs() { return this->GetNumberOfInputConnections(0); };
71 
72  protected:
74  ~vtkStructuredGridAppend() override;
75 
78  vtkInformationVector *) override;
79 
82  vtkInformationVector *) override;
83 
86  vtkInformationVector *) override;
87 
88  // see vtkAlgorithm for docs.
89  int FillInputPortInformation(int, vtkInformation*) override;
90 
91  private:
93  void operator=(const vtkStructuredGridAppend&) = delete;
94 };
95 
96 #endif
vtkStructuredGridAlgorithm.h
vtkStructuredGridAppend::SetInputData
void SetInputData(vtkDataObject *input)
Definition: vtkStructuredGridAppend.h:52
vtkStructuredGridAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkStructuredGridAppend
Collects data from multiple inputs into one structured grid.
Definition: vtkStructuredGridAppend.h:30
vtkStructuredGridAlgorithm
Superclass for algorithms that produce only structured grid as output.
Definition: vtkStructuredGridAlgorithm.h:41
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkStructuredGridAppend::GetNumberOfInputs
int GetNumberOfInputs()
Get the number of inputs to this filter.
Definition: vtkStructuredGridAppend.h:70
vtkStructuredGridAlgorithm::New
static vtkStructuredGridAlgorithm * New()
vtkStructuredGridAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkStructuredGridAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkStructuredGridAlgorithm::GetInput
vtkDataObject * GetInput()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:80
vtkAlgorithmOutput
Proxy object to connect input/output ports.
Definition: vtkAlgorithmOutput.h:36
vtkStructuredGridAlgorithm::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Definition: vtkStructuredGridAlgorithm.h:112
vtkStructuredGridAppend::GetInput
vtkDataObject * GetInput()
Definition: vtkStructuredGridAppend.h:62
vtkAlgorithm::GetNumberOfInputConnections
int GetNumberOfInputConnections(int port)
Get the number of inputs currently connected to a port.
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:58
vtkStructuredGridAlgorithm::SetInputData
void SetInputData(vtkDataObject *)
Assign a data object as input.
vtkStructuredGridAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.