Slicer 5.6
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
vtkSlicerAnnotationModuleLogic.h
Go to the documentation of this file.
1#ifndef __vtkSlicerAnnotationModuleLogic_h
2#define __vtkSlicerAnnotationModuleLogic_h
3
4// Slicer Logic includes
5#include "vtkSlicerAnnotationsModuleLogicExport.h"
7
8// MRML includes
14
15// VTK includes
16#include <vtkStdString.h>
17
18// STD includes
19#include <string>
20
21class VTK_SLICER_ANNOTATIONS_MODULE_LOGIC_EXPORT vtkSlicerAnnotationModuleLogic
23{
24public:
25 enum Events{
26 RefreshRequestEvent = vtkCommand::UserEvent,
27 HierarchyNodeAddedEvent
28 };
31 void PrintSelf(ostream& os, vtkIndent indent) override;
32
34 void RegisterNodes() override;
35
36 //
37 // SnapShot functionality
38 //
40 void CreateSnapShot(const char* name, const char* description, int screenshotType, double scaleFactor, vtkImageData* screenshot);
41
43 void ModifySnapShot(vtkStdString id, const char* name, const char* description, int screenshotType, double scaleFactor, vtkImageData* screenshot);
44
46 vtkStdString GetSnapShotName(const char* id);
47
49 vtkStdString GetSnapShotDescription(const char* id);
50
52 int GetSnapShotScreenshotType(const char* id);
53
55 double GetSnapShotScaleFactor(const char* id);
56
58 vtkImageData* GetSnapShotScreenshot(const char* id);
59
61 bool IsSnapshotNode(const char* id);
62
63protected:
64
67
68private:
70 void operator=(const vtkSlicerAnnotationModuleLogic&) = delete;
71};
72
73#endif
void PrintSelf(ostream &os, vtkIndent indent) override
void CreateSnapShot(const char *name, const char *description, int screenshotType, double scaleFactor, vtkImageData *screenshot)
Create a snapShot.
bool IsSnapshotNode(const char *id)
Check if node id corresponds to a snapShot node.
double GetSnapShotScaleFactor(const char *id)
Return the scaleFactor of an existing annotation snapShot.
vtkStdString GetSnapShotDescription(const char *id)
Return the description of an existing annotation snapShot.
vtkStdString GetSnapShotName(const char *id)
Return the name of an existing annotation snapShot.
void ModifySnapShot(vtkStdString id, const char *name, const char *description, int screenshotType, double scaleFactor, vtkImageData *screenshot)
Modify an existing snapShot.
void RegisterNodes() override
Register MRML Node classes to Scene. Gets called automatically when the MRMLScene is attached to this...
vtkImageData * GetSnapShotScreenshot(const char *id)
Return the screenshot of an existing annotation snapShot.
static vtkSlicerAnnotationModuleLogic * New()
~vtkSlicerAnnotationModuleLogic() override
int GetSnapShotScreenshotType(const char *id)
Return the screenshotType of an existing annotation snapShot.