QCamera Class | Qt 3D 5.6

Qt 5.6 | Qt 3D | C++ Classes | QCamera

Qt 5.6.0 Reference Documentation

# QCamera Class

(Qt3DCore::QCamera)

Instantiated By: | Camera
Inherits: | QEntity

- List of all members, including inherited members

## Public Types

enum | CameraTranslationOption { TranslateViewCenter, DontTranslateViewCenter }

## Properties

- aspectRatio : float
- bottom : float
- farPlane : float
- fieldOfView : float
- left : float
- nearPlane : float
- position : QVector3D
- projectionMatrix : const QMatrix4x4

- projectionType : Qt3DCore::QCameraLens::ProjectionType
- right : float
- top : float
- upVector : QVector3D
- viewCenter : QVector3D
- viewMatrix : const QMatrix4x4
- viewVector : const QVector3D

- 2 properties inherited from Qt3DCore::QNode
- 1 property inherited from QObject

## Public Functions

| QCamera(QNode *parent = 0)
| ~QCamera()
float | aspectRatio() const
float | bottom() const
float | farPlane() const
float | fieldOfView() const
float | left() const
QCameraLens * | lens() const
float | nearPlane() const
void | pan(float angle)
void | pan(float angle, const QVector3D &axis)
void | panAboutViewCenter(float angle)
void | panAboutViewCenter(float angle, const QVector3D &axis)
QQuaternion | panRotation(float angle) const
QVector3D | position() const
QMatrix4x4 | projectionMatrix() const
QCameraLens::ProjectionType | projectionType() const
float | right() const
void | roll(float angle)
void | rollAboutViewCenter(float angle)
QQuaternion | rollRotation(float angle) const
void | rotate(const QQuaternion &q)
void | rotateAboutViewCenter(const QQuaternion &q)
QQuaternion | rotation(float angle, const QVector3D &axis) const
void | tilt(float angle)
void | tiltAboutViewCenter(float angle)
QQuaternion | tiltRotation(float angle) const
float | top() const
QTransform * | transform() const
void | translate(const QVector3D &vLocal, CameraTranslationOption option = TranslateViewCenter)
void | translateWorld(const QVector3D &vWorld, CameraTranslationOption option = TranslateViewCenter)
QVector3D | upVector() const
QVector3D | viewCenter() const
QMatrix4x4 | viewMatrix() const
QVector3D | viewVector() const

- 5 public functions inherited from Qt3DCore::QEntity
- 6 public functions inherited from Qt3DCore::QNode
- 31 public functions inherited from QObject

## Public Slots

void | setAspectRatio(float aspectRatio)
void | setBottom(float bottom)
void | setFarPlane(float farPlane)
void | setFieldOfView(float fieldOfView)
void | setLeft(float left)
void | setNearPlane(float nearPlane)
void | setPosition(const QVector3D &position)
void | setProjectionType(QCameraLens::ProjectionType type)
void | setRight(float right)
void | setTop(float top)
void | setUpVector(const QVector3D &upVector)
void | setViewCenter(const QVector3D &viewCenter)

- 2 public slots inherited from Qt3DCore::QNode
- 1 public slot inherited from QObject

## Signals

void | aspectRatioChanged(float aspectRatio)
void | bottomChanged(float bottom)
void | farPlaneChanged(float farPlane)
void | fieldOfViewChanged(float fieldOfView)
void | leftChanged(float left)
void | nearPlaneChanged(float nearPlane)
void | positionChanged(const QVector3D &position)
void | projectionMatrixChanged(const QMatrix4x4 &projectionMatrix)
void | projectionTypeChanged(QCameraLens::ProjectionType projectionType)
void | rightChanged(float right)
void | topChanged(float top)
void | upVectorChanged(const QVector3D &upVector)
void | viewCenterChanged(const QVector3D &viewCenter)
void | viewMatrixChanged(const QMatrix4x4 &viewMatrix)
void | viewVectorChanged(const QVector3D &viewVector)

- 2 signals inherited from Qt3DCore::QNode
- 2 signals inherited from QObject

### Additional Inherited Members

