VTK  9.3.20240423
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
19VTK_ABI_NAMESPACE_BEGIN
20class vtkDataObject;
21
22class VTKCOMMONCORE_EXPORT vtkInformationDataObjectKey : public vtkInformationKey
23{
24public:
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 {
39 return new vtkInformationDataObjectKey(name, location);
40 }
41
43
50
56 void ShallowCopy(vtkInformation* from, vtkInformation* to) override;
57
61 void Report(vtkInformation* info, vtkGarbageCollector* collector) override;
62
63private:
65 void operator=(const vtkInformationDataObjectKey&) = delete;
66};
67
68VTK_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.
~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.
static vtkInformationDataObjectKey * MakeKey(const char *name, const char *location)
This method simply returns a new vtkInformationDataObjectKey, given a name and a location.
Superclass for vtkInformation keys.
Store vtkAlgorithm input/output information.
#define VTK_NEWINSTANCE