| 44 | // --------------------------------------------------------------------- |
| 45 | |
| 46 | void InitialPatternGenerator::ReadFromXML(vtkXMLDataElement* node) |
| 47 | { |
| 48 | this->RemoveAllOverlays(); |
| 49 | if (node) // IPG is optional in the XML, default is none |
| 50 | { |
| 51 | const char *zero_first_str = node->GetAttribute("zero_first"); |
| 52 | if (zero_first_str && string(zero_first_str) == "false") |
| 53 | this->zero_first = false; |
| 54 | |
| 55 | for (int i = 0; i < node->GetNumberOfNestedElements(); i++) |
| 56 | { |
| 57 | this->overlays.push_back(make_unique<Overlay>(node->GetNestedElement(i))); |
| 58 | } |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | // --------------------------------------------------------------------- |
| 63 |
nothing calls this directly
no test coverage detected