15 #ifndef __vtkMRMLTextNode_h 16 #define __vtkMRMLTextNode_h 27 void PrintSelf(ostream& os, vtkIndent indent)
override;
33 CreateStorageNodeNever
44 void WriteXML(ostream& of,
int indent)
override;
57 void SetText(
const std::string &text,
int encoding=-1);
58 vtkGetMacro(Text, std::string);
65 void SetEncoding(
int encoding);
66 vtkGetMacro(Encoding,
int);
67 std::string GetEncodingAsString();
74 vtkSetClampMacro(ForceCreateStorageNode,
int, CreateStorageNodeAuto, CreateStorageNodeNever);
75 vtkGetMacro(ForceCreateStorageNode,
int);
88 TextModifiedEvent = 51000,
99 int Encoding{VTK_ENCODING_US_ASCII};
100 int ForceCreateStorageNode{CreateStorageNodeAuto};
const char * GetNodeTagName() override
Get node XML tag name (like Volume, Model)
virtual vtkMRMLStorageNode * CreateDefaultStorageNode()
void ReadXMLAttributes(const char **atts) override
Read node attributes from XML file
vtkMRMLNode * CreateNodeInstance() override=0
MRMLNode methods.
virtual std::string GetDefaultStorageNodeClassName(const char *filename=nullptr)
MRML node to represent a 3D surface model.
A superclass for other storage nodes.
vtkMRMLCopyContentMacro(vtkMRMLStorableNode)
Abstract Superclass for all specific types of MRML nodes.
void operator=(const vtkMRMLStorableNode &)
void WriteXML(ostream &of, int indent) override
Write this node's information to a MRML file in XML format.
void PrintSelf(ostream &os, vtkIndent indent) override