VTK
9.3.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
12
#ifndef vtkWeakReference_h
13
#define vtkWeakReference_h
14
15
#include "vtkCommonCoreModule.h"
// For export macro
16
#include "
vtkObject.h
"
17
#include "
vtkWeakPointer.h
"
18
19
VTK_ABI_NAMESPACE_BEGIN
20
class
VTKCOMMONCORE_EXPORT
vtkWeakReference
:
public
vtkObject
21
{
22
public
:
23
vtkTypeMacro(
vtkWeakReference
,
vtkObject
);
24
static
vtkWeakReference
*
New
();
25
vtkWeakReference
();
26
~
vtkWeakReference
()
override
;
27
31
void
Set(
vtkObject
*
object
);
32
36
vtkObject
* Get();
37
38
private
:
39
vtkWeakPointer<vtkObject>
Object;
40
};
41
42
VTK_ABI_NAMESPACE_END
43
#endif
44
45
// VTK-HeaderTest-Exclude: vtkWeakReference.h
vtkObject
abstract base class for most VTK objects
Definition:
vtkObject.h:51
vtkWeakPointer< vtkObject >
vtkWeakReference
Utility class to hold a weak reference to a vtkObject.
Definition:
vtkWeakReference.h:20
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 Sun Mar 23 2025 01:38:10 for VTK by
1.8.10