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