VTK  9.3.20240424
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
29VTK_ABI_NAMESPACE_BEGIN
30class VTKFILTERSGENERAL_EXPORT vtkAppendLocationAttributes : public vtkPassInputTypeAlgorithm
31{
32public:
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
59protected:
61 ~vtkAppendLocationAttributes() override = default;
62
64 int FillInputPortInformation(int port, vtkInformation* info) override;
65
66 bool AppendPointLocations = true;
67 bool AppendCellCenters = true;
68
69private:
71 void operator=(const vtkAppendLocationAttributes&) = delete;
72};
73
74VTK_ABI_NAMESPACE_END
75#endif
add point locations to point data and/or cell centers cell data, respectively
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
static vtkAppendLocationAttributes * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkAppendLocationAttributes() override=default
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) 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:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce output of the same type as input.