VTK  9.3.20240327
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 
22 VTK_ABI_NAMESPACE_BEGIN
23 class VTKFILTERSGENERAL_EXPORT vtkCountFaces : public vtkPassInputTypeAlgorithm
24 {
25 public:
26  static vtkCountFaces* New();
28  void PrintSelf(ostream& os, vtkIndent indent) override;
29 
31 
34  vtkSetStringMacro(OutputArrayName);
35  vtkGetStringMacro(OutputArrayName);
37 
38 protected:
40  ~vtkCountFaces() override;
41 
42  int RequestData(vtkInformation* request, vtkInformationVector** inInfoVec,
43  vtkInformationVector* outInfoVec) override;
44 
47 
49 
50 private:
51  vtkCountFaces(const vtkCountFaces&) = delete;
52  void operator=(const vtkCountFaces&) = delete;
53 };
54 
55 VTK_ABI_NAMESPACE_END
56 #endif // vtkCountFaces_h
Add a cell data array containing the number of faces per cell.
Definition: vtkCountFaces.h:24
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
~vtkCountFaces() override
static vtkCountFaces * New()
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
char * OutputArrayName
Definition: vtkCountFaces.h:48
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.
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447