Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members Related Pages

# Graphics/vtkLoopSubdivisionFilter.h

Go to the documentation of this file.

    00001 /*=========================================================================
    00002
    00003   Program:   Visualization Toolkit
    00004   Module:    $RCSfile: vtkLoopSubdivisionFilter.h,v $
    00005   Language:  C++
    00006
    00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
    00008   All rights reserved.
    00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
    00010
    00011      This software is distributed WITHOUT ANY WARRANTY; without even
    00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
    00013      PURPOSE.  See the above copyright notice for more information.
    00014
    00015 =========================================================================*/
    00064 #ifndef __vtkLoopSubdivisionFilter_h
    00065 #define __vtkLoopSubdivisionFilter_h
    00066
    00067 #include "vtkApproximatingSubdivisionFilter.h"
    00068
    00069 class vtkPolyData;
    00070 class vtkIntArray;
    00071 class vtkPoints;
    00072 class vtkIdList;
    00073
    00074 class VTK_GRAPHICS_EXPORT vtkLoopSubdivisionFilter : public vtkApproximatingSubdivisionFilter
    00075 {
    00076 public:
    00078
    00079   static vtkLoopSubdivisionFilter *New();
    00080   vtkTypeRevisionMacro(vtkLoopSubdivisionFilter,vtkApproximatingSubdivisionFilter);
    00082
    00083 protected:
    00084   vtkLoopSubdivisionFilter () {};
    00085   ~vtkLoopSubdivisionFilter () {};
    00086
    00087   void GenerateSubdivisionPoints (vtkPolyData *inputDS, vtkIntArray *edgeData,
    00088                                   vtkPoints *outputPts,
    00089                                   vtkPointData *outputPD);
    00090   void GenerateEvenStencil (vtkIdType p1, vtkPolyData *polys,
    00091                             vtkIdList *stencilIds, float *weights);
    00092   void GenerateOddStencil (vtkIdType p1, vtkIdType p2, vtkPolyData *polys,
    00093                            vtkIdList *stencilIds, float *weights);
    00094
    00095   void ComputeInputUpdateExtents(vtkDataObject *output);
    00096 private:
    00097   vtkLoopSubdivisionFilter(const vtkLoopSubdivisionFilter&);  // Not implemented.
    00098   void operator=(const vtkLoopSubdivisionFilter&);  // Not implemented.
    00099 };
    00100
    00101 #endif
    00102
    00103