Q3DCamera

Representation of a camera in 3D space. More

Inheritance diagram of PySide6.QtDataVisualization.Q3DCamera

Synopsis

Functions

Detailed Description

Q3DCamera represents a basic orbit around centerpoint 3D camera that is used when rendering the data visualization. The class offers simple methods for rotating the camera around the origin and setting zoom level.

class PySide6.QtDataVisualization.Q3DCamera([parent=None])
Parameters

parentPySide6.QtCore.QObject

Constructs a new 3D camera with position set to origin, up direction facing towards the Y-axis and looking at origin by default. An optional parent parameter can be given and is then passed to QObject constructor.

PySide6.QtDataVisualization.Q3DCamera.CameraPreset

Predefined positions for camera.

Constant

Description

Q3DCamera.CameraPresetNone

Used to indicate a preset has not been set, or the scene has been rotated freely.

Q3DCamera.CameraPresetFrontLow

Q3DCamera.CameraPresetFront

Q3DCamera.CameraPresetFrontHigh

Q3DCamera.CameraPresetLeftLow

Q3DCamera.CameraPresetLeft

Q3DCamera.CameraPresetLeftHigh

Q3DCamera.CameraPresetRightLow

Q3DCamera.CameraPresetRight

Q3DCamera.CameraPresetRightHigh

Q3DCamera.CameraPresetBehindLow

Q3DCamera.CameraPresetBehind

Q3DCamera.CameraPresetBehindHigh

Q3DCamera.CameraPresetIsometricLeft

Q3DCamera.CameraPresetIsometricLeftHigh

Q3DCamera.CameraPresetIsometricRight

Q3DCamera.CameraPresetIsometricRightHigh

Q3DCamera.CameraPresetDirectlyAbove

Q3DCamera.CameraPresetDirectlyAboveCW45

Q3DCamera.CameraPresetDirectlyAboveCCW45

Q3DCamera.CameraPresetFrontBelow

In Q3DBars from onward these only work for graphs including negative values. They act as Preset…Low for positive-only values.

Q3DCamera.CameraPresetLeftBelow

Q3DCamera.CameraPresetRightBelow

Q3DCamera.CameraPresetBehindBelow

Q3DCamera.CameraPresetDirectlyBelow

Acts as for positive-only bars.

PySide6.QtDataVisualization.Q3DCamera.cameraPreset()
Return type

CameraPreset

PySide6.QtDataVisualization.Q3DCamera.cameraPresetChanged(preset)
Parameters

presetCameraPreset

PySide6.QtDataVisualization.Q3DCamera.maxZoomLevel()
Return type

float

PySide6.QtDataVisualization.Q3DCamera.maxZoomLevelChanged(zoomLevel)
Parameters

zoomLevel – float

PySide6.QtDataVisualization.Q3DCamera.minZoomLevel()
Return type

float

PySide6.QtDataVisualization.Q3DCamera.minZoomLevelChanged(zoomLevel)
Parameters

zoomLevel – float

PySide6.QtDataVisualization.Q3DCamera.setCameraPosition(horizontal, vertical[, zoom=100.0f])
Parameters
  • horizontal – float

  • vertical – float

  • zoom – float

Utility function that sets the camera rotations and distance.``horizontal`` and vertical define the camera rotations to be used. Optional zoom parameter can be given to set the zoom percentage of the camera within the bounds defined by minZoomLevel and maxZoomLevel properties.

PySide6.QtDataVisualization.Q3DCamera.setCameraPreset(preset)
Parameters

presetCameraPreset

See also

cameraPreset()

PySide6.QtDataVisualization.Q3DCamera.setMaxZoomLevel(zoomLevel)
Parameters

zoomLevel – float

See also

maxZoomLevel()

PySide6.QtDataVisualization.Q3DCamera.setMinZoomLevel(zoomLevel)
Parameters

zoomLevel – float

See also

minZoomLevel()

PySide6.QtDataVisualization.Q3DCamera.setTarget(target)
Parameters

targetPySide6.QtGui.QVector3D

See also

target()

PySide6.QtDataVisualization.Q3DCamera.setWrapXRotation(isEnabled)
Parameters

isEnabled – bool

See also

wrapXRotation()

PySide6.QtDataVisualization.Q3DCamera.setWrapYRotation(isEnabled)
Parameters

isEnabled – bool

See also

wrapYRotation()

PySide6.QtDataVisualization.Q3DCamera.setXRotation(rotation)
Parameters

rotation – float

See also

xRotation()

PySide6.QtDataVisualization.Q3DCamera.setYRotation(rotation)
Parameters

rotation – float

See also

yRotation()

PySide6.QtDataVisualization.Q3DCamera.setZoomLevel(zoomLevel)
Parameters

zoomLevel – float

See also

zoomLevel()

PySide6.QtDataVisualization.Q3DCamera.target()
Return type

PySide6.QtGui.QVector3D

See also

setTarget()

PySide6.QtDataVisualization.Q3DCamera.targetChanged(target)
Parameters

targetPySide6.QtGui.QVector3D

PySide6.QtDataVisualization.Q3DCamera.wrapXRotation()
Return type

bool

PySide6.QtDataVisualization.Q3DCamera.wrapXRotationChanged(isEnabled)
Parameters

isEnabled – bool

PySide6.QtDataVisualization.Q3DCamera.wrapYRotation()
Return type

bool

PySide6.QtDataVisualization.Q3DCamera.wrapYRotationChanged(isEnabled)
Parameters

isEnabled – bool

PySide6.QtDataVisualization.Q3DCamera.xRotation()
Return type

float

See also

setXRotation()

PySide6.QtDataVisualization.Q3DCamera.xRotationChanged(rotation)
Parameters

rotation – float

PySide6.QtDataVisualization.Q3DCamera.yRotation()
Return type

float

See also

setYRotation()

PySide6.QtDataVisualization.Q3DCamera.yRotationChanged(rotation)
Parameters

rotation – float

PySide6.QtDataVisualization.Q3DCamera.zoomLevel()
Return type

float

See also

setZoomLevel()

PySide6.QtDataVisualization.Q3DCamera.zoomLevelChanged(zoomLevel)
Parameters

zoomLevel – float