Bases: collada.camera.Camera
Orthographic camera as defined in COLLADA tag <orthographic>.
digraph inheritance36891bae67 { rankdir=LR; size="8.0, 12.0"; "BoundPerspectiveCamera" [style="setlinewidth(0.5)",URL="collada.camera.BoundPerspectiveCamera.html#collada.camera.BoundPerspectiveCamera",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="Perspective camera bound to a scene with a transform. This gets created when a",height=0.25,shape=box,fontsize=10]; "BoundCamera" -> "BoundPerspectiveCamera" [arrowsize=0.5,style="setlinewidth(0.5)"]; "BoundOrthographicCamera" [style="setlinewidth(0.5)",URL="collada.camera.BoundOrthographicCamera.html#collada.camera.BoundOrthographicCamera",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="Orthographic camera bound to a scene with a transform. This gets created when a",height=0.25,shape=box,fontsize=10]; "BoundCamera" -> "BoundOrthographicCamera" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Camera" [style="setlinewidth(0.5)",URL="collada.camera.Camera.html#collada.camera.Camera",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="Base camera class holding data from <camera> tags.",height=0.25,shape=box,fontsize=10]; "DaeObject" -> "Camera" [arrowsize=0.5,style="setlinewidth(0.5)"]; "PerspectiveCamera" [style="setlinewidth(0.5)",URL="collada.camera.PerspectiveCamera.html#collada.camera.PerspectiveCamera",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="Perspective camera as defined in COLLADA tag <perspective>.",height=0.25,shape=box,fontsize=10]; "Camera" -> "PerspectiveCamera" [arrowsize=0.5,style="setlinewidth(0.5)"]; "OrthographicCamera" [style="setlinewidth(0.5)",URL="#collada.camera.OrthographicCamera",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="Orthographic camera as defined in COLLADA tag <orthographic>.",height=0.25,shape=box,fontsize=10]; "Camera" -> "OrthographicCamera" [arrowsize=0.5,style="setlinewidth(0.5)"]; "BoundCamera" [style="setlinewidth(0.5)",URL="collada.camera.BoundCamera.html#collada.camera.BoundCamera",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="Base class for bound cameras",height=0.25,shape=box,fontsize=10]; "DaeObject" [style="setlinewidth(0.5)",URL="collada.common.DaeObject.html#collada.common.DaeObject",fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",tooltip="This class is the abstract interface to all collada objects.",height=0.25,shape=box,fontsize=10]; }
Create a new orthographic camera.
Note: aspect_ratio = xmag / ymag
Any other combination will raise collada.common.DaeMalformedError
Parameters: |
|
---|
Methods
__init__(id, znear, zfar[, xmag, ymag, ...]) | Create a new orthographic camera. |
bind(matrix) | Create a bound camera of itself based on a transform matrix. |
load(collada, localscope, node) | |
save() | Saves the orthographic camera’s properties back to xmlnode |
Identifier for the camera
Horizontal magnification of the view
Vertical magnification of the view
Aspect ratio of the field of view
Distance to the near clipping plane
Distance to the far clipping plane
ElementTree representation of the data.
Saves the orthographic camera’s properties back to xmlnode
Create a bound camera of itself based on a transform matrix.
Parameters: | matrix (numpy.array) – A numpy transformation matrix of size 4x4 |
---|---|
Return type: | collada.camera.BoundOrthographicCamera |