Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #include <mitkModifiedLock.h>
18 
20 {
21  m_baseGeometry = baseGeo;
22  m_baseGeometry->m_ModifiedLockFlag = true;
23  m_baseGeometry->m_ModifiedCalledFlag = false;
24 }
25 
27 {
28  m_baseGeometry->m_ModifiedLockFlag = false;
29 
30  if (m_baseGeometry->m_ModifiedCalledFlag)
31  m_baseGeometry->Modified();
32 
33  m_baseGeometry->m_ModifiedCalledFlag = false;
34 }
BaseGeometry Describes the geometry of a data object.