VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkQuadraturePointsGenerator.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 =========================================================================*/ 00033 #ifndef vtkQuadraturePointsGenerator_h 00034 #define vtkQuadraturePointsGenerator_h 00035 00036 #include "vtkPolyDataAlgorithm.h" 00037 00038 class vtkPolyData; 00039 class vtkUnstructuredGrid; 00040 class vtkInformation; 00041 class vtkInformationVector; 00042 00043 class VTK_GRAPHICS_EXPORT vtkQuadraturePointsGenerator : public vtkPolyDataAlgorithm 00044 { 00045 public: 00046 vtkTypeMacro(vtkQuadraturePointsGenerator,vtkPolyDataAlgorithm); 00047 void PrintSelf(ostream& os, vtkIndent indent); 00048 static vtkQuadraturePointsGenerator *New(); 00049 00050 protected: 00051 int FillInputPortInformation(int port, vtkInformation *info); 00052 00053 int RequestData(vtkInformation *req, vtkInformationVector **input, vtkInformationVector *output); 00054 00056 00057 int Generate(vtkUnstructuredGrid *usgIn, 00058 vtkIdTypeArray* offsets, 00059 vtkPolyData *pdOut); 00061 00062 int GenerateField(vtkUnstructuredGrid *usgIn, 00063 vtkDataArray* data, 00064 vtkIdTypeArray* offsets, 00065 vtkPolyData* pdOut); 00066 00067 vtkQuadraturePointsGenerator(); 00068 virtual ~vtkQuadraturePointsGenerator(); 00069 private: 00070 vtkQuadraturePointsGenerator(const vtkQuadraturePointsGenerator &); // Not implemented 00071 void operator=(const vtkQuadraturePointsGenerator &); // Not implemented 00072 }; 00073 00074 #endif