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
vtkMRMLAnnotationTextDisplayNode.h
Go to the documentation of this file.
1// .NAME vtkMRMLAnnotationTextDisplayNode - MRML node to represent display properties for tractography.
2// .SECTION Description
3// vtkMRMLAnnotationTextDisplayNode nodes store display properties of trajectories
4// from tractography in diffusion MRI data, including color type (by bundle, by fiber,
5// or by scalar invariants), display on/off for tensor glyphs and display of
6// trajectory as a line or tube.
7//
8
9#ifndef __vtkMRMLAnnotationTextDisplayNode_h
10#define __vtkMRMLAnnotationTextDisplayNode_h
11
12#include "vtkMRML.h"
14#include "vtkSlicerAnnotationsModuleMRMLExport.h"
15
16class VTK_SLICER_ANNOTATIONS_MODULE_MRML_EXPORT vtkMRMLAnnotationTextDisplayNode : public vtkMRMLAnnotationDisplayNode
17{
18 public:
21 void PrintSelf ( ostream& os, vtkIndent indent ) override;
22
23 //--------------------------------------------------------------------------
24 // MRMLNode methods
25 //--------------------------------------------------------------------------
26
28
29 // Description:
30 // Read node attributes from XML (MRML) file
31 void ReadXMLAttributes ( const char** atts ) override;
32
33 // Description:
34 // Write this node's information to a MRML file in XML format.
35 void WriteXML ( ostream& of, int indent ) override;
36
37
38 // Description:
39 // Copy the node's attributes to this object
40 void Copy ( vtkMRMLNode *node ) override;
41
42 // Description:
43 // Get node XML tag name (like Volume, Annotation)
44 const char* GetNodeTagName() override {return "AnnotationTextDisplay";}
45
46 // Description:
47 // Finds the storage node and read the data
48 void UpdateScene(vtkMRMLScene *scene) override;
49
50 // Description:
51 // alternative method to propagate events generated in Display nodes
52 void ProcessMRMLEvents ( vtkObject * /*caller*/,
53 unsigned long /*event*/,
54 void * /*callData*/ ) override;
55
56 // Description:
57 // Get/Set for Text scale
58 void SetTextScale(double scale);
59 vtkGetMacro(TextScale,double);
60
62 vtkSetMacro(UseLineWrap,int);
63 vtkGetMacro(UseLineWrap,int);
64 vtkBooleanMacro(UseLineWrap,int);
65
67 vtkSetMacro(MaxCharactersPerLine, unsigned int);
68 vtkGetMacro(MaxCharactersPerLine, unsigned int);
69
71
73 vtkSetMacro(ShowBorder,int);
74 vtkGetMacro(ShowBorder,int);
75 vtkBooleanMacro(ShowBorder,int);
76
79 vtkSetMacro(ShowLeader,int);
80 vtkGetMacro(ShowLeader,int);
81 vtkBooleanMacro(ShowLeader,int);
82
85 vtkSetMacro(UseThreeDimensionalLeader,int);
86 vtkGetMacro(UseThreeDimensionalLeader,int);
87 vtkBooleanMacro(UseThreeDimensionalLeader,int);
88
90 vtkSetMacro(ShowArrowHead, int);
91 vtkGetMacro(ShowArrowHead, int);
92 vtkBooleanMacro(ShowArrowHead, int);
93
99 vtkSetClampMacro(LeaderGlyphSize,double,0.0,0.1);
100 vtkGetMacro(LeaderGlyphSize,double);
101
105 vtkSetClampMacro(MaximumLeaderGlyphSize,int,1,1000);
106 vtkGetMacro(MaximumLeaderGlyphSize,int);
107
110 vtkSetClampMacro(Padding, int, 0, 50);
111 vtkGetMacro(Padding, int);
112
115 vtkSetMacro(AttachEdgeOnly,int);
116 vtkGetMacro(AttachEdgeOnly,int);
117 vtkBooleanMacro(AttachEdgeOnly,int);
118
120 void CreateBackup() override;
122 void RestoreBackup() override;
123
128 std::string GetLineWrappedText(std::string inputText);
129protected:
134
135 double TextScale;
136
139
148
149};
150
151#endif
void operator=(const vtkMRMLAnnotationDisplayNode &)
vtkMRMLNode * CreateNodeInstance() override
Create instance of the default node. Like New only virtual.
void PrintSelf(ostream &os, vtkIndent indent) override
void ProcessMRMLEvents(vtkObject *, unsigned long, void *) override
Propagate events generated in mrml.
void CreateBackup() override
Create a backup of this node and attach it.
~vtkMRMLAnnotationTextDisplayNode() override=default
void UpdateScene(vtkMRMLScene *scene) override
void WriteXML(ostream &of, int indent) override
void SetTextScale(double scale)
void RestoreBackup() override
Restore an attached backup of this node.
vtkMRMLAnnotationTextDisplayNode(const vtkMRMLAnnotationTextDisplayNode &)
void Copy(vtkMRMLNode *node) override
Copy node contents from another node of the same type. Does not copy node ID and Scene....
static vtkMRMLAnnotationTextDisplayNode * New()
std::string GetLineWrappedText(std::string inputText)
void ReadXMLAttributes(const char **atts) override
Abstract Superclass for all specific types of MRML nodes.
A set of MRML Nodes that supports serialization and undo/redo.