VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkPistonToDataSet.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 =========================================================================*/ 00029 #ifndef __vtkPistonToDataSet_h 00030 #define __vtkPistonToDataSet_h 00031 00032 #include "vtkPistonAlgorithm.h" 00033 00034 class vtkDataSet; 00035 00036 class VTKACCELERATORSPISTON_EXPORT vtkPistonToDataSet : public vtkPistonAlgorithm 00037 { 00038 public: 00039 static vtkPistonToDataSet *New(); 00040 vtkTypeMacro(vtkPistonToDataSet,vtkPistonAlgorithm); 00041 void PrintSelf(ostream& os, vtkIndent indent); 00042 00044 00047 vtkSetMacro(OutputDataSetType, int); 00048 vtkGetMacro(OutputDataSetType, int); 00050 00053 vtkDataSet *GetDataSetOutput(int port); 00054 00055 protected: 00056 vtkPistonToDataSet(); 00057 ~vtkPistonToDataSet(); 00058 00060 virtual int FillOutputPortInformation(int, vtkInformation*); 00061 00063 00064 virtual int RequestDataObject(vtkInformation* request, 00065 vtkInformationVector** inputVector, 00066 vtkInformationVector* outputVector); 00068 00070 00071 virtual int RequestData(vtkInformation* request, 00072 vtkInformationVector** inputVector, 00073 vtkInformationVector* outputVector); 00075 00076 int OutputDataSetType; 00077 00078 private: 00079 vtkPistonToDataSet(const vtkPistonToDataSet&); // Not implemented. 00080 void operator=(const vtkPistonToDataSet&); // Not implemented. 00081 }; 00082 00083 #endif