VTK  9.3.20240424
vtkCountVertices.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
3
17#ifndef vtkCountVertices_h
18#define vtkCountVertices_h
19
20#include "vtkFiltersGeneralModule.h" // For export macro
22
23VTK_ABI_NAMESPACE_BEGIN
24class VTKFILTERSGENERAL_EXPORT vtkCountVertices : public vtkPassInputTypeAlgorithm
25{
26public:
29 void PrintSelf(ostream& os, vtkIndent indent) override;
30
32
35 vtkSetStringMacro(OutputArrayName);
36 vtkGetStringMacro(OutputArrayName);
38
40
48 vtkSetMacro(UseImplicitArray, bool);
49 vtkGetMacro(UseImplicitArray, bool);
51
52protected:
55
57 vtkInformationVector* outInfoVec) override;
58
59 int FillOutputPortInformation(int port, vtkInformation* info) override;
60 int FillInputPortInformation(int port, vtkInformation* info) override;
61
63
64private:
65 bool UseImplicitArray = false;
66
67 vtkCountVertices(const vtkCountVertices&) = delete;
68 void operator=(const vtkCountVertices&) = delete;
69};
70
71VTK_ABI_NAMESPACE_END
72#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:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce output of the same type as input.