VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkStructuredGridAppend.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00026 #ifndef vtkStructuredGridAppend_h 00027 #define vtkStructuredGridAppend_h 00028 00029 #include "vtkFiltersCoreModule.h" // For export macro 00030 #include "vtkStructuredGridAlgorithm.h" 00031 00032 class VTKFILTERSCORE_EXPORT vtkStructuredGridAppend : public vtkStructuredGridAlgorithm 00033 { 00034 public: 00035 static vtkStructuredGridAppend *New(); 00036 vtkTypeMacro(vtkStructuredGridAppend,vtkStructuredGridAlgorithm); 00037 void PrintSelf(ostream& os, vtkIndent indent); 00038 00043 virtual void ReplaceNthInputConnection(int idx, vtkAlgorithmOutput* input); 00044 00046 00049 void SetInputData(int num, vtkDataObject *input); 00050 void SetInputData(vtkDataObject *input) { this->SetInputData(0, input); }; 00052 00054 00057 vtkDataObject *GetInput(int num); 00058 vtkDataObject *GetInput() { return this->GetInput(0); }; 00060 00064 int GetNumberOfInputs() { return this->GetNumberOfInputConnections(0); }; 00065 00066 protected: 00067 vtkStructuredGridAppend(); 00068 ~vtkStructuredGridAppend(); 00069 00070 virtual int RequestInformation (vtkInformation *, 00071 vtkInformationVector **, 00072 vtkInformationVector *); 00073 00074 virtual int RequestUpdateExtent(vtkInformation *, 00075 vtkInformationVector **, 00076 vtkInformationVector *); 00077 00078 virtual int RequestData(vtkInformation *, 00079 vtkInformationVector **, 00080 vtkInformationVector *); 00081 00082 // see vtkAlgorithm for docs. 00083 virtual int FillInputPortInformation(int, vtkInformation*); 00084 00085 private: 00086 vtkStructuredGridAppend(const vtkStructuredGridAppend&); // Not implemented. 00087 void operator=(const vtkStructuredGridAppend&); // Not implemented. 00088 }; 00089 00090 #endif