Medical Imaging Interaction Toolkit  2021.02.99-89548602
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 (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 #ifndef ModifiedLock_H_HEADER_INCLUDED
13 #define ModifiedLock_H_HEADER_INCLUDED
14 
15 #include <MitkCoreExports.h>
16 #include <mitkBaseGeometry.h>
17 namespace mitk
18 {
19  //##Documentation
20  //## @brief ModifiedLock manages the calls of Modified() functions
21  //##
22  //## If an object of ModifiedLock is created, the ModifiedLockFlag in class
23  //## BaseGeometry is set to true. Therefore, all following calls of Modified()
24  //## will be collected and only be carried out at the end of the function / section,
25  //## when the deconstructor of the ModifiedLock object is called.
26  //##
28  {
29  public:
30  ModifiedLock();
31  ModifiedLock(BaseGeometry *baseGeo);
32  ~ModifiedLock();
33 
34  private:
35  BaseGeometry *m_baseGeometry;
36  };
37 }
38 
39 #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.