VTK
9.7.1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
Common
Core
vtkWeakReference.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
3
15
#ifndef vtkWeakReference_h
16
#define vtkWeakReference_h
17
18
#include "vtkCommonCoreModule.h"
// For export macro
19
#include "
vtkObject.h
"
20
#include "
vtkWeakPointer.h
"
21
22
VTK_ABI_NAMESPACE_BEGIN
23
class
VTKCOMMONCORE_EXPORT
vtkWeakReference
:
public
vtkObject
24
{
25
public
:
26
vtkTypeMacro(
vtkWeakReference
,
vtkObject
);
27
static
vtkWeakReference
*
New
();
28
vtkWeakReference
();
29
~
vtkWeakReference
()
override
;
30
34
void
Set(
vtkObject
*
object
);
35
39
vtkObject
* Get();
40
41
private
:
42
vtkWeakPointer<vtkObject>
Object;
43
};
44
45
VTK_ABI_NAMESPACE_END
46
#endif
47
48
// VTK-HeaderTest-Exclude: vtkWeakReference.h
vtkObject
abstract base class for most VTK objects
Definition:
vtkObject.h:52
vtkWeakPointer< vtkObject >
vtkWeakReference
Utility class to hold a weak reference to a vtkObject.
Definition:
vtkWeakReference.h:23
vtkWeakPointer.h
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
vtkObject.h
Generated on Tue Oct 20 2026 10:47:51 for VTK by
1.8.10