VTK  9.4.20250114
vtkCountFaces.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
16#ifndef vtkCountFaces_h
17#define vtkCountFaces_h
18
19#include "vtkFiltersGeneralModule.h" // For export macro
21
22VTK_ABI_NAMESPACE_BEGIN
23class VTKFILTERSGENERAL_EXPORT vtkCountFaces : public vtkPassInputTypeAlgorithm
24{
25public:
26 static vtkCountFaces* New();
28 void PrintSelf(ostream& os, vtkIndent indent) override;
29
31
34 vtkSetStringMacro(OutputArrayName);
35 vtkGetStringMacro(OutputArrayName);
37
39
47 vtkSetMacro(UseImplicitArray, bool);
48 vtkGetMacro(UseImplicitArray, bool);
50
51protected:
53 ~vtkCountFaces() override;
54
56 vtkInformationVector* outInfoVec) override;
57
58 int FillOutputPortInformation(int port, vtkInformation* info) override;
59 int FillInputPortInformation(int port, vtkInformation* info) override;
60
62
63private:
64 bool UseImplicitArray = false;
65
66 vtkCountFaces(const vtkCountFaces&) = delete;
67 void operator=(const vtkCountFaces&) = delete;
68};
69
70VTK_ABI_NAMESPACE_END
71#endif // vtkCountFaces_h
Add a cell data array containing the number of faces per cell.
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
~vtkCountFaces() override
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
static vtkCountFaces * New()
char * OutputArrayName
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestData(vtkInformation *request, vtkInformationVector **inInfoVec, vtkInformationVector *outInfoVec) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
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.