VTK: Filters/General/vtkAppendLocationAttributes.h Source File

| 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
27 #include "vtkPassInputTypeAlgorithm.h"
28
29 VTK_ABI_NAMESPACE_BEGIN
30 class VTKFILTERSGENERAL_EXPORT vtkAppendLocationAttributes : public vtkPassInputTypeAlgorithm
31 {
32 public:
33 static vtkAppendLocationAttributes* New();
34 vtkTypeMacro(vtkAppendLocationAttributes, vtkPassInputTypeAlgorithm);
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
63 int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
64 int FillInputPortInformation(int port, vtkInformation* info) override;
65
66 bool AppendPointLocations = true;
67 bool AppendCellCenters = true;
68
69 private:
70 vtkAppendLocationAttributes(const vtkAppendLocationAttributes&) = delete;
71 void operator=(const vtkAppendLocationAttributes&) = delete;
72 };
73
74 VTK_ABI_NAMESPACE_END
75 #endif
vtkAppendLocationAttributes
add point locations to point data and/or cell centers cell data, respectively
Definition: vtkAppendLocationAttributes.h:31
vtkAppendLocationAttributes::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkAppendLocationAttributes::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkAppendLocationAttributes::New
static vtkAppendLocationAttributes * New()
vtkAppendLocationAttributes::~vtkAppendLocationAttributes
~vtkAppendLocationAttributes() override=default
vtkAppendLocationAttributes::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
vtkAppendLocationAttributes::vtkAppendLocationAttributes
vtkAppendLocationAttributes()=default
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkPassInputTypeAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkPassInputTypeAlgorithm.h:45
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkPassInputTypeAlgorithm.h