VTK  9.2.6
vtkAppendLocationAttributes.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkAppendLocationAttributes.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 =========================================================================*/
35 #ifndef vtkAppendLocationAttributes_h
36 #define vtkAppendLocationAttributes_h
37 
38 #include "vtkFiltersGeneralModule.h" // For export macro
40 
41 class VTKFILTERSGENERAL_EXPORT vtkAppendLocationAttributes : public vtkPassInputTypeAlgorithm
42 {
43 public:
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
49 
54  vtkSetMacro(AppendPointLocations, bool);
55  vtkGetMacro(AppendPointLocations, bool);
56  vtkBooleanMacro(AppendPointLocations, bool);
58 
60 
65  vtkSetMacro(AppendCellCenters, bool);
66  vtkGetMacro(AppendCellCenters, bool);
67  vtkBooleanMacro(AppendCellCenters, bool);
69 
70 protected:
71  vtkAppendLocationAttributes() = default;
72  ~vtkAppendLocationAttributes() override = default;
73 
76 
77  bool AppendPointLocations = true;
78  bool AppendCellCenters = true;
79 
80 private:
82  void operator=(const vtkAppendLocationAttributes&) = delete;
83 };
84 
85 #endif
Superclass for algorithms that produce output of the same type as input.
Store vtkAlgorithm input/output information.
a simple class to control print indentation
Definition: vtkIndent.h:39
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.
add point locations to point data and/or cell centers cell data, respectively
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
static vtkPassInputTypeAlgorithm * New()