VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vtkCellCenters.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkCellCenters.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
40 #ifndef __vtkCellCenters_h
41 #define __vtkCellCenters_h
42 
43 #include "vtkFiltersGeneralModule.h" // For export macro
44 #include "vtkPolyDataAlgorithm.h"
45 
46 class VTKFILTERSGENERAL_EXPORT vtkCellCenters : public vtkPolyDataAlgorithm
47 {
48 public:
49  vtkTypeMacro(vtkCellCenters,vtkPolyDataAlgorithm);
50  void PrintSelf(ostream& os, vtkIndent indent);
51 
53  static vtkCellCenters *New();
54 
56 
57  vtkSetMacro(VertexCells,int);
58  vtkGetMacro(VertexCells,int);
59  vtkBooleanMacro(VertexCells,int);
61 
62 protected:
65 
66  virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
67  virtual int FillInputPortInformation(int port, vtkInformation *info);
68 
70 private:
71  vtkCellCenters(const vtkCellCenters&); // Not implemented.
72  void operator=(const vtkCellCenters&); // Not implemented.
73 };
74 
75 #endif
generate points at center of cells