22 #ifndef __vtkSlicerUnitsLogic_h    23 #define __vtkSlicerUnitsLogic_h    31 #include "vtkSlicerUnitsModuleLogicExport.h"    49   void PrintSelf(ostream& os, vtkIndent indent) 
override;
    54     const char* quantity = 
"length",
    55     const char* prefix = 
"",
    56     const char* suffix = 
"",
    62   void SetDefaultUnit(
const char* quantity, 
const char* 
id);
   101   static double GetSIPrefixCoefficient(
const char* prefix);
   129   static double GetDisplayCoefficient(
const char* displayPrefix, 
const char* valuePrefix = 
"", 
double power=1);
   146   virtual void AddDefaultsUnits();
   158   virtual void RegisterNodesInternal(
vtkMRMLScene* scene);
   190     const char* quantity = 
"length",
   191     const char* prefix = 
"",
   192     const char* suffix = 
"",
   194     double min = -10000.,
   196     double displayCoeff = 1.0,
   197     double displayOffset = 0.0);
   201   void SaveDefaultUnits();
   206   void RestoreDefaultUnits();
   217   std::map<std::string, std::string> CachedDefaultUnits;
   221   bool RestoringDefaultUnits;
 Superclass for MRML logic classes. 
void PrintSelf(ostream &os, vtkIndent indent) override
virtual void OnMRMLSceneStartBatchProcess()
vtkMRMLScene * UnitsScene
virtual void OnMRMLNodeModified(vtkMRMLNode *)
A set of MRML Nodes that supports serialization and undo/redo. 
virtual void RegisterNodes()
virtual void ObserveMRMLScene()
virtual void SetMRMLSceneInternal(vtkMRMLScene *newScene)
Slicer logic for unit manipulation. 
virtual void UpdateFromMRMLScene()
Abstract Superclass for all specific types of MRML nodes. 
static vtkMRMLAbstractLogic * New()
Node that holds the information about a unit.