- 1 public variable inherited from QObject
- 10 static public members inherited from QObject
- 1 protected function inherited from Qt3DCore::QEntity
- 3 protected functions inherited from Qt3DCore::QNode
- 9 protected functions inherited from QObject
- 2 protected variables inherited from QObject
- 1 static protected member inherited from Qt3DCore::QNode

## Member Type Documentation

### enum QCamera::CameraTranslationOption

## Property Documentation

### aspectRatio : float

Access functions:

float | aspectRatio() const
void | setAspectRatio(float aspectRatio)

Notifier signal:

void | aspectRatioChanged(float aspectRatio)

### bottom : float

Access functions:

float | bottom() const
void | setBottom(float bottom)

Notifier signal:

void | bottomChanged(float bottom)

### farPlane : float

Access functions:

float | farPlane() const
void | setFarPlane(float farPlane)

Notifier signal:

void | farPlaneChanged(float farPlane)

### fieldOfView : float

Access functions:

float | fieldOfView() const
void | setFieldOfView(float fieldOfView)

Notifier signal:

void | fieldOfViewChanged(float fieldOfView)

### left : float

Access functions:

float | left() const
void | setLeft(float left)

Notifier signal:

void | leftChanged(float left)

### nearPlane : float

Access functions:

float | nearPlane() const
void | setNearPlane(float nearPlane)

Notifier signal:

void | nearPlaneChanged(float nearPlane)

### position : QVector3D

Access functions:

QVector3D | position() const
void | setPosition(const QVector3D &position)

Notifier signal:

void | positionChanged(const QVector3D &position)

### projectionMatrix : const QMatrix4x4

Access functions:

QMatrix4x4 | projectionMatrix() const

Notifier signal:

void | projectionMatrixChanged(const QMatrix4x4 &projectionMatrix)

### projectionType : Qt3DCore::QCameraLens::ProjectionType

Access functions:

QCameraLens::ProjectionType | projectionType() const
void | setProjectionType(QCameraLens::ProjectionType type)

Notifier signal:

void | projectionTypeChanged(QCameraLens::ProjectionType projectionType)

### right : float

Access functions:

float | right() const
void | setRight(float right)

Notifier signal:

void | rightChanged(float right)

### top : float

Access functions:

float | top() const
void | setTop(float top)

Notifier signal:

void | topChanged(float top)

### upVector : QVector3D

Access functions:

QVector3D | upVector() const
void | setUpVector(const QVector3D &upVector)

Notifier signal:

void | upVectorChanged(const QVector3D &upVector)

### viewCenter : QVector3D

Access functions:

QVector3D | viewCenter() const
void | setViewCenter(const QVector3D &viewCenter)

Notifier signal:

void | viewCenterChanged(const QVector3D &viewCenter)

### viewMatrix : const QMatrix4x4

Access functions:

QMatrix4x4 | viewMatrix() const

Notifier signal:

void | viewMatrixChanged(const QMatrix4x4 &viewMatrix)

### viewVector : const QVector3D

Access functions:

QVector3D | viewVector() const

Notifier signal:

void | viewVectorChanged(const QVector3D &viewVector)

## Member Function Documentation

### QCamera::QCamera(QNode *parent = 0)

### QCamera::~QCamera()

### QCameraLens *QCamera::lens() const

### void QCamera::pan(float angle)

### void QCamera::pan(float angle, const QVector3D &axis)

### void QCamera::panAboutViewCenter(float angle)

### void QCamera::panAboutViewCenter(float angle, const QVector3D &axis)

### QQuaternion QCamera::panRotation(float angle) const

### void QCamera::roll(float angle)

### void QCamera::rollAboutViewCenter(float angle)

### QQuaternion QCamera::rollRotation(float angle) const

### void QCamera::rotate(const QQuaternion &q)

### void QCamera::rotateAboutViewCenter(const QQuaternion &q)

### QQuaternion QCamera::rotation(float angle, const QVector3D &axis) const

### void QCamera::tilt(float angle)

### void QCamera::tiltAboutViewCenter(float angle)

### QQuaternion QCamera::tiltRotation(float angle) const

### QTransform *QCamera::transform() const

### void QCamera::translate(const QVector3D &vLocal, CameraTranslationOption option = TranslateViewCenter)

### void QCamera::translateWorld(const QVector3D &vWorld, CameraTranslationOption option = TranslateViewCenter)