VTK
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 
28 #ifndef vtkCountFaces_h
29 #define vtkCountFaces_h
30 
31 #include "vtkFiltersGeneralModule.h" // For export macro
33 
34 class VTKFILTERSGENERAL_EXPORT vtkCountFaces: public vtkPassInputTypeAlgorithm
35 {
36 public:
37  static vtkCountFaces* New();
39  void PrintSelf(ostream &os, vtkIndent indent) override;
40 
42 
45  vtkSetStringMacro(OutputArrayName)
46  vtkGetStringMacro(OutputArrayName)
48 
49 protected:
50  vtkCountFaces();
51  ~vtkCountFaces() override;
52 
53  int RequestData(vtkInformation* request, vtkInformationVector **inInfoVec,
54  vtkInformationVector *outInfoVec) override;
55 
58 
60 
61 private:
62  vtkCountFaces(const vtkCountFaces&) = delete;
63  void operator=(const vtkCountFaces&) = delete;
64 };
65 
66 #endif // vtkCountFaces_h
vtkPassInputTypeAlgorithm.h
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkPassInputTypeAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkX3D::port
Definition: vtkX3D.h:447
vtkPassInputTypeAlgorithm::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
Definition: vtkPassInputTypeAlgorithm.h:178
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkX3D::info
Definition: vtkX3D.h:376
vtkCountFaces
Add a cell data array containing the number of faces per cell.
Definition: vtkCountFaces.h:34
vtkPassInputTypeAlgorithm::New
static vtkPassInputTypeAlgorithm * New()
vtkCountFaces::OutputArrayName
char * OutputArrayName
Definition: vtkCountFaces.h:59
vtkPassInputTypeAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPassInputTypeAlgorithm::FillOutputPortInformation
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
vtkPassInputTypeAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkPassInputTypeAlgorithm.h:54