Slicer  4.8
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
vtkMRMLLogic.h
Go to the documentation of this file.
1 /*=auto=========================================================================
2 
3  Portions (c) Copyright 2005 Brigham and Women's Hospital (BWH) All Rights Reserved.
4 
5  See COPYRIGHT.txt
6  or http://www.slicer.org/copyright/copyright.txt for details.
7 
8  Program: 3D Slicer
9  Module: $RCSfile: vtkMRMLLogic.h,v $
10  Date: $Date: 2006/01/08 04:48:05 $
11  Version: $Revision: 1.45 $
12 
13 =========================================================================auto=*/
14 
15 #ifndef __vtkMRMLLogic_h
16 #define __vtkMRMLLogic_h
17 
18 // MRML includes
19 #include "vtkMRML.h"
20 class vtkMRMLScene;
21 
22 // VTK includes
23 #include <vtkObject.h>
24 
30 class VTK_MRML_EXPORT vtkMRMLLogic : public vtkObject
31 {
32 public:
34  static vtkMRMLLogic *New();
35  vtkTypeMacro(vtkMRMLLogic,vtkObject);
36  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE { this->Superclass::PrintSelf(os, indent); }
37 
38  vtkMRMLScene* GetScene() {return this->Scene;};
39  void SetScene(vtkMRMLScene* scene) {this->Scene = scene;};
40 
41  void RemoveUnreferencedStorageNodes();
42 
43  void RemoveUnreferencedDisplayNodes();
44 
47  static std::string GetApplicationHomeDirectory();
48 
51  static std::string GetApplicationShareDirectory();
52 
53 protected:
54  vtkMRMLLogic();
55  virtual ~vtkMRMLLogic();
56  vtkMRMLLogic(const vtkMRMLLogic&);
57  void operator=(const vtkMRMLLogic&);
58 
60 };
61 
62 #endif
vtkMRMLScene * Scene
Definition: vtkMRMLLogic.h:59
A set of MRML Nodes that supports serialization and undo/redo.
Definition: vtkMRMLScene.h:54
void SetScene(vtkMRMLScene *scene)
Definition: vtkMRMLLogic.h:39
Class that manages adding and deleting of observers with events.
Definition: vtkMRMLLogic.h:30
vtkMRMLScene * GetScene()
Definition: vtkMRMLLogic.h:38
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
Definition: vtkMRMLLogic.h:36