Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkModifiedLock.h
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 #ifndef ModifiedLock_H_HEADER_INCLUDED
17 #define ModifiedLock_H_HEADER_INCLUDED
18 
19 #include <MitkCoreExports.h>
20 #include <mitkBaseGeometry.h>
21 namespace mitk
22 {
23  //##Documentation
24  //## @brief ModifiedLock manages the calls of Modified() functions
25  //##
26  //## If an object of ModifiedLock is created, the ModifiedLockFlag in class
27  //## BaseGeometry is set to true. Therefore, all following calls of Modified()
28  //## will be collected and only be carried out at the end of the function / section,
29  //## when the deconstructor of the ModifiedLock object is called.
30  //##
32  {
33  public:
34  ModifiedLock();
35  ModifiedLock(BaseGeometry *baseGeo);
36  ~ModifiedLock();
37 
38  private:
39  BaseGeometry *m_baseGeometry;
40  };
41 }
42 
43 #endif // Header
#define MITKCORE_EXPORT
ModifiedLock manages the calls of Modified() functions.
DataCollection - Class to facilitate loading/accessing structured data.
BaseGeometry Describes the geometry of a data object.