VTK  9.0.1
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 
50  vtkSetMacro(AppendPointLocations, bool);
51  vtkGetMacro(AppendPointLocations, bool);
52  vtkBooleanMacro(AppendPointLocations, bool);
54 
56 
61  vtkSetMacro(AppendCellCenters, bool);
62  vtkGetMacro(AppendCellCenters, bool);
63  vtkBooleanMacro(AppendCellCenters, bool);
65 
66 protected:
67  vtkAppendLocationAttributes() = default;
68  ~vtkAppendLocationAttributes() override = default;
69 
72 
73  bool AppendPointLocations = true;
74  bool AppendCellCenters = true;
75 
76 private:
78  void operator=(const vtkAppendLocationAttributes&) = delete;
79 };
80 
81 #endif
vtkPassInputTypeAlgorithm.h
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkPassInputTypeAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkX3D::port
@ port
Definition: vtkX3D.h:453
vtkPassInputTypeAlgorithm::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
Definition: vtkPassInputTypeAlgorithm.h:171
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkX3D::info
@ info
Definition: vtkX3D.h:382
vtkPassInputTypeAlgorithm::New
static vtkPassInputTypeAlgorithm * New()
vtkPassInputTypeAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPassInputTypeAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkPassInputTypeAlgorithm.h:51
vtkAppendLocationAttributes
add point locations to point data and/or cell centers cell data, respectively
Definition: vtkAppendLocationAttributes.h:38