VTK  9.1.0
vtkCountFaces.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkCountFaces.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
25#ifndef vtkCountFaces_h
26#define vtkCountFaces_h
27
28#include "vtkFiltersGeneralModule.h" // For export macro
30
31class VTKFILTERSGENERAL_EXPORT vtkCountFaces : public vtkPassInputTypeAlgorithm
32{
33public:
34 static vtkCountFaces* New();
36 void PrintSelf(ostream& os, vtkIndent indent) override;
37
39
42 vtkSetStringMacro(OutputArrayName);
43 vtkGetStringMacro(OutputArrayName);
45
46protected:
48 ~vtkCountFaces() override;
49
51 vtkInformationVector* outInfoVec) override;
52
53 int FillOutputPortInformation(int port, vtkInformation* info) override;
54 int FillInputPortInformation(int port, vtkInformation* info) override;
55
57
58private:
59 vtkCountFaces(const vtkCountFaces&) = delete;
60 void operator=(const vtkCountFaces&) = delete;
61};
62
63#endif // vtkCountFaces_h
Add a cell data array containing the number of faces per cell.
Definition: vtkCountFaces.h:32
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
Definition: vtkCountFaces.h:56
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:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce output of the same type as input.