37 std::map<std::string, shared_ptr<GeometryObject> > autoNamedObjects;
41 static constexpr const char*
const XML_NAME_ATTR =
"name";
42 static constexpr const char*
const XML_MATERIAL_ATTR =
"material";
43 static constexpr const char*
const XML_MATERIAL_TOP_ATTR =
"material-top";
44 static constexpr const char*
const XML_MATERIAL_BOTTOM_ATTR =
"material-bottom";
45 static constexpr const char*
const XML_MATERIAL_GRADING_ATTR =
"material-shape";
63 static std::map<std::string, object_read_f*>& objectReaders();
70 static void registerObjectReader(
const std::string&
tag_name, object_read_f* reader);
79 GeometryReader::registerObjectReader(tag_name, reader);
104 static std::map<std::string, changer_read_f>& changerReaders();
120 GeometryReader::registerChangerReader(tag_name, reader);
131 std::string getAxisName(std::size_t
axis_index);
193 double shape=1.)
const;
254 template <
typename RequiredObjectType>
262 template <
typename RequiredObjectType>
311 if (name) registerObjectName(*name,
object);
322 if (name) registerObjectName(*name,
object);
336 std::replace(name->begin(), name->end(),
'-',
'_');
337 registerObjectName(*name,
object);