VTK  9.1.0
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 =========================================================================*/
32 #ifndef vtkAppendLocationAttributes_h
33 #define vtkAppendLocationAttributes_h
34 
35 #include "vtkFiltersGeneralModule.h" // For export macro
37 
38 class VTKFILTERSGENERAL_EXPORT vtkAppendLocationAttributes : public vtkPassInputTypeAlgorithm
39 {
40 public:
43  void PrintSelf(ostream& os, vtkIndent indent) override;
44 
46 
51  vtkSetMacro(AppendPointLocations, bool);
52  vtkGetMacro(AppendPointLocations, bool);
53  vtkBooleanMacro(AppendPointLocations, bool);
55 
57 
62  vtkSetMacro(AppendCellCenters, bool);
63  vtkGetMacro(AppendCellCenters, bool);
64  vtkBooleanMacro(AppendCellCenters, bool);
66 
67 protected:
69  ~vtkAppendLocationAttributes() override = default;
70 
73 
74  bool AppendPointLocations = true;
75  bool AppendCellCenters = true;
76 
77 private:
79  void operator=(const vtkAppendLocationAttributes&) = delete;
80 };
81 
82 #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.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkAppendLocationAttributes * New()
~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:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce output of the same type as input.
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453