Slicer  5.0
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Public Member Functions | Public Attributes
MRMLNodeModifyBlocker Class Reference

Safe replacement of MRML node start/end modify. More...

#include <Libs/MRML/Core/vtkMRMLNode.h>

Public Member Functions

 MRMLNodeModifyBlocker (vtkMRMLNode *node)
 
 ~MRMLNodeModifyBlocker ()
 

Public Attributes

vtkWeakPointer< vtkMRMLNodeNode
 
int WasModifying
 

Detailed Description

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 1016 of file vtkMRMLNode.h.

Constructor & Destructor Documentation

◆ MRMLNodeModifyBlocker()

MRMLNodeModifyBlocker::MRMLNodeModifyBlocker ( vtkMRMLNode node)
inline

Definition at line 1021 of file vtkMRMLNode.h.

◆ ~MRMLNodeModifyBlocker()

MRMLNodeModifyBlocker::~MRMLNodeModifyBlocker ( )
inline

Definition at line 1029 of file vtkMRMLNode.h.

Member Data Documentation

◆ Node

vtkWeakPointer<vtkMRMLNode> MRMLNodeModifyBlocker::Node

Definition at line 1019 of file vtkMRMLNode.h.

◆ WasModifying

int MRMLNodeModifyBlocker::WasModifying

Definition at line 1020 of file vtkMRMLNode.h.


The documentation for this class was generated from the following file: