VTK  9.3.1
vtkAppendLocationAttributes.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
23 #ifndef vtkAppendLocationAttributes_h
24 #define vtkAppendLocationAttributes_h
25 
26 #include "vtkFiltersGeneralModule.h" // For export macro
28 
29 VTK_ABI_NAMESPACE_BEGIN
30 class VTKFILTERSGENERAL_EXPORT vtkAppendLocationAttributes : public vtkPassInputTypeAlgorithm
31 {
32 public:
35  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
38 
43  vtkSetMacro(AppendPointLocations, bool);
44  vtkGetMacro(AppendPointLocations, bool);
45  vtkBooleanMacro(AppendPointLocations, bool);
47 
49 
54  vtkSetMacro(AppendCellCenters, bool);
55  vtkGetMacro(AppendCellCenters, bool);
56  vtkBooleanMacro(AppendCellCenters, bool);
58 
59 protected:
60  vtkAppendLocationAttributes() = default;
61  ~vtkAppendLocationAttributes() override = default;
62 
65 
66  bool AppendPointLocations = true;
67  bool AppendCellCenters = true;
68 
69 private:
71  void operator=(const vtkAppendLocationAttributes&) = delete;
72 };
73 
74 VTK_ABI_NAMESPACE_END
75 #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:28
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()