VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkInterpolatingSubdivisionFilter.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 vtkInterpolatingSubdivisionFilter_h 00030 #define vtkInterpolatingSubdivisionFilter_h 00031 00032 #include "vtkFiltersGeneralModule.h" // For export macro 00033 #include "vtkPolyDataAlgorithm.h" 00034 00035 class vtkCellArray; 00036 class vtkCellData; 00037 class vtkIdList; 00038 class vtkIntArray; 00039 class vtkPointData; 00040 class vtkPoints; 00041 class vtkPolyData; 00042 00043 class VTKFILTERSGENERAL_EXPORT vtkInterpolatingSubdivisionFilter : public vtkPolyDataAlgorithm 00044 { 00045 public: 00046 vtkTypeMacro(vtkInterpolatingSubdivisionFilter,vtkPolyDataAlgorithm); 00047 void PrintSelf(ostream& os, vtkIndent indent); 00048 00050 00051 vtkSetMacro(NumberOfSubdivisions,int); 00052 vtkGetMacro(NumberOfSubdivisions,int); 00054 00055 protected: 00056 vtkInterpolatingSubdivisionFilter(); 00057 ~vtkInterpolatingSubdivisionFilter() {} 00058 00059 int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00060 virtual int GenerateSubdivisionPoints (vtkPolyData *inputDS, vtkIntArray *edgeData, vtkPoints *outputPts, vtkPointData *outputPD) = 0; 00061 void GenerateSubdivisionCells (vtkPolyData *inputDS, vtkIntArray *edgeData, vtkCellArray *outputPolys, vtkCellData *outputCD); 00062 int FindEdge (vtkPolyData *mesh, vtkIdType cellId, vtkIdType p1, 00063 vtkIdType p2, vtkIntArray *edgeData, vtkIdList *cellIds); 00064 vtkIdType InterpolatePosition (vtkPoints *inputPts, vtkPoints *outputPts, 00065 vtkIdList *stencil, double *weights); 00066 int NumberOfSubdivisions; 00067 00068 private: 00069 vtkInterpolatingSubdivisionFilter(const vtkInterpolatingSubdivisionFilter&); // Not implemented. 00070 void operator=(const vtkInterpolatingSubdivisionFilter&); // Not implemented. 00071 }; 00072 00073 #endif 00074 00075