21 #ifndef __vtkMRMLApplicationLogic_h 22 #define __vtkMRMLApplicationLogic_h 27 #include "vtkMRMLLogicExport.h" 54 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
64 void SetSliceLogics(vtkCollection* sliceLogics);
65 vtkCollection* GetSliceLogics()
const;
72 void SetViewLogics(vtkCollection* viewLogics);
73 vtkCollection* GetViewLogics()
const;
95 void PropagateVolumeSelection(
int fit = 1);
102 void PropagateBackgroundVolumeSelection(
int fit = 1);
109 void PropagateForegroundVolumeSelection(
int fit = 1);
116 void PropagateLabelVolumeSelection(
int fit = 1);
121 ForegroundLayer = 0x2,
122 BackgroundLayer = 0x4,
123 AllLayers = LabelLayer | ForegroundLayer | BackgroundLayer
129 void PropagateVolumeSelection(
int layer,
int fit);
134 void FitSliceToAll(
bool onlyIfPropagateVolumeSelectionAllowed=
false);
137 void PropagateTableSelection();
140 void PropagatePlotChartSelection();
144 bool Zip(
const char* zipFileName,
const char* directoryToZip);
148 bool Unzip(
const char* zipFileName,
const char* destinationDirectory);
159 static std::string PercentEncode(std::string s);
166 bool SaveSceneToSlicerDataBundleDirectory(
const char* sdbDir, vtkImageData* screenShot = NULL);
171 bool OpenSlicerDataBundle(
const char* sdbFilePath,
const char* temporaryDirectory);
176 std::string UnpackSlicerDataBundle(
const char* sdbFilePath,
const char* temporaryDirectory);
180 static int LoadDefaultParameterSets(
vtkMRMLScene* scene,
181 const std::vector<std::string>& directories);
188 static std::string CreateUniqueFileName(
const std::string &filename,
const std::string& knownExtension=
"");
192 RequestInvokeEvent = vtkCommand::UserEvent + 1
207 void InvokeEventWithDelay(
unsigned int delayInMs,
209 unsigned long eventID = vtkCommand::ModifiedEvent,
213 const char* GetTemporaryPath();
216 void SetTemporaryPath(
const char* path);
220 void SaveSceneScreenshot(vtkImageData* screenshot);
233 std::string &dataDir);
240 std::map<vtkMRMLStorageNode*, std::vector<std::string> > OriginalStorageNodeFileNames;
246 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.
virtual void SetMRMLSceneInternal(vtkMRMLScene *newScene)
A superclass for other storage nodes.
Slicer logic class for view manipulation.
MRML node to represent a 3D view.
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.