MCPcopy Create free account
hub / github.com/GollyGang/ready / ShouldGenerateInitialPatternWhenLoading

Method ShouldGenerateInitialPatternWhenLoading

src/readybase/IO_XML.cpp:69–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67// --------------------------------------------------------------------------------
68
69bool RD_XMLImageReader::ShouldGenerateInitialPatternWhenLoading()
70{
71 vtkSmartPointer<vtkXMLDataElement> initial_pattern_generator =
72 this->GetRDElement()->FindNestedElementWithName("initial_pattern_generator");
73 if(!initial_pattern_generator) return false; // (element is optional, defaults to false)
74 const char *s = initial_pattern_generator->GetAttribute("apply_when_loading");
75 if(!s) return false;
76 return string(s)=="true";
77}
78
79// --------------------------------------------------------------------------------
80

Callers 2

CreateFromImageDataFileFunction · 0.80

Calls 1

GetRDElementMethod · 0.95

Tested by

no test coverage detected