|
Slicer
4.10
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 | 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 28 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 37 of file vtkMRMLNodePropertyMacros.h.
| #define vtkMRMLWriteXMLEndMacro | ( | ) | } |
This macro must be placed after the last value writing macro.
Definition at line 33 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 56 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 69 of file vtkMRMLNodePropertyMacros.h.
| #define vtkMRMLWriteXMLIntMacro | ( | xmlAttributeName, | |
| propertyName | |||
| ) | xmlWriteOutputStream << " " #xmlAttributeName "=\"" << Get##propertyName() << "\""; |
Macro for writing int node property to XML.
Definition at line 65 of file vtkMRMLNodePropertyMacros.h.
| #define vtkMRMLWriteXMLStdFloatVectorMacro | ( | xmlAttributeName, | |
| propertyName, | |||
| vectorType | |||
| ) |
Macro for writing std::vector (float or double) node property to XML.
Definition at line 92 of file vtkMRMLNodePropertyMacros.h.
| #define vtkMRMLWriteXMLStdIntVectorMacro | ( | xmlAttributeName, | |
| propertyName, | |||
| vectorType | |||
| ) |
Macro for writing std::vector (int) node property to XML.
Definition at line 105 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 51 of file vtkMRMLNodePropertyMacros.h.
| #define vtkMRMLWriteXMLStdStringVectorMacro | ( | xmlAttributeName, | |
| propertyName, | |||
| vectorType | |||
| ) |
Macro for writing std::vector (of std::string) node property to XML.
Definition at line 118 of file vtkMRMLNodePropertyMacros.h.
| #define vtkMRMLWriteXMLStringMacro | ( | xmlAttributeName, | |
| propertyName | |||
| ) |
Macro for writing char* node property to XML. If pointer is NULL then the attribute will not be written to XML.
Definition at line 42 of file vtkMRMLNodePropertyMacros.h.
| #define vtkMRMLWriteXMLVectorMacro | ( | xmlAttributeName, | |
| propertyName, | |||
| vectorType, | |||
| vectorSize | |||
| ) |
Macro for writing vector (of numbers) node property to XML.
Definition at line 73 of file vtkMRMLNodePropertyMacros.h.
1.8.14