9 #ifndef __vtkMRMLAnnotationNode_h 10 #define __vtkMRMLAnnotationNode_h 18 #include "vtkSlicerAnnotationsModuleMRMLExport.h" 22 #include <vtkSmartPointer.h> 33 void PrintSelf(ostream& os, vtkIndent indent)
override;
36 virtual void PrintAnnotationInfo(ostream& os, vtkIndent indent,
int titleFlag = 1);
38 virtual const char*
GetIcon() {
return "";}
55 void WriteXML(ostream& of,
int indent)
override;
83 int AddText(
const char *newText,
int selectedFlag,
int visibleFlag);
84 void SetText(
int id,
const char *newText,
int selectedFlag,
int visibleFlag);
85 vtkStdString GetText(
int id);
86 int DeleteText(
int id);
88 int GetNumberOfTexts();
97 virtual const char *GetAttributeTypesEnumAsString(
int val);
98 vtkDataArray* GetAnnotationAttributes(
int att);
99 int GetAnnotationAttribute(vtkIdType
id,
int att);
100 void SetAnnotationAttribute(vtkIdType
id,
int att,
double value);
101 int DeleteAttribute(vtkIdType idAttEntry, vtkIdType idAttType);
105 virtual void ResetAnnotations();
109 void CreateAnnotationTextDisplayNode();
114 void SetTextScale(
double textScale);
116 double GetTextScale();
121 vtkGetStringMacro (ReferenceNodeID);
122 vtkSetStringMacro (ReferenceNodeID);
127 vtkGetMacro(Locked,
int);
128 void SetLocked(
int init);
139 void RestoreBackup();
159 void ResetAttributes(
int id);
162 void ResetTextAttributesAll();
163 void SetAttributeSize(vtkIdType
id, vtkIdType
n);
165 void CreatePolyData();
166 vtkPoints* GetPoints();
167 vtkCellArray* GetLines();
void ReadXMLAttributes(const char **atts) override
Read node attributes from XML file
vtkSmartPointer< vtkMRMLCameraNode > m_CameraNode
void PrintSelf(ostream &os, vtkIndent indent) override
std::string GetDefaultStorageNodeClassName(const char *filename) override
MRML node to represent a 3D surface model.
vtkMRMLCopyContentMacro(vtkMRMLModelNode)
MRML node for storing a slice through RAS space.
bool CanApplyNonLinearTransforms() const override
void WriteXML(ostream &of, int indent) override
Write this node's information to a MRML file in XML format.
vtkMRMLAnnotationNode * m_Backup
static vtkMRMLModelNode * New()
A set of MRML Nodes that supports serialization and undo/redo.
void operator=(const vtkMRMLModelNode &)
vtkStringArray * TextList
vtkSmartPointer< vtkMRMLSliceNode > m_GreenSliceNode
A superclass for other storage nodes.
vtkMRMLStorageNode * CreateDefaultStorageNode() override
MRML node to represent camera node.
void ProcessMRMLEvents(vtkObject *, unsigned long, void *) override
alternative method to propagate events generated in Display nodes
vtkSmartPointer< vtkMRMLSliceNode > m_RedSliceNode
const char * GetNodeTagName() override
Get node XML tag name (like Volume, Model)
void UpdateScene(vtkMRMLScene *scene) override
Finds the storage node and read the data
virtual const char * GetIcon()
vtkMRMLNode * CreateNodeInstance() override
MRMLNode methods.
Abstract Superclass for all specific types of MRML nodes.
vtkSmartPointer< vtkMRMLSliceNode > m_YellowSliceNode