Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkInterpolatingSubdivisionFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkInterpolatingSubdivisionFilter.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 =========================================================================*/
00041 #ifndef __vtkInterpolatingSubdivisionFilter_h
00042 #define __vtkInterpolatingSubdivisionFilter_h
00043 
00044 #include "vtkPolyDataToPolyDataFilter.h"
00045 
00046 class vtkCellArray;
00047 class vtkCellData;
00048 class vtkIdList;
00049 class vtkIntArray;
00050 class vtkPointData;
00051 class vtkPoints;
00052 class vtkPolyData;
00053 
00054 class VTK_GRAPHICS_EXPORT vtkInterpolatingSubdivisionFilter : public vtkPolyDataToPolyDataFilter
00055 {
00056 public:
00057   vtkTypeRevisionMacro(vtkInterpolatingSubdivisionFilter,vtkPolyDataToPolyDataFilter);
00058   void PrintSelf(ostream& os, vtkIndent indent);
00059 
00061 
00062   vtkSetMacro(NumberOfSubdivisions,int);
00063   vtkGetMacro(NumberOfSubdivisions,int);
00065 
00066 protected:
00067   vtkInterpolatingSubdivisionFilter();
00068   ~vtkInterpolatingSubdivisionFilter() {};
00069 
00070   void Execute();
00071   virtual void GenerateSubdivisionPoints (vtkPolyData *inputDS, vtkIntArray *edgeData, vtkPoints *outputPts, vtkPointData *outputPD) = 0;
00072   void GenerateSubdivisionCells (vtkPolyData *inputDS, vtkIntArray *edgeData, vtkCellArray *outputPolys, vtkCellData *outputCD);
00073   int FindEdge (vtkPolyData *mesh, vtkIdType cellId, vtkIdType p1,
00074                 vtkIdType p2, vtkIntArray *edgeData, vtkIdList *cellIds);
00075   vtkIdType InterpolatePosition (vtkPoints *inputPts, vtkPoints *outputPts,
00076                                  vtkIdList *stencil, double *weights);
00077   int NumberOfSubdivisions;
00078 
00079 private:
00080   vtkInterpolatingSubdivisionFilter(const vtkInterpolatingSubdivisionFilter&);  // Not implemented.
00081   void operator=(const vtkInterpolatingSubdivisionFilter&);  // Not implemented.
00082 };
00083 
00084 #endif
00085 
00086