VTK  9.3.1
vtkInformationDataObjectKey.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
11 #ifndef vtkInformationDataObjectKey_h
12 #define vtkInformationDataObjectKey_h
13 
14 #include "vtkCommonCoreModule.h" // For export macro
15 #include "vtkInformationKey.h"
16 
17 #include "vtkCommonInformationKeyManager.h" // Manage instances of this type.
18 
19 VTK_ABI_NAMESPACE_BEGIN
20 class vtkDataObject;
21 
22 class VTKCOMMONCORE_EXPORT vtkInformationDataObjectKey : public vtkInformationKey
23 {
24 public:
26  void PrintSelf(ostream& os, vtkIndent indent) override;
27 
28  vtkInformationDataObjectKey(const char* name, const char* location);
29  ~vtkInformationDataObjectKey() override;
30 
37  const char* name, const char* location)
38  {
39  return new vtkInformationDataObjectKey(name, location);
40  }
41 
43 
47  void Set(vtkInformation* info, vtkDataObject*);
50 
56  void ShallowCopy(vtkInformation* from, vtkInformation* to) override;
57 
61  void Report(vtkInformation* info, vtkGarbageCollector* collector) override;
62 
63 private:
65  void operator=(const vtkInformationDataObjectKey&) = delete;
66 };
67 
68 VTK_ABI_NAMESPACE_END
69 #endif
virtual void Report(vtkInformation *info, vtkGarbageCollector *collector)
Report a reference this key has in the given information object.
virtual void ShallowCopy(vtkInformation *from, vtkInformation *to)=0
Copy the entry associated with this key from one information object to another.
Store vtkAlgorithm input/output information.
Key for vtkDataObject values.
static vtkInformationDataObjectKey * MakeKey(const char *name, const char *location)
This method simply returns a new vtkInformationDataObjectKey, given a name and a location.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Detect and break reference loops.
Superclass for vtkInformation keys.
a simple class to control print indentation
Definition: vtkIndent.h:28
#define VTK_NEWINSTANCE
general representation of visualization data
Definition: vtkDataObject.h:54