collada.camera.Camera

class collada.camera.Camera

Bases: collada.common.DaeObject

Base camera class holding data from <camera> tags.

digraph inheritance36891bae67 { rankdir=LR; size="8.0, 12.0"; "BoundCamera" [URL="collada.camera.BoundCamera.html#collada.camera.BoundCamera",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5)",target="_top",tooltip="Base class for bound cameras"]; "BoundOrthographicCamera" [URL="collada.camera.BoundOrthographicCamera.html#collada.camera.BoundOrthographicCamera",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5)",target="_top",tooltip="Orthographic camera bound to a scene with a transform. This gets created when a"]; "BoundCamera" -> "BoundOrthographicCamera" [arrowsize=0.5,style="setlinewidth(0.5)"]; "BoundPerspectiveCamera" [URL="collada.camera.BoundPerspectiveCamera.html#collada.camera.BoundPerspectiveCamera",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5)",target="_top",tooltip="Perspective camera bound to a scene with a transform. This gets created when a"]; "BoundCamera" -> "BoundPerspectiveCamera" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Camera" [URL="#collada.camera.Camera",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5)",target="_top",tooltip="Base camera class holding data from <camera> tags."]; "DaeObject" -> "Camera" [arrowsize=0.5,style="setlinewidth(0.5)"]; "DaeObject" [URL="collada.common.DaeObject.html#collada.common.DaeObject",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5)",target="_top",tooltip="This class is the abstract interface to all collada objects."]; "OrthographicCamera" [URL="collada.camera.OrthographicCamera.html#collada.camera.OrthographicCamera",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5)",target="_top",tooltip="Orthographic camera as defined in COLLADA tag <orthographic>."]; "Camera" -> "OrthographicCamera" [arrowsize=0.5,style="setlinewidth(0.5)"]; "PerspectiveCamera" [URL="collada.camera.PerspectiveCamera.html#collada.camera.PerspectiveCamera",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5)",target="_top",tooltip="Perspective camera as defined in COLLADA tag <perspective>."]; "Camera" -> "PerspectiveCamera" [arrowsize=0.5,style="setlinewidth(0.5)"]; }
__init__()

Initialize self. See help(type(self)) for accurate signature.

Methods

load(collada, localscope, node) Load and return a class instance from an XML node.
save() Put all the data to the internal xml node (xmlnode) so it can be serialized.
static load(collada, localscope, node)

Load and return a class instance from an XML node.

Inspect the data inside node, which must match this class tag and create an instance out of it.

Parameters:
  • collada (collada.Collada) – The collada file object where this object lives
  • localscope (dict) – If there is a local scope where we should look for local ids (sid) this is the dictionary. Otherwise empty dict ({})
  • node – An Element from python’s ElementTree API
save()

Put all the data to the internal xml node (xmlnode) so it can be serialized.