00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkCellCenters.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 =========================================================================*/ 00037 #ifndef __vtkCellCenters_h 00038 #define __vtkCellCenters_h 00039 00040 #include "vtkPolyDataAlgorithm.h" 00041 00042 class VTK_GRAPHICS_EXPORT vtkCellCenters : public vtkPolyDataAlgorithm 00043 { 00044 public: 00045 vtkTypeRevisionMacro(vtkCellCenters,vtkPolyDataAlgorithm); 00046 void PrintSelf(ostream& os, vtkIndent indent); 00047 00049 static vtkCellCenters *New(); 00050 00052 00053 vtkSetMacro(VertexCells,int); 00054 vtkGetMacro(VertexCells,int); 00055 vtkBooleanMacro(VertexCells,int); 00057 00058 protected: 00059 vtkCellCenters(); 00060 ~vtkCellCenters() {}; 00061 00062 virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00063 virtual int FillInputPortInformation(int port, vtkInformation *info); 00064 00065 int VertexCells; 00066 private: 00067 vtkCellCenters(const vtkCellCenters&); // Not implemented. 00068 void operator=(const vtkCellCenters&); // Not implemented. 00069 }; 00070 00071 #endif