Slicer 5.4
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
vtkMRMLAnnotationSnapshotNode.h
Go to the documentation of this file.
1// .NAME vtkMRMLAnnotationSnapshotNode - MRML node to represent scene snapshot including description and screenshot
2// .SECTION Description
3// n/A
4//
5
6#ifndef __vtkMRMLAnnotationSnapshotNode_h
7#define __vtkMRMLAnnotationSnapshotNode_h
8
9#include "vtkSlicerAnnotationsModuleMRMLExport.h"
12
13#include <vtkStdString.h>
14class vtkImageData;
15class vtkStringArray;
17
19class VTK_SLICER_ANNOTATIONS_MODULE_MRML_EXPORT vtkMRMLAnnotationSnapshotNode : public vtkMRMLAnnotationNode
20{
21public:
24
25 //--------------------------------------------------------------------------
26 // MRMLNode methods
27 //--------------------------------------------------------------------------
28
30 // Description:
31 // Get node XML tag name (like Volume, Model)
32 const char* GetNodeTagName() override {return "AnnotationSnapshot";}
33
34 const char* GetIcon() override {return ":/Icons/ViewCamera.png";}
35
36 void SetSnapshotDescription(const vtkStdString& newDescription);
37 vtkGetMacro(SnapshotDescription, vtkStdString)
38
39 void WriteXML(ostream& of, int nIndent) override;
40 void ReadXMLAttributes(const char** atts) override;
41
43 virtual void SetScreenShot(vtkImageData* );
44 vtkGetObjectMacro(ScreenShot, vtkImageData);
45
47 vtkGetMacro(ScaleFactor, double);
48 vtkSetMacro(ScaleFactor, double);
49
56 // TODO use an enum for the types
57 void SetScreenShotType(int type);
58 vtkGetMacro(ScreenShotType, int);
59
61 vtkMRMLStorageNode* CreateDefaultStorageNode() override;
62
63 enum
64 {
65 SnapshotNodeAddedEvent = 0,
67 };
68
69protected:
74
76 vtkStdString SnapshotDescription;
77
79 vtkImageData* ScreenShot;
80
88
90
91};
92
93#endif
vtkMRMLAnnotationSnapshotNode(const vtkMRMLAnnotationSnapshotNode &)
vtkStdString SnapshotDescription
The associated Description.
~vtkMRMLAnnotationSnapshotNode() override
vtkImageData * ScreenShot
The vtkImageData of the screenshot.
const char * GetNodeTagName() override
Get node XML tag name (like Volume, Model)
vtkMRMLNode * CreateNodeInstance() override
MRMLNode methods.
static vtkMRMLAnnotationSnapshotNode * New()
void operator=(const vtkMRMLAnnotationSnapshotNode &)
void SetSnapshotDescription(const vtkStdString &newDescription)
Abstract Superclass for all specific types of MRML nodes.
A superclass for other storage nodes.