VTK  9.3.20240418
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);
30 
37  const char* name, const char* location)
38  {
40  }
41 
43 
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
general representation of visualization data
Detect and break reference loops.
a simple class to control print indentation
Definition: vtkIndent.h:108
Key for vtkDataObject values.
void ShallowCopy(vtkInformation *from, vtkInformation *to) override
Copy the entry associated with this key from one information object to another.
vtkInformationDataObjectKey(const char *name, const char *location)
void Report(vtkInformation *info, vtkGarbageCollector *collector) override
Report a reference this key has in the given information object.
static vtkInformationDataObjectKey * MakeKey(const char *name, const char *location)
This method simply returns a new vtkInformationDataObjectKey, given a name and a location.
~vtkInformationDataObjectKey() override
void Set(vtkInformation *info, vtkDataObject *)
Get/Set the value associated with this key in the given information object.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkDataObject * Get(vtkInformation *info)
Get/Set the value associated with this key in the given information object.
Superclass for vtkInformation keys.
Store vtkAlgorithm input/output information.
@ location
Definition: vtkX3D.h:406
@ info
Definition: vtkX3D.h:376
@ name
Definition: vtkX3D.h:219
#define VTK_NEWINSTANCE