vtkCountVertices.h 1.85 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
/*=========================================================================

  Program:   Visualization Toolkit
  Module:    vtkCountVertices.h

  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
  All rights reserved.
  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.

     This software is distributed WITHOUT ANY WARRANTY; without even
     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
     PURPOSE.  See the above copyright notice for more information.

=========================================================================*/

16 17 18 19 20 21 22 23 24
/**
 * @class   vtkCountVertices
 * @brief   Add a cell data array containing the number of
 * vertices per cell.
 *
 *
 * This filter adds a cell data array containing the number of vertices per
 * cell.
*/
25 26 27 28 29 30 31 32 33 34 35 36

#ifndef vtkCountVertices_h
#define vtkCountVertices_h

#include "vtkFiltersGeneralModule.h" // For export macro
#include "vtkPassInputTypeAlgorithm.h"

class VTKFILTERSGENERAL_EXPORT vtkCountVertices: public vtkPassInputTypeAlgorithm
{
public:
  static vtkCountVertices* New();
  vtkTypeMacro(vtkCountVertices, vtkPassInputTypeAlgorithm)
37
  void PrintSelf(ostream &os, vtkIndent indent) override;
38

39 40 41 42
  //@{
  /**
   * The name of the new output array containing the vertex counts.
   */
43 44
  vtkSetStringMacro(OutputArrayName)
  vtkGetStringMacro(OutputArrayName)
45
  //@}
46 47 48

protected:
  vtkCountVertices();
49
  ~vtkCountVertices() override;
50 51

  int RequestData(vtkInformation* request, vtkInformationVector **inInfoVec,
52
                  vtkInformationVector *outInfoVec) override;
53

54 55
  int FillOutputPortInformation(int port, vtkInformation* info) override;
  int FillInputPortInformation(int port, vtkInformation* info) override;
56 57 58 59

  char *OutputArrayName;

private:
60 61
  vtkCountVertices(const vtkCountVertices&) = delete;
  void operator=(const vtkCountVertices&) = delete;
62 63 64
};

#endif // vtkCountVertices_h