- Qt 5.5
- Qt3D Module
- C++ Classes
- QCamera
- Qt 5.5.1 Reference Documentation

# QCamera Class

(Qt3D::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 matrix : const QMatrix4x4 nearPlane : float | position : QVector3D projectionMatrix : const QMatrix4x4 projectionType : Qt3D::QCameraLens::ProjectionType right : float top : float upVector : QVector3D viewCenter : QVector3D

- 1 property inherited from Qt3D::QNode

## 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
QLookAtTransform * | lookAt() const
QMatrix4x4 | matrix() const
float | nearPlane() const
void | pan(const float & angle)
void | panAboutViewCenter(const float & angle)
QQuaternion | panRotation(float angle) const
QVector3D | position() const
QMatrix4x4 | projectionMatrix() const
QCameraLens::ProjectionType | projectionType() const
float | right() const
void | roll(const float & angle)
void | rollAboutViewCenter(const float & angle)
QQuaternion | rollRotation(float angle) const
void | rotate(const QQuaternion & q)
void | rotateAboutViewCenter(const QQuaternion & q)
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)
void | tilt(const float & angle)
void | tiltAboutViewCenter(const 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

- 6 public functions inherited from Qt3D::QEntity
- 6 public functions inherited from Qt3D::QNode

## Signals

void | aspectRatioChanged()
void | bottomChanged()
void | farPlaneChanged()
void | fieldOfViewChanged()
void | leftChanged()
void | matrixChanged()
void | nearPlaneChanged()
void | positionChanged()
void | projectionMatrixChanged()
void | projectionTypeChanged()
void | rightChanged()
void | topChanged()
void | upVectorChanged()
void | viewCenterChanged()

- 1 signal inherited from Qt3D::QNode

### Additional Inherited Members

- 1 protected function inherited from Qt3D::QEntity
- 3 protected functions inherited from Qt3D::QNode
- 1 static protected member inherited from Qt3D::QNode

## Member Type Documentation

### enum QCamera::CameraTranslationOption

## Property Documentation

### aspectRatio : float

Access functions:

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

Notifier signal:

void | aspectRatioChanged()

### bottom : float

Access functions:

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

Notifier signal:

void | bottomChanged()

### farPlane : float

Access functions:

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

Notifier signal:

void | farPlaneChanged()

### fieldOfView : float

Access functions:

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

Notifier signal:

void | fieldOfViewChanged()

### left : float

Access functions:

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

Notifier signal:

void | leftChanged()

### matrix : const QMatrix4x4

Access functions:

QMatrix4x4 | matrix() const

Notifier signal:

void | matrixChanged()

### nearPlane : float

Access functions:

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

Notifier signal:

void | nearPlaneChanged()

### position : QVector3D

Access functions:

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

Notifier signal:

void | positionChanged()

### projectionMatrix : const QMatrix4x4

Access functions:

QMatrix4x4 | projectionMatrix() const

Notifier signal:

void | projectionMatrixChanged()

### projectionType : Qt3D::QCameraLens::ProjectionType

Access functions:

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

Notifier signal:

void | projectionTypeChanged()

### right : float

Access functions:

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

Notifier signal:

void | rightChanged()

### top : float

Access functions:

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

Notifier signal:

void | topChanged()

### upVector : QVector3D

Access functions:

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

Notifier signal:

void | upVectorChanged()

### viewCenter : QVector3D

Access functions:

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

Notifier signal:

void | viewCenterChanged()

## Member Function Documentation

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

### QCamera::~QCamera()

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

### QLookAtTransform * QCamera::lookAt() const

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

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

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

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

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

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

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

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

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

### void QCamera::tiltAboutViewCenter(const 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)