CameraModel.to_elem¶
- CameraModel.to_elem(elem, **kwargs)[source]¶
Stores this camera model in an
lxml.etree.SubElement
object 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 toelem
then 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.SubElement
class to store this camera model in- Returns:
The
lxml.etree.SubElement
for this model- Return type:
_Element