Slicer
5.1
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
Macros | |
#define | vtkMRMLWriteXMLBeginMacro(of) |
#define | vtkMRMLWriteXMLBooleanMacro(xmlAttributeName, propertyName) xmlWriteOutputStream << " " #xmlAttributeName "=\"" << (Get##propertyName() ? "true" : "false") << "\""; |
Macro for writing bool node property to XML. More... | |
#define | vtkMRMLWriteXMLEndMacro() } |
This macro must be placed after the last value writing macro. More... | |
#define | vtkMRMLWriteXMLEnumMacro(xmlAttributeName, propertyName) |
#define | vtkMRMLWriteXMLFloatMacro(xmlAttributeName, propertyName) xmlWriteOutputStream << " " #xmlAttributeName "=\"" << Get##propertyName() << "\""; |
Macro for writing floating-point (double or float) node property to XML. More... | |
#define | vtkMRMLWriteXMLIntMacro(xmlAttributeName, propertyName) xmlWriteOutputStream << " " #xmlAttributeName "=\"" << Get##propertyName() << "\""; |
Macro for writing int node property to XML. More... | |
#define | vtkMRMLWriteXMLMatrix4x4Macro(xmlAttributeName, propertyName) |
Macro for writing vtkMatrix4x4 to XML. More... | |
#define | vtkMRMLWriteXMLStdFloatVectorMacro(xmlAttributeName, propertyName, vectorType) |
Macro for writing std::vector (float or double) node property to XML. More... | |
#define | vtkMRMLWriteXMLStdIntVectorMacro(xmlAttributeName, propertyName, vectorType) |
Macro for writing std::vector (int) node property to XML. More... | |
#define | vtkMRMLWriteXMLStdStringMacro(xmlAttributeName, propertyName) xmlWriteOutputStream << " " #xmlAttributeName "=\"" << vtkMRMLNode::XMLAttributeEncodeString(Get##propertyName().c_str()) << "\""; \ |
Macro for writing std::string node property to XML. More... | |
#define | vtkMRMLWriteXMLStdStringVectorMacro(xmlAttributeName, propertyName, vectorType) |
Macro for writing std::vector (of std::string) node property to XML. More... | |
#define | vtkMRMLWriteXMLStringMacro(xmlAttributeName, propertyName) |
#define | vtkMRMLWriteXMLVectorMacro(xmlAttributeName, propertyName, vectorType, vectorSize) |
Macro for writing vector (of numbers) node property to XML. More... | |
They are To be used in WriteXML(ostream& of, int nIndent) method. Arguments of value writing macros:
#define vtkMRMLWriteXMLBeginMacro | ( | of | ) |
This macro must be placed before the first value writing macro.
of | is the output stream where node values will be written to |
Definition at line 29 of file vtkMRMLNodePropertyMacros.h.
#define vtkMRMLWriteXMLBooleanMacro | ( | xmlAttributeName, | |
propertyName | |||
) | xmlWriteOutputStream << " " #xmlAttributeName "=\"" << (Get##propertyName() ? "true" : "false") << "\""; |
Macro for writing bool node property to XML.
Definition at line 38 of file vtkMRMLNodePropertyMacros.h.
#define vtkMRMLWriteXMLEndMacro | ( | ) | } |
This macro must be placed after the last value writing macro.
Definition at line 34 of file vtkMRMLNodePropertyMacros.h.
#define vtkMRMLWriteXMLEnumMacro | ( | xmlAttributeName, | |
propertyName | |||
) |
Macro for writing enum node property to XML. Requires Get(propertyName)AsString method to convert from numeric value to code string.
Definition at line 57 of file vtkMRMLNodePropertyMacros.h.
#define vtkMRMLWriteXMLFloatMacro | ( | xmlAttributeName, | |
propertyName | |||
) | xmlWriteOutputStream << " " #xmlAttributeName "=\"" << Get##propertyName() << "\""; |
Macro for writing floating-point (double or float) node property to XML.
Definition at line 70 of file vtkMRMLNodePropertyMacros.h.
#define vtkMRMLWriteXMLIntMacro | ( | xmlAttributeName, | |
propertyName | |||
) | xmlWriteOutputStream << " " #xmlAttributeName "=\"" << Get##propertyName() << "\""; |
Macro for writing int node property to XML.
Definition at line 66 of file vtkMRMLNodePropertyMacros.h.
#define vtkMRMLWriteXMLMatrix4x4Macro | ( | xmlAttributeName, | |
propertyName | |||
) |
Macro for writing vtkMatrix4x4 to XML.
Definition at line 139 of file vtkMRMLNodePropertyMacros.h.
#define vtkMRMLWriteXMLStdFloatVectorMacro | ( | xmlAttributeName, | |
propertyName, | |||
vectorType | |||
) |
Macro for writing std::vector (float or double) node property to XML.
Definition at line 93 of file vtkMRMLNodePropertyMacros.h.
#define vtkMRMLWriteXMLStdIntVectorMacro | ( | xmlAttributeName, | |
propertyName, | |||
vectorType | |||
) |
Macro for writing std::vector (int) node property to XML.
Definition at line 106 of file vtkMRMLNodePropertyMacros.h.
#define vtkMRMLWriteXMLStdStringMacro | ( | xmlAttributeName, | |
propertyName | |||
) | xmlWriteOutputStream << " " #xmlAttributeName "=\"" << vtkMRMLNode::XMLAttributeEncodeString(Get##propertyName().c_str()) << "\""; \ |
Macro for writing std::string node property to XML.
Definition at line 52 of file vtkMRMLNodePropertyMacros.h.
#define vtkMRMLWriteXMLStdStringVectorMacro | ( | xmlAttributeName, | |
propertyName, | |||
vectorType | |||
) |
Macro for writing std::vector (of std::string) node property to XML.
Definition at line 119 of file vtkMRMLNodePropertyMacros.h.
#define vtkMRMLWriteXMLStringMacro | ( | xmlAttributeName, | |
propertyName | |||
) |
Macro for writing char* node property to XML. If pointer is nullptr then the attribute will not be written to XML.
Definition at line 43 of file vtkMRMLNodePropertyMacros.h.
#define vtkMRMLWriteXMLVectorMacro | ( | xmlAttributeName, | |
propertyName, | |||
vectorType, | |||
vectorSize | |||
) |
Macro for writing vector (of numbers) node property to XML.
Definition at line 74 of file vtkMRMLNodePropertyMacros.h.