00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkQuadraturePointsGenerator.h,v $ 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 "vtkDataSetAlgorithm.h" 00037 00038 class vtkPolyData; 00039 class vtkUnstructuredGrid; 00040 class vtkInformation; 00041 class vtkInformationVector; 00042 00043 class VTK_GRAPHICS_EXPORT vtkQuadraturePointsGenerator : public vtkDataSetAlgorithm 00044 { 00045 public: 00046 vtkTypeRevisionMacro(vtkQuadraturePointsGenerator,vtkDataSetAlgorithm); 00047 void PrintSelf(ostream& os, vtkIndent indent); 00048 static vtkQuadraturePointsGenerator *New(); 00050 00052 vtkGetStringMacro(SourceArrayName); 00053 void SetSourceArrayName(const char *name); 00055 00056 protected: 00057 int FillInputPortInformation(int port, vtkInformation *info); 00058 int FillOutputPortInformation(int port, vtkInformation *info); 00059 int RequestData(vtkInformation *req, vtkInformationVector **input, vtkInformationVector *output); 00060 vtkQuadraturePointsGenerator(); 00061 virtual ~vtkQuadraturePointsGenerator(); 00062 00063 private: 00064 vtkQuadraturePointsGenerator(const vtkQuadraturePointsGenerator &); // Not implemented 00065 void operator=(const vtkQuadraturePointsGenerator &); // Not implemented 00066 // 00067 void Clear(); 00069 00072 int Generate(vtkUnstructuredGrid *usgIn, 00073 char *sourceArrayName, 00074 vtkPolyData *pdOut); 00075 // 00076 int GetSourceArrayNameFromAlgorithm(vtkInformationVector **inputVector); 00077 // State: 00078 char *SourceArrayName; 00079 int HasSourceArrayName; 00081 }; 00082 00083 #endif