CameraModel.to_elem¶
- CameraModel.to_elem(elem, misalignment=False)[source]¶
Stores this camera model in an
lxml.etree.SubElementobject for storing in a GIANT xml fileThis method operates by looping through the attributes in
important_attributes, retrieving the value of these attributes in self, and then storing them as a sub-element toelem. If the attribute already exists as a sub-element toelemthen it is overwritten.The user generally will not use this method and instead will use the module level
save()function.- Parameters:
elem (_Element) – The
lxml.etree.SubElementclass to store this camera model inmisalignment (bool) – whether to save the misalignment in the structure (usually you want false). As is, this does nothing, subclasses which implement misalignment though should make use of this flag
- Returns:
The
lxml.etree.SubElementfor this model- Return type:
_Element