Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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// STD includes
16#include <string>
17
18class VTK_SLICER_ANNOTATIONS_MODULE_LOGIC_EXPORT vtkSlicerAnnotationModuleLogic
20{
21public:
22 enum Events{
23 RefreshRequestEvent = vtkCommand::UserEvent,
25 };
28 void PrintSelf(ostream& os, vtkIndent indent) override;
29
31 void RegisterNodes() override;
32
33 //
34 // SnapShot functionality
35 //
37 void CreateSnapShot(const char* name, const char* description, int screenshotType, double scaleFactor, vtkImageData* screenshot);
38
40 void ModifySnapShot(std::string id, const char* name, const char* description, int screenshotType, double scaleFactor, vtkImageData* screenshot);
41
43 std::string GetSnapShotName(const char* id);
44
46 std::string GetSnapShotDescription(const char* id);
47
49 int GetSnapShotScreenshotType(const char* id);
50
52 double GetSnapShotScaleFactor(const char* id);
53
55 vtkImageData* GetSnapShotScreenshot(const char* id);
56
58 bool IsSnapshotNode(const char* id);
59
60protected:
61
64
65private:
67 void operator=(const vtkSlicerAnnotationModuleLogic&) = delete;
68};
69
70#endif
std::string GetSnapShotName(const char *id)
Return the name of an existing annotation snapShot.
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.
void ModifySnapShot(std::string 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
std::string GetSnapShotDescription(const char *id)
Return the description of an existing annotation snapShot.
int GetSnapShotScreenshotType(const char *id)
Return the screenshotType of an existing annotation snapShot.