内容表

上一话题

Qt3DRender.QBufferDataGenerator

下一话题

Qt3DRender.QCameraLens

Qt3DRender.QCamera

QCamera class defines a view point through which the scene will be rendered. 更多

Inheritance diagram of PySide2.Qt3DRender.Qt3DRender.QCamera

概要

函数

信号

详细描述

class PySide2.Qt3DRender.Qt3DRender. QCamera ( [ parent=None ] )
param parent

QNode

创建新 QCamera instance with the specified parent .

PySide2.Qt3DRender.Qt3DRender.QCamera. CameraTranslationOption

This enum specifies how camera view center is translated

常量

描述

Qt3DRender.QCamera.TranslateViewCenter

Translate the view center causing the view direction to remain the same

Qt3DRender.QCamera.DontTranslateViewCenter

Don’t translate the view center causing the view direction to change

PySide2.Qt3DRender.Qt3DRender.QCamera. aspectRatio ( )
返回类型

float

另请参阅

setAspectRatio()

PySide2.Qt3DRender.Qt3DRender.QCamera. aspectRatioChanged ( aspectRatio )
参数

aspectRatio float

PySide2.Qt3DRender.Qt3DRender.QCamera. bottom ( )
返回类型

float

另请参阅

setBottom()

PySide2.Qt3DRender.Qt3DRender.QCamera. bottomChanged ( bottom )
参数

bottom float

PySide2.Qt3DRender.Qt3DRender.QCamera. exposure ( )
返回类型

float

另请参阅

setExposure()

PySide2.Qt3DRender.Qt3DRender.QCamera. exposureChanged ( exposure )
参数

exposure float

PySide2.Qt3DRender.Qt3DRender.QCamera. farPlane ( )
返回类型

float

另请参阅

setFarPlane()

PySide2.Qt3DRender.Qt3DRender.QCamera. farPlaneChanged ( farPlane )
参数

farPlane float

PySide2.Qt3DRender.Qt3DRender.QCamera. fieldOfView ( )
返回类型

float

另请参阅

setFieldOfView()

PySide2.Qt3DRender.Qt3DRender.QCamera. fieldOfViewChanged ( fieldOfView )
参数

fieldOfView float

PySide2.Qt3DRender.Qt3DRender.QCamera. left ( )
返回类型

float

另请参阅

setLeft()

PySide2.Qt3DRender.Qt3DRender.QCamera. leftChanged ( left )
参数

left float

PySide2.Qt3DRender.Qt3DRender.QCamera. lens ( )
返回类型

QCameraLens

Returns the current lens.

PySide2.Qt3DRender.Qt3DRender.QCamera. nearPlane ( )
返回类型

float

另请参阅

setNearPlane()

PySide2.Qt3DRender.Qt3DRender.QCamera. nearPlaneChanged ( nearPlane )
参数

nearPlane float

PySide2.Qt3DRender.Qt3DRender.QCamera. pan ( angle )
参数

angle float

Adjusts the pan angle of the camera by angle in degrees.

PySide2.Qt3DRender.Qt3DRender.QCamera. pan ( angle , axis )
参数
  • angle float

  • axis QVector3D

Adjusts the pan angle of the camera by angle in degrees on a chosen axis .

PySide2.Qt3DRender.Qt3DRender.QCamera. panAboutViewCenter ( angle )
参数

angle float

Adjusts the camera pan about view center by angle in degrees.

PySide2.Qt3DRender.Qt3DRender.QCamera. panAboutViewCenter ( angle , axis )
参数
  • angle float

  • axis QVector3D

Adjusts the camera pan about view center by angle in degrees on axis .

PySide2.Qt3DRender.Qt3DRender.QCamera. panRotation ( angle )
参数

angle float

返回类型

QQuaternion

Returns the calculated pan rotation in relation to the angle in degrees taken in to adjust the camera’s pan or left/right rotation on the Y axis.

PySide2.Qt3DRender.Qt3DRender.QCamera. position ( )
返回类型

QVector3D

另请参阅

setPosition()

PySide2.Qt3DRender.Qt3DRender.QCamera. positionChanged ( position )
参数

position QVector3D

