21 #ifndef __vtkMRMLApplicationLogic_h    22 #define __vtkMRMLApplicationLogic_h    27 #include "vtkMRMLLogicExport.h"    52   void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
    62   void SetSliceLogics(vtkCollection* sliceLogics);
    63   vtkCollection* GetSliceLogics()
const;
    87   void PropagateVolumeSelection(
int fit = 1);
    94   void PropagateBackgroundVolumeSelection(
int fit = 1);
   101   void PropagateForegroundVolumeSelection(
int fit = 1);
   108   void PropagateLabelVolumeSelection(
int fit = 1);
   113     ForegroundLayer = 0x2,
   114     BackgroundLayer = 0x4,
   115     AllLayers = LabelLayer | ForegroundLayer | BackgroundLayer
   121   void PropagateVolumeSelection(
int layer, 
int fit);
   126   void FitSliceToAll(
bool onlyIfPropagateVolumeSelectionAllowed=
false);
   129   void PropagateTableSelection();
   132   void PropagatePlotChartSelection();
   136   bool Zip(
const char *zipFileName, 
const char *directoryToZip);
   140   bool Unzip(
const char *zipFileName, 
const char *destinationDirectory);
   151   std::string PercentEncode(std::string s);
   158   bool SaveSceneToSlicerDataBundleDirectory(
const char *sdbDir, vtkImageData *screenShot = NULL);
   163   bool OpenSlicerDataBundle(
const char *sdbFilePath, 
const char *temporaryDirectory);
   168   std::string UnpackSlicerDataBundle(
const char *sdbFilePath, 
const char *temporaryDirectory);
   172   static int LoadDefaultParameterSets(
vtkMRMLScene * scene,
   173                                       const std::vector<std::string>& directories);
   176   static std::string CreateUniqueFileName(std::string &filename);
   180     RequestInvokeEvent = vtkCommand::UserEvent + 1
   195   void InvokeEventWithDelay(
unsigned int delayInMs,
   197                             unsigned long eventID = vtkCommand::ModifiedEvent,
   201   const char* GetTemporaryPath();
   204   void SetTemporaryPath(
const char* path);
   211   virtual void SetMRMLSceneInternal(
vtkMRMLScene *newScene) VTK_OVERRIDE;
   217                                                  std::string &dataDir);
   223   std::map<vtkMRMLStorageNode*, std::string> OriginalStorageNodeDirs;
   227   std::map<vtkMRMLStorageNode*, std::vector<std::string> > OriginalStorageNodeFileNames;
   233   vtkInternal* Internal;
 unsigned long EventID
The event id of InvokeEvent. ModifiedEvent by default. 
 
Superclass for MRML logic classes. 
 
vtkObject * Caller
the caller to call InvokeEvent() on. 
 
MRML node to represent a display property of 3D surface model. 
 
unsigned int Delay
100ms by default. 
 
MRML node for storing a slice through RAS space. 
 
MRML logic class for color manipulation. 
 
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
 
Events
List of custom events fired by the class. 
 
void * CallData
Optional call data. 0 by default. 
 
MRML node to represent a 3D surface model. 
 
A set of MRML Nodes that supports serialization and undo/redo. 
 
Structure passed as calldata pointer in the RequestEvent invoked event. 
 
A supercalss for other storage nodes. 
 
Slicer logic class for volumes manipulation. 
 
static vtkMRMLAbstractLogic * New()
 
MRML node for storing information about the active nodes in the scene. 
 
Slicer logic class for slice manipulation.