![]() |
Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
Safe replacement of MRML node start/end modify. More...
#include <Libs/MRML/Core/vtkMRMLNode.h>
Public Member Functions | |
MRMLNodeModifyBlocker (const MRMLNodeModifyBlocker &)=delete | |
MRMLNodeModifyBlocker (MRMLNodeModifyBlocker &&other) noexcept | |
MRMLNodeModifyBlocker (vtkMRMLNode *node) | |
MRMLNodeModifyBlocker & | operator= (const MRMLNodeModifyBlocker &)=delete |
MRMLNodeModifyBlocker & | operator= (MRMLNodeModifyBlocker &&other) noexcept |
~MRMLNodeModifyBlocker () | |
Protected Attributes | |
vtkWeakPointer< vtkMRMLNode > | Node |
int | WasModifying |
Safe replacement of MRML node start/end modify.
MRMLNodeModifyBlocker can be used wherever you would otherwise use a pair of calls to node->StartModify() and node->EndModify(). It temporarily blocks invoke of node modify and custom modify events in its constructor and in the destructor it resets the state to what it was before the constructor ran.
Definition at line 1202 of file vtkMRMLNode.h.
|
inlineexplicit |
Definition at line 1205 of file vtkMRMLNode.h.
|
inline |
Definition at line 1215 of file vtkMRMLNode.h.
|
delete |
|
inlinenoexcept |
Definition at line 1228 of file vtkMRMLNode.h.
|
delete |
|
inlinenoexcept |
Definition at line 1237 of file vtkMRMLNode.h.
|
protected |
Definition at line 1254 of file vtkMRMLNode.h.
|
protected |
Definition at line 1255 of file vtkMRMLNode.h.