21#ifndef vtkSlicerSceneViewsModuleLogic_h
22#define vtkSlicerSceneViewsModuleLogic_h
30#include "vtkSlicerSceneViewsModuleLogicExport.h"
51 void PrintSelf(ostream& os, vtkIndent indent)
override;
60 void CreateSceneView(
const char* name,
const char* description,
int screenshotType, vtkImageData* screenshot);
63 void ModifySceneView(std::string
id,
const char* name,
const char* description,
int screenshotType, vtkImageData* screenshot);
108 std::string m_StringHolder;
Abstract Superclass for all specific types of MRML nodes.
A set of MRML Nodes that supports serialization and undo/redo.
const char * MoveSceneViewDown(const char *id)
Move sceneView up.
void RegisterNodes() override
Register MRML Node classes to Scene. Gets called automatically when the MRMLScene is attached to this...
void OnMRMLSceneEndImport() override
~vtkSlicerSceneViewsModuleLogic() override
void RemoveSceneViewNode(vtkMRMLSceneViewNode *sceneViewNode)
Remove a scene view node.
void ModifySceneView(std::string id, const char *name, const char *description, int screenshotType, vtkImageData *screenshot)
Modify an existing sceneView.
void OnMRMLNodeModified(vtkMRMLNode *node) override
void CreateSceneView(const char *name, const char *description, int screenshotType, vtkImageData *screenshot)
Create a sceneView..
void OnMRMLSceneNodeAdded(vtkMRMLNode *node) override
static vtkSlicerSceneViewsModuleLogic * New()
int GetSceneViewScreenshotType(const char *id)
Return the screenshotType of an existing sceneView.
void SetMRMLSceneInternal(vtkMRMLScene *newScene) override
Initialize listening to MRML events.
vtkSlicerSceneViewsModuleLogic()
std::string GetSceneViewName(const char *id)
Return the name of an existing sceneView.
bool RestoreSceneView(const char *id, bool removeNodes=true)
void PrintSelf(ostream &os, vtkIndent indent) override
const char * MoveSceneViewUp(const char *id)
Move sceneView up.
std::string GetSceneViewDescription(const char *id)
Return the description of an existing sceneView.
vtkImageData * GetSceneViewScreenshot(const char *id)
Return the screenshot of an existing sceneView.
void OnMRMLSceneEndRestore() override
void OnMRMLSceneEndClose() override