Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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
29
30// STD includes
31#include <cstdlib>
32
33#include "vtkSlicerDataModuleLogicExport.h"
34
35class VTK_SLICER_DATA_LOGIC_EXPORT vtkSlicerDataModuleLogic :
37{
38public:
41 void PrintSelf(ostream& os, vtkIndent indent) override;
42
43public:
44 vtkSetMacro( SceneChanged, bool );
45 vtkGetMacro( SceneChanged, bool );
46 vtkBooleanMacro( SceneChanged, bool );
47
48protected:
51
53 void RegisterNodes() override;
54
55 void SetMRMLSceneInternal(vtkMRMLScene* newScene) override;
56 void UpdateFromMRMLScene() override;
57
60 void OnMRMLSceneNodeRemoved(vtkMRMLNode* removedNode) override;
61
71
72private:
74 void operator=(const vtkSlicerDataModuleLogic&) = delete;
75
76protected:
79
80};
81
82#endif
Abstract Superclass for all specific types of MRML nodes.
A set of MRML Nodes that supports serialization and undo/redo.
void RegisterNodes() override
Register MRML Node classes to Scene. Gets called automatically when the MRMLScene is attached to this...
void UpdateFromMRMLScene() override
void OnMRMLSceneNodeRemoved(vtkMRMLNode *removedNode) override
void PrintSelf(ostream &os, vtkIndent indent) override
~vtkSlicerDataModuleLogic() override
void SetMRMLSceneInternal(vtkMRMLScene *newScene) override
bool SceneChanged
Flag indicating if the scene has recently changed (update of the module GUI if needed)
static vtkSlicerDataModuleLogic * New()