VTK  9.3.1
vtkTransferAttributes.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3 // SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
22 #ifndef vtkTransferAttributes_h
23 #define vtkTransferAttributes_h
24 
25 #include "vtkInfovisCoreModule.h" // For export macro
27 #include "vtkVariant.h" //For vtkVariant method arguments
28 
29 VTK_ABI_NAMESPACE_BEGIN
30 class VTKINFOVISCORE_EXPORT vtkTransferAttributes : public vtkPassInputTypeAlgorithm
31 {
32 public:
40  static vtkTransferAttributes* New();
41 
43  void PrintSelf(ostream& os, vtkIndent indent) override;
44 
46 
52  vtkSetMacro(DirectMapping, bool);
53  vtkGetMacro(DirectMapping, bool);
54  vtkBooleanMacro(DirectMapping, bool);
56 
58 
61  vtkGetStringMacro(SourceArrayName);
62  vtkSetStringMacro(SourceArrayName);
64 
66 
69  vtkGetStringMacro(TargetArrayName);
70  vtkSetStringMacro(TargetArrayName);
72 
74 
78  vtkGetMacro(SourceFieldType, int);
79  vtkSetMacro(SourceFieldType, int);
81 
83 
87  vtkGetMacro(TargetFieldType, int);
88  vtkSetMacro(TargetFieldType, int);
90 
92 
95  vtkVariant GetDefaultValue();
96  void SetDefaultValue(vtkVariant value);
98 
102  int FillInputPortInformation(int port, vtkInformation* info) override;
103 
104 protected:
106  ~vtkTransferAttributes() override;
107 
113 
115 
120 
121 private:
123  void operator=(const vtkTransferAttributes&) = delete;
124 };
125 
126 VTK_ABI_NAMESPACE_END
127 #endif
Superclass for algorithms that produce output of the same type as input.
Store vtkAlgorithm input/output information.
A type representing the union of many types.
Definition: vtkVariant.h:52
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.
transfer data from a graph representation to a tree representation using direct mapping or pedigree i...
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.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
static vtkPassInputTypeAlgorithm * New()