Slicer 5.6
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
18class VTK_SLICER_ANNOTATIONS_MODULE_MRML_EXPORT vtkMRMLAnnotationSnapshotNode : public vtkMRMLAnnotationNode
19{
20public:
23
24 //--------------------------------------------------------------------------
25 // MRMLNode methods
26 //--------------------------------------------------------------------------
27
29 // Description:
30 // Get node XML tag name (like Volume, Model)
31 const char* GetNodeTagName() override {return "AnnotationSnapshot";}
32
33 const char* GetIcon() override {return ":/Icons/ViewCamera.png";}
34
35 void SetSnapshotDescription(const vtkStdString& newDescription);
36 vtkGetMacro(SnapshotDescription, vtkStdString)
37
38 void WriteXML(ostream& of, int nIndent) override;
39 void ReadXMLAttributes(const char** atts) override;
40
42 virtual void SetScreenShot(vtkImageData* );
43 vtkGetObjectMacro(ScreenShot, vtkImageData);
44
46 vtkGetMacro(ScaleFactor, double);
47 vtkSetMacro(ScaleFactor, double);
48
55 // TODO use an enum for the types
56 void SetScreenShotType(int type);
57 vtkGetMacro(ScreenShotType, int);
58
60 vtkMRMLStorageNode* CreateDefaultStorageNode() override;
61
62 enum
63 {
64 SnapshotNodeAddedEvent = 0,
66 };
67
68protected:
73
75 vtkStdString SnapshotDescription;
76
78 vtkImageData* ScreenShot;
79
87
89
90};
91
92#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.