PySide2.Qt3DRender.Qt3DRender.QCamera. projectionMatrix ( )
返回类型

QMatrix4x4

PySide2.Qt3DRender.Qt3DRender.QCamera. projectionMatrixChanged ( projectionMatrix )
参数

projectionMatrix QMatrix4x4

PySide2.Qt3DRender.Qt3DRender.QCamera. projectionType ( )
返回类型

ProjectionType

PySide2.Qt3DRender.Qt3DRender.QCamera. projectionTypeChanged ( projectionType )
参数

projectionType ProjectionType

PySide2.Qt3DRender.Qt3DRender.QCamera. right ( )
返回类型

float

另请参阅

setRight()

PySide2.Qt3DRender.Qt3DRender.QCamera. rightChanged ( right )
参数

right float

PySide2.Qt3DRender.Qt3DRender.QCamera. roll ( angle )
参数

angle float

Adjusts the camera roll by angle in degrees.

PySide2.Qt3DRender.Qt3DRender.QCamera. rollAboutViewCenter ( angle )
参数

angle float

Adjusts the camera roll about view center by angle in degrees.

PySide2.Qt3DRender.Qt3DRender.QCamera. rollRotation ( angle )
参数

angle float

返回类型

QQuaternion

Returns the calculated roll rotation in relation to the angle in degrees taken in to adjust the camera’s roll or lean left/right rotation on the Z axis.

PySide2.Qt3DRender.Qt3DRender.QCamera. rotate ( q )
参数

q QQuaternion

Rotates the camera with the use of a Quaternion in q .

PySide2.Qt3DRender.Qt3DRender.QCamera. rotateAboutViewCenter ( q )
参数

q QQuaternion

Rotates the camera about the view center with the use of a Quaternion in q .

PySide2.Qt3DRender.Qt3DRender.QCamera. rotation ( angle , axis )
参数
  • angle float

  • axis QVector3D

返回类型

QQuaternion

Returns the calculated rotation in relation to the angle in degrees and chosen axis taken in.

PySide2.Qt3DRender.Qt3DRender.QCamera. setAspectRatio ( aspectRatio )
参数

aspectRatio float

Sets the camera’s aspect ratio to aspectRatio .

另请参阅

aspectRatio()

PySide2.Qt3DRender.Qt3DRender.QCamera. setBottom ( bottom )
参数

bottom float

Sets the bottom of the camera to bottom .

另请参阅

bottom()

PySide2.Qt3DRender.Qt3DRender.QCamera. setExposure ( exposure )
参数

exposure float

Sets the camera’s exposure to exposure .

另请参阅

exposure()

PySide2.Qt3DRender.Qt3DRender.QCamera. setFarPlane ( farPlane )
参数

farPlane float

Sets the camera’s far plane to farPlane

另请参阅

farPlane()

PySide2.Qt3DRender.Qt3DRender.QCamera. setFieldOfView ( fieldOfView )
参数

fieldOfView float

Sets the camera’s field of view to fieldOfView in degrees.

另请参阅

fieldOfView()

PySide2.Qt3DRender.Qt3DRender.QCamera. setLeft ( left )
参数

left float

Sets the left of the camera to left .

另请参阅

left()

PySide2.Qt3DRender.Qt3DRender.QCamera. setNearPlane ( nearPlane )
参数

nearPlane float

Sets the camera’s near plane to nearPlane .

另请参阅

nearPlane()

PySide2.Qt3DRender.Qt3DRender.QCamera. setPosition ( position )
参数

position QVector3D

Sets the camera’s position in 3D space to position .

另请参阅

position()

PySide2.Qt3DRender.Qt3DRender.QCamera. setProjectionMatrix ( projectionMatrix )
参数

projectionMatrix QMatrix4x4

Sets the camera’s projection matrix to projectionMatrix .

PySide2.Qt3DRender.Qt3DRender.QCamera. setProjectionType ( type )
参数

type ProjectionType

Sets the camera’s projection type to type .

另请参阅

projectionType()

PySide2.Qt3DRender.Qt3DRender.QCamera. setRight ( right )
参数

right float

Sets the right of the camera to right .

另请参阅

right()

PySide2.Qt3DRender.Qt3DRender.QCamera. setTop ( top )
参数

top float

Sets the top of the camera to top .

另请参阅

top()

PySide2.Qt3DRender.Qt3DRender.QCamera. setUpVector ( upVector )
参数

upVector QVector3D

Sets the camera’s up vector to upVector .

另请参阅

upVector()

PySide2.Qt3DRender.Qt3DRender.QCamera. setViewCenter ( viewCenter )
参数

viewCenter QVector3D

Sets the camera’s view center to viewCenter .

另请参阅

viewCenter()

PySide2.Qt3DRender.Qt3DRender.QCamera. tilt ( angle )
参数

angle float

Adjusts the tilt angle of the camera by angle in degrees.

PySide2.Qt3DRender.Qt3DRender.QCamera. tiltAboutViewCenter ( angle )
参数

angle float

Adjusts the camera tilt about view center by angle in degrees.

PySide2.Qt3DRender.Qt3DRender.QCamera. tiltRotation ( angle )
参数

angle float

返回类型

QQuaternion

Returns the calculated tilt rotation in relation to the angle in degrees taken in to adjust the camera’s tilt or up/down rotation on the X axis.

PySide2.Qt3DRender.Qt3DRender.QCamera. top ( )
返回类型

float

另请参阅

setTop()

PySide2.Qt3DRender.Qt3DRender.QCamera. topChanged ( top )
参数

top float

PySide2.Qt3DRender.Qt3DRender.QCamera. transform ( )
返回类型

QTransform

Returns the camera’s position via transform.

PySide2.Qt3DRender.Qt3DRender.QCamera. translate ( vLocal [ , option=TranslateViewCenter ] )
参数

Translates the camera’s position and its view vector by vLocal in local coordinates. The option allows for toggling whether the view center should be translated.

PySide2.Qt3DRender.Qt3DRender.QCamera. translateWorld ( vWorld [ , option=TranslateViewCenter ] )
参数

Translates the camera’s position and its view vector by vWorld in world coordinates. The option allows for toggling whether the view center should be translated.

PySide2.Qt3DRender.Qt3DRender.QCamera. upVector ( )
返回类型

QVector3D

另请参阅

setUpVector()

PySide2.Qt3DRender.Qt3DRender.QCamera. upVectorChanged ( upVector )
参数

upVector QVector3D

PySide2.Qt3DRender.Qt3DRender.QCamera. viewAll ( )

Rotates and moves the camera so that it’s viewCenter is the center of the scene’s bounding volume and the entire scene fits in the view port.

注意

Only works if the lens is in perspective or orthographic projection mode.

另请参阅

Qt3D.Render::Camera::projectionType

PySide2.Qt3DRender.Qt3DRender.QCamera. viewCenter ( )
返回类型

QVector3D

另请参阅

setViewCenter()

PySide2.Qt3DRender.Qt3DRender.QCamera. viewCenterChanged ( viewCenter )
参数

viewCenter QVector3D

PySide2.Qt3DRender.Qt3DRender.QCamera. viewEntity ( entity )
参数

entity QEntity

Rotates and moves the camera so that it’s viewCenter is the center of the entity ‘s bounding volume and the entire entity fits in the view port.

注意

Only works if the lens is in perspective or orthographic projection mode.

另请参阅

Camera.projectionType

PySide2.Qt3DRender.Qt3DRender.QCamera. viewMatrix ( )
返回类型

QMatrix4x4

PySide2.Qt3DRender.Qt3DRender.QCamera. viewMatrixChanged ( )
PySide2.Qt3DRender.Qt3DRender.QCamera. viewSphere ( center , radius )
参数
  • center QVector3D

  • radius float

Rotates and moves the camera so that it’s viewCenter is center and a sphere of radius fits in the view port.

注意

Only works if the lens is in perspective or orthographic projection mode.

另请参阅

Qt3D.Render::Camera::projectionType

PySide2.Qt3DRender.Qt3DRender.QCamera. viewVector ( )
返回类型

QVector3D

PySide2.Qt3DRender.Qt3DRender.QCamera. viewVectorChanged ( viewVector )
参数

viewVector QVector3D