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  =========================================================================*/
26 #ifndef vtkStructuredGridAppend_h
27 #define vtkStructuredGridAppend_h
28 
29 #include "vtkFiltersCoreModule.h" // For export macro
31 
33 {
34  public:
35  static vtkStructuredGridAppend *New();
37  void PrintSelf(ostream& os, vtkIndent indent);
38 
43  virtual void ReplaceNthInputConnection(int idx, vtkAlgorithmOutput* input);
44 
46 
49  void SetInputData(int num, vtkDataObject *input);
50  void SetInputData(vtkDataObject *input) { this->SetInputData(0, input); };
52 
54 
57  vtkDataObject *GetInput(int num);
58  vtkDataObject *GetInput() { return this->GetInput(0); };
60 
64  int GetNumberOfInputs() { return this->GetNumberOfInputConnections(0); };
65 
66  protected:
69 
70  virtual int RequestInformation (vtkInformation *,
73 
74  virtual int RequestUpdateExtent(vtkInformation *,
77 
78  virtual int RequestData(vtkInformation *,
81 
82  // see vtkAlgorithm for docs.
83  virtual int FillInputPortInformation(int, vtkInformation*);
84 
85  private:
86  vtkStructuredGridAppend(const vtkStructuredGridAppend&); // Not implemented.
87  void operator=(const vtkStructuredGridAppend&); // Not implemented.
88 };
89 
90 #endif
int GetNumberOfInputConnections(int port)
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Store vtkAlgorithm input/output information.
#define VTKFILTERSCORE_EXPORT
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual int FillInputPortInformation(int port, vtkInformation *info)
static vtkStructuredGridAlgorithm * New()
Proxy object to connect input/output ports.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
a simple class to control print indentation
Definition: vtkIndent.h:38
Superclass for algorithms that produce only structured grid as output.
void PrintSelf(ostream &os, vtkIndent indent)
void SetInputData(vtkDataObject *)
vtkDataObject * GetInput()
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)