Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
mitkModifiedLock.cpp
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #include <mitkModifiedLock.h>
14 
16 {
17  m_baseGeometry = baseGeo;
18  m_baseGeometry->m_ModifiedLockFlag = true;
19  m_baseGeometry->m_ModifiedCalledFlag = false;
20 }
21 
23 {
24  m_baseGeometry->m_ModifiedLockFlag = false;
25 
26  if (m_baseGeometry->m_ModifiedCalledFlag)
27  m_baseGeometry->Modified();
28 
29  m_baseGeometry->m_ModifiedCalledFlag = false;
30 }
void Modified() const override
Overload of function Modified() to prohibit several calls of Modified() using the ModifiedLock class...
BaseGeometry Describes the geometry of a data object.