00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkLinearSubdivisionFilter.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 =========================================================================*/ 00045 #ifndef __vtkLinearSubdivisionFilter_h 00046 #define __vtkLinearSubdivisionFilter_h 00047 00048 #include "vtkInterpolatingSubdivisionFilter.h" 00049 00050 class vtkIntArray; 00051 class vtkPointData; 00052 class vtkPoints; 00053 class vtkPolyData; 00054 00055 class VTK_GRAPHICS_EXPORT vtkLinearSubdivisionFilter : public vtkInterpolatingSubdivisionFilter 00056 { 00057 public: 00059 00060 static vtkLinearSubdivisionFilter *New(); 00061 vtkTypeRevisionMacro(vtkLinearSubdivisionFilter,vtkInterpolatingSubdivisionFilter); 00063 00064 protected: 00065 vtkLinearSubdivisionFilter () {}; 00066 ~vtkLinearSubdivisionFilter () {}; 00067 00068 void GenerateSubdivisionPoints (vtkPolyData *inputDS, 00069 vtkIntArray *edgeData, 00070 vtkPoints *outputPts, 00071 vtkPointData *outputPD); 00072 00073 private: 00074 vtkLinearSubdivisionFilter(const vtkLinearSubdivisionFilter&); // Not implemented. 00075 void operator=(const vtkLinearSubdivisionFilter&); // Not implemented. 00076 }; 00077 00078 #endif 00079 00080