VTK  9.2.6
vtkCountVertices.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkCountVertices.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=========================================================================*/
15
29#ifndef vtkCountVertices_h
30#define vtkCountVertices_h
31
32#include "vtkFiltersGeneralModule.h" // For export macro
34
35class VTKFILTERSGENERAL_EXPORT vtkCountVertices : public vtkPassInputTypeAlgorithm
36{
37public:
40 void PrintSelf(ostream& os, vtkIndent indent) override;
41
43
46 vtkSetStringMacro(OutputArrayName);
47 vtkGetStringMacro(OutputArrayName);
49
50protected:
53
55 vtkInformationVector* outInfoVec) override;
56
57 int FillOutputPortInformation(int port, vtkInformation* info) override;
58 int FillInputPortInformation(int port, vtkInformation* info) override;
59
61
62private:
63 vtkCountVertices(const vtkCountVertices&) = delete;
64 void operator=(const vtkCountVertices&) = delete;
65};
66
67#endif // vtkCountVertices_h
Add a cell data array containing the number of vertices per cell.
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
int RequestData(vtkInformation *request, vtkInformationVector **inInfoVec, vtkInformationVector *outInfoVec) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkCountVertices * New()
~vtkCountVertices() override
a simple class to control print indentation
Definition vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce output of the same type as input.