VTK  9.7.1
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 
39 
47  vtkSetMacro(UseImplicitArray, bool);
48  vtkGetMacro(UseImplicitArray, bool);
50 
51 protected:
52  vtkCountFaces();
53  ~vtkCountFaces() override;
54 
55  int RequestData(vtkInformation* request, vtkInformationVector** inInfoVec,
56  vtkInformationVector* outInfoVec) override;
57 
60 
62 
63 private:
64  bool UseImplicitArray = false;
65 
66  vtkCountFaces(const vtkCountFaces&) = delete;
67  void operator=(const vtkCountFaces&) = delete;
68 };
69 
70 VTK_ABI_NAMESPACE_END
71 #endif // vtkCountFaces_h
Superclass for algorithms that produce output of the same type as input.
Store vtkAlgorithm input/output information.
char * OutputArrayName
Definition: vtkCountFaces.h:61
Add a cell data array containing the number of faces per cell.
Definition: vtkCountFaces.h:23
a simple class to control print indentation
Definition: vtkIndent.h:28
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
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.
Store zero or more vtkInformation instances.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
static vtkPassInputTypeAlgorithm * New()