Slicer 5.4
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
22class VTK_SLICER_ANNOTATIONS_MODULE_LOGIC_EXPORT vtkSlicerAnnotationModuleLogic
24{
25public:
26 enum Events{
27 RefreshRequestEvent = vtkCommand::UserEvent,
28 HierarchyNodeAddedEvent
29 };
32 void PrintSelf(ostream& os, vtkIndent indent) override;
33
35 void RegisterNodes() override;
36
37 //
38 // SnapShot functionality
39 //
41 void CreateSnapShot(const char* name, const char* description, int screenshotType, double scaleFactor, vtkImageData* screenshot);
42
44 void ModifySnapShot(vtkStdString id, const char* name, const char* description, int screenshotType, double scaleFactor, vtkImageData* screenshot);
45
47 vtkStdString GetSnapShotName(const char* id);
48
50 vtkStdString GetSnapShotDescription(const char* id);
51
53 int GetSnapShotScreenshotType(const char* id);
54
56 double GetSnapShotScaleFactor(const char* id);
57
59 vtkImageData* GetSnapShotScreenshot(const char* id);
60
62 bool IsSnapshotNode(const char* id);
63
64protected:
65
68
69private:
71 void operator=(const vtkSlicerAnnotationModuleLogic&) = delete;
72};
73
74#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.