Slicer  5.0
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
vtkSlicerModuleLogic.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 =========================================================================auto=*/
13 
14 #ifndef __vtkSlicerModuleLogic_h
15 #define __vtkSlicerModuleLogic_h
16 
17 // SlicerLogic includes
19 
20 // MRMLLogic includes
21 #include <vtkMRMLAbstractLogic.h>
22 
23 class VTK_SLICER_BASE_LOGIC_EXPORT vtkSlicerModuleLogic
24  : public vtkMRMLAbstractLogic
25 {
26 public:
28  static vtkSlicerModuleLogic *New();
30  void PrintSelf(ostream& os, vtkIndent indent) override;
31 
33  virtual vtkSlicerApplicationLogic* GetApplicationLogic();
34  //TODO virtual void SetApplicationLogic(vtkSlicerApplicationLogic* logic);
35 
37  virtual vtkMRMLAbstractLogic* GetModuleLogic(const char* moduleName);
38 
39  std::string GetModuleShareDirectory()const;
40  void SetModuleShareDirectory(const std::string& shareDirectory);
41 
42 protected:
43 
45  ~vtkSlicerModuleLogic() override;
46 
47 private:
48 
50  void operator=(const vtkSlicerModuleLogic&) = delete;
51 
52  std::string ModuleShareDirectory;
53 };
54 
55 #endif
56 
Superclass for MRML logic classes.
void PrintSelf(ostream &os, vtkIndent indent) override
static vtkMRMLAbstractLogic * New()