VTK
dox
Common
Core
vtkWeakReference.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkWeakReference.h
5
6
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7
All rights reserved.
8
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10
This software is distributed WITHOUT ANY WARRANTY; without even
11
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
PURPOSE. See the above copyright notice for more information.
13
14
=========================================================================*/
15
24
#ifndef vtkWeakReference_h
25
#define vtkWeakReference_h
26
27
#include "vtkCommonCoreModule.h"
// For export macro
28
#include "
vtkObject.h
"
29
#include "
vtkWeakPointer.h
"
30
31
class
VTKCOMMONCORE_EXPORT
vtkWeakReference
:
public
vtkObject
32
{
33
public
:
34
vtkTypeMacro(
vtkWeakReference
,
vtkObject
);
35
static
vtkWeakReference
*
New
();
36
vtkWeakReference
();
37
~
vtkWeakReference
()
override
;
38
42
void
Set(
vtkObject
*
object
);
43
47
vtkObject
* Get();
48
49
private
:
50
vtkWeakPointer<vtkObject>
Object;
51
};
52
53
#endif
54
55
// VTK-HeaderTest-Exclude: vtkWeakReference.h
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkObject
abstract base class for most VTK objects
Definition:
vtkObject.h:59
vtkWeakReference
Utility class to hold a weak reference to a vtkObject.
Definition:
vtkWeakReference.h:31
vtkWeakPointer.h
vtkObject.h
vtkWeakPointer< vtkObject >
Generated by
1.8.16