QCameraLens露

QCameraLens specifies the projection matrix that will be used to define a Camera for a 3D scene. More鈥�

Inheritance diagram of PySide2.Qt3DRender.Qt3DRender.QCameraLens

Synopsis露

Functions露

Slots露

Signals露

Detailed Description露

class PySide2.Qt3DRender.Qt3DRender.QCameraLens([parent=None])露

Constructs a QCameraLens with given parent

PySide2.Qt3DRender.Qt3DRender.QCameraLens.ProjectionType露

Specifies which parameters of QCameraLens are used to compute the projection matrix.

Constant

Description

Qt3DRender.QCameraLens.OrthographicProjection

Orthogonal projection

Qt3DRender.QCameraLens.PerspectiveProjection

Perspective projection

Qt3DRender.QCameraLens.FrustumProjection

Frustum projection

Qt3DRender.QCameraLens.CustomProjection

Custom user-defined projection

PySide2.Qt3DRender.Qt3DRender.QCameraLens.aspectRatio()露
Return type:

float

Holds the current aspect ratio of the camera lens.

Note

: The return value may be undefined if the projection type is not PerspectiveProjection .

PySide2.Qt3DRender.Qt3DRender.QCameraLens.aspectRatioChanged(aspectRatio)露
Parameters:

aspectRatio 鈥� float

PySide2.Qt3DRender.Qt3DRender.QCameraLens.bottom()露
Return type:

float

Holds the current bottom plane of the camera lens.

Note

The return value may be undefined if the projection type is PerspectiveProjection .

PySide2.Qt3DRender.Qt3DRender.QCameraLens.bottomChanged(bottom)露
Parameters:

bottom 鈥� float

PySide2.Qt3DRender.Qt3DRender.QCameraLens.exposure()露
Return type:

float

Holds the current exposure of the camera lens.

PySide2.Qt3DRender.Qt3DRender.QCameraLens.exposureChanged(exposure)露
Parameters:

exposure 鈥� float

PySide2.Qt3DRender.Qt3DRender.QCameraLens.farPlane()露
Return type:

float

Holds the current near plane of the camera lens.

PySide2.Qt3DRender.Qt3DRender.QCameraLens.farPlaneChanged(farPlane)露
Parameters:

farPlane 鈥� float

PySide2.Qt3DRender.Qt3DRender.QCameraLens.fieldOfView()露
Return type:

float

Holds the current field of view of the camera lens.

Note

: The return value may be undefined if the projection type is not PerspectiveProjection .

PySide2.Qt3DRender.Qt3DRender.QCameraLens.fieldOfViewChanged(fieldOfView)露
Parameters:

fieldOfView 鈥� float

PySide2.Qt3DRender.Qt3DRender.QCameraLens.left()露
Return type:

float

Holds the current left plane of the camera lens.

Note

The return value may be undefined if the projection type is PerspectiveProjection .

PySide2.Qt3DRender.Qt3DRender.QCameraLens.leftChanged(left)露
Parameters:

left 鈥� float

PySide2.Qt3DRender.Qt3DRender.QCameraLens.nearPlane()露
Return type:

float

Holds the current near plane of the camera lens.

PySide2.Qt3DRender.Qt3DRender.QCameraLens.nearPlaneChanged(nearPlane)露
Parameters:

nearPlane 鈥� float

PySide2.Qt3DRender.Qt3DRender.QCameraLens.projectionMatrix()露
Return type:

PySide2.QtGui.QMatrix4x4

Holds the current projection matrix of the camera lens.

PySide2.Qt3DRender.Qt3DRender.QCameraLens.projectionMatrixChanged(projectionMatrix)露
Parameters:

projectionMatrix 鈥� PySide2.QtGui.QMatrix4x4

PySide2.Qt3DRender.Qt3DRender.QCameraLens.projectionType()露
Return type:

ProjectionType

Holds the type of the camera projection.

See also

ProjectionType

PySide2.Qt3DRender.Qt3DRender.QCameraLens.projectionTypeChanged(projectionType)露
Parameters:

projectionType 鈥� ProjectionType

PySide2.Qt3DRender.Qt3DRender.QCameraLens.right()露
Return type:

float

Holds the current right plane of the camera lens.

Note

The return value may be undefined if the projection type is PerspectiveProjection .

PySide2.Qt3DRender.Qt3DRender.QCameraLens.rightChanged(right)露
Parameters:

right 鈥� float

PySide2.Qt3DRender.Qt3DRender.QCameraLens.setAspectRatio(aspectRatio)露
Parameters:

aspectRatio 鈥� float

Holds the current aspect ratio of the camera lens.

Note

: The return value may be undefined if the projection type is not PerspectiveProjection .

PySide2.Qt3DRender.Qt3DRender.QCameraLens.setBottom(bottom)露
Parameters:

bottom 鈥� float

Holds the current bottom plane of the camera lens.

Note

The return value may be undefined if the projection type is PerspectiveProjection .

PySide2.Qt3DRender.Qt3DRender.QCameraLens.setExposure(exposure)露
Parameters:

exposure 鈥� float

Holds the current exposure of the camera lens.

PySide2.Qt3DRender.Qt3DRender.QCameraLens.setFarPlane(farPlane)露
Parameters:

farPlane 鈥� float

Holds the current near plane of the camera lens.

PySide2.Qt3DRender.Qt3DRender.QCameraLens.setFieldOfView(fieldOfView)露
Parameters:

fieldOfView 鈥� float

Holds the current field of view of the camera lens.

Note

: The return value may be undefined if the projection type is not PerspectiveProjection .

PySide2.Qt3DRender.Qt3DRender.QCameraLens.setFrustumProjection(left, right, bottom, top, nearPlane, farPlane)露
Parameters:
  • left 鈥� float

  • right 鈥� float

  • bottom 鈥� float

  • top 鈥� float

  • nearPlane 鈥� float

  • farPlane 鈥� float

Defines an orthographic projection based on left , right , bottom , top , nearPlane , farPlane .

PySide2.Qt3DRender.Qt3DRender.QCameraLens.setLeft(left)露
Parameters:

left 鈥� float

Holds the current left plane of the camera lens.

Note

The return value may be undefined if the projection type is PerspectiveProjection .

PySide2.Qt3DRender.Qt3DRender.QCameraLens.setNearPlane(nearPlane)露
Parameters:

nearPlane 鈥� float

Holds the current near plane of the camera lens.

PySide2.Qt3DRender.Qt3DRender.QCameraLens.setOrthographicProjection(left, right, bottom, top, nearPlane, farPlane)露
Parameters:
  • left 鈥� float

  • right 鈥� float

  • bottom 鈥� float

  • top 鈥� float

  • nearPlane 鈥� float

  • farPlane 鈥� float

Defines an orthographic projection based on left , right , bottom , top , nearPlane , farPlane .

PySide2.Qt3DRender.Qt3DRender.QCameraLens.setPerspectiveProjection(fieldOfView, aspect, nearPlane, farPlane)露
Parameters:
  • fieldOfView 鈥� float

  • aspect 鈥� float

  • nearPlane 鈥� float

  • farPlane 鈥� float

Defines a perspective projection based on fieldOfView , aspectRatio , nearPlane , farPlane .

PySide2.Qt3DRender.Qt3DRender.QCameraLens.setProjectionMatrix(projectionMatrix)露
Parameters:

projectionMatrix 鈥� PySide2.QtGui.QMatrix4x4

Holds the current projection matrix of the camera lens.

PySide2.Qt3DRender.Qt3DRender.QCameraLens.setProjectionType(projectionType)露
Parameters:

projectionType 鈥� ProjectionType

Holds the type of the camera projection.

See also

ProjectionType

PySide2.Qt3DRender.Qt3DRender.QCameraLens.setRight(right)露
Parameters:

right 鈥� float

Holds the current right plane of the camera lens.

Note

The return value may be undefined if the projection type is PerspectiveProjection .

PySide2.Qt3DRender.Qt3DRender.QCameraLens.setTop(top)露
Parameters:

top 鈥� float

Holds the current top plane of the camera lens.

Note

The return value may be undefined if the projection type is PerspectiveProjection .

PySide2.Qt3DRender.Qt3DRender.QCameraLens.top()露
Return type:

float

Holds the current top plane of the camera lens.

Note

The return value may be undefined if the projection type is PerspectiveProjection .

PySide2.Qt3DRender.Qt3DRender.QCameraLens.topChanged(top)露
Parameters:

top 鈥� float

PySide2.Qt3DRender.Qt3DRender.QCameraLens.viewAll(cameraId)露
Parameters:

cameraId 鈥� PySide2.Qt3DCore.Qt3DCore.QNodeId

PySide2.Qt3DRender.Qt3DRender.QCameraLens.viewEntity(entityId, cameraId)露
Parameters:
PySide2.Qt3DRender.Qt3DRender.QCameraLens.viewSphere(center, radius)露
Parameters: