Slicer  4.11
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) override;
43 
44 public:
45  vtkSetMacro( SceneChanged, bool );
46  vtkGetMacro( SceneChanged, bool );
47  vtkBooleanMacro( SceneChanged, bool );
48 
49 protected:
51  ~vtkSlicerDataModuleLogic() override;
52 
54  void RegisterNodes() override;
55 
56  void SetMRMLSceneInternal(vtkMRMLScene* newScene) override;
57  void UpdateFromMRMLScene() override;
58 
61  void OnMRMLSceneNodeRemoved(vtkMRMLNode* removedNode) override;
62 
72 
73 private:
75  void operator=(const vtkSlicerDataModuleLogic&) = delete;
76 
77 protected:
80 
81 };
82 
83 #endif
void PrintSelf(ostream &os, vtkIndent indent) override
static vtkSlicerModuleLogic * New()
The Usual vtk class functions.
bool SceneChanged
Flag indicating if the scene has recently changed (update of the module GUI if needed) ...
A set of MRML Nodes that supports serialization and undo/redo.
Definition: vtkMRMLScene.h:61
virtual void OnMRMLSceneNodeRemoved(vtkMRMLNode *)
virtual void SetMRMLSceneInternal(vtkMRMLScene *newScene)
virtual void UpdateFromMRMLScene()
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:167