Slicer  4.10
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
vtkSlicerDataModuleLogic.h
Go to the documentation of this file.
1 /*==============================================================================
2 
3  Program: 3D Slicer
4 
5  Portions (c) Copyright Brigham and Women's Hospital (BWH) All Rights Reserved.
6 
7  See COPYRIGHT.txt
8  or http://www.slicer.org/copyright/copyright.txt for details.
9 
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15 
16  This file was originally developed by Csaba Pinter, PerkLab, Queen's University
17  and was supported through the Applied Cancer Research Unit program of Cancer Care
18  Ontario with funds provided by the Ontario Ministry of Health and Long-Term Care
19 
20 ==============================================================================*/
21 
22 // .NAME vtkSlicerDataModuleLogic - slicer logic class for data module
23 
24 #ifndef __vtkSlicerDataModuleLogic_h
25 #define __vtkSlicerDataModuleLogic_h
26 
27 // Slicer includes
28 #include "vtkSlicerModuleLogic.h"
29 
30 // STD includes
31 #include <cstdlib>
32 
33 #include "vtkSlicerDataModuleLogicExport.h"
34 
36 class VTK_SLICER_DATA_LOGIC_EXPORT vtkSlicerDataModuleLogic :
38 {
39 public:
40  static vtkSlicerDataModuleLogic *New();
42  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
43 
44 public:
45  vtkSetMacro( SceneChanged, bool );
46  vtkGetMacro( SceneChanged, bool );
47  vtkBooleanMacro( SceneChanged, bool );
48 
49 protected:
51  virtual ~vtkSlicerDataModuleLogic();
52 
54  virtual void RegisterNodes() VTK_OVERRIDE;
55 
56  virtual void SetMRMLSceneInternal(vtkMRMLScene* newScene) VTK_OVERRIDE;
57  virtual void UpdateFromMRMLScene() VTK_OVERRIDE;
58 
61  virtual void OnMRMLSceneNodeRemoved(vtkMRMLNode* removedNode) VTK_OVERRIDE;
62 
71  bool AutoRemoveDisplayAndStorageNodes;
72 
73 private:
74  vtkSlicerDataModuleLogic(const vtkSlicerDataModuleLogic&); // Not implemented
75  void operator=(const vtkSlicerDataModuleLogic&); // Not implemented
76 
77 protected:
79  bool SceneChanged;
80 
81 };
82 
83 #endif
static vtkSlicerModuleLogic * New()
The Usual vtk class functions.
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
A set of MRML Nodes that supports serialization and undo/redo.
Definition: vtkMRMLScene.h:54
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:138