[][src]Struct qt_3d_render::QCamera

#[repr(C)]
pub struct QCamera { /* fields omitted */ }

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

C++ class: Qt3DRender::QCamera.

C++ documentation:

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

Methods

impl QCamera[src]

pub fn slot_set_projection_type(&self) -> Receiver<(ProjectionType,)>[src]

Sets the camera's projection type to type.

Returns a built-in Qt slot Qt3DRender::QCamera::setProjectionType that can be passed to qt_core::Signal::connect.

C++ documentation:

Sets the camera's projection type to type.

Note: Setter function for property projectionType.

See also projectionType().

pub fn slot_set_near_plane(&self) -> Receiver<(c_float,)>[src]

Sets the camera's near plane to nearPlane.

Returns a built-in Qt slot Qt3DRender::QCamera::setNearPlane that can be passed to qt_core::Signal::connect.

C++ documentation:

Sets the camera's near plane to nearPlane.

Note: Setter function for property nearPlane.

See also nearPlane().

pub fn slot_set_far_plane(&self) -> Receiver<(c_float,)>[src]

Sets the camera's far plane to farPlane

Returns a built-in Qt slot Qt3DRender::QCamera::setFarPlane that can be passed to qt_core::Signal::connect.

C++ documentation:

Sets the camera's far plane to farPlane

Note: Setter function for property farPlane.

See also farPlane().

pub fn slot_set_field_of_view(&self) -> Receiver<(c_float,)>[src]

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

Returns a built-in Qt slot Qt3DRender::QCamera::setFieldOfView that can be passed to qt_core::Signal::connect.

C++ documentation:

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

Note: Setter function for property fieldOfView.

See also fieldOfView().

pub fn slot_set_aspect_ratio(&self) -> Receiver<(c_float,)>[src]

Sets the camera's aspect ratio to aspectRatio.

Returns a built-in Qt slot Qt3DRender::QCamera::setAspectRatio that can be passed to qt_core::Signal::connect.

C++ documentation:

Sets the camera's aspect ratio to aspectRatio.

Note: Setter function for property aspectRatio.

See also aspectRatio().

pub fn slot_set_left(&self) -> Receiver<(c_float,)>[src]

Sets the left of the camera to left.

Returns a built-in Qt slot Qt3DRender::QCamera::setLeft that can be passed to qt_core::Signal::connect.

C++ documentation:

Sets the left of the camera to left.

Note: Setter function for property left.

See also left().

pub fn slot_set_right(&self) -> Receiver<(c_float,)>[src]

Sets the right of the camera to right.

Returns a built-in Qt slot Qt3DRender::QCamera::setRight that can be passed to qt_core::Signal::connect.

C++ documentation:

Sets the right of the camera to right.

Note: Setter function for property right.

See also right().

pub fn slot_set_bottom(&self) -> Receiver<(c_float,)>[src]

Sets the bottom of the camera to bottom.

Returns a built-in Qt slot Qt3DRender::QCamera::setBottom that can be passed to qt_core::Signal::connect.

C++ documentation:

Sets the bottom of the camera to bottom.

Note: Setter function for property bottom.

See also bottom().

pub fn slot_set_top(&self) -> Receiver<(c_float,)>[src]

Sets the top of the camera to top.

Returns a built-in Qt slot Qt3DRender::QCamera::setTop that can be passed to qt_core::Signal::connect.

C++ documentation:

Sets the top of the camera to top.

Note: Setter function for property top.

See also top().

pub fn slot_set_projection_matrix(&self) -> Receiver<(*const QMatrix4X4,)>[src]

Sets the camera's projection matrix to projectionMatrix.

Returns a built-in Qt slot Qt3DRender::QCamera::setProjectionMatrix that can be passed to qt_core::Signal::connect.

C++ documentation:

Sets the camera's projection matrix to projectionMatrix.

Note: Setter function for property projectionMatrix.

See also projectionMatrix().

pub fn slot_set_exposure(&self) -> Receiver<(c_float,)>[src]

Sets the camera's exposure to exposure.

Returns a built-in Qt slot Qt3DRender::QCamera::setExposure that can be passed to qt_core::Signal::connect.

C++ documentation:

Sets the camera's exposure to exposure.

Note: Setter function for property exposure.

See also exposure().

pub fn slot_set_position(&self) -> Receiver<(*const QVector3D,)>[src]

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

Returns a built-in Qt slot Qt3DRender::QCamera::setPosition that can be passed to qt_core::Signal::connect.

C++ documentation:

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

Note: Setter function for property position.

See also position().

pub fn slot_set_up_vector(&self) -> Receiver<(*const QVector3D,)>[src]

Sets the camera's up vector to upVector.

Returns a built-in Qt slot Qt3DRender::QCamera::setUpVector that can be passed to qt_core::Signal::connect.

C++ documentation:

Sets the camera's up vector to upVector.

Note: Setter function for property upVector.

See also upVector().

pub fn slot_set_view_center(&self) -> Receiver<(*const QVector3D,)>[src]

Sets the camera's view center to viewCenter.

Returns a built-in Qt slot Qt3DRender::QCamera::setViewCenter that can be passed to qt_core::Signal::connect.

C++ documentation:

Sets the camera's view center to viewCenter.

Note: Setter function for property viewCenter.

See also viewCenter().

pub fn projection_type_changed(&self) -> Signal<(ProjectionType,)>[src]

Holds the type of the camera projection.

Returns a built-in Qt signal Qt3DRender::QCamera::projectionTypeChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the type of the camera projection.

Access functions:

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

Notifier signal:

void projectionTypeChanged(QCameraLens::ProjectionType projectionType)

See also Qt3DRender::QCameraLens::ProjectionType.

pub fn near_plane_changed(&self) -> Signal<(c_float,)>[src]

Holds the current camera near plane.

Returns a built-in Qt signal Qt3DRender::QCamera::nearPlaneChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the current camera near plane.

Access functions:

float nearPlane() const
void setNearPlane(float nearPlane)

Notifier signal:

void nearPlaneChanged(float nearPlane)

pub fn far_plane_changed(&self) -> Signal<(c_float,)>[src]

Holds the current camera far plane.

Returns a built-in Qt signal Qt3DRender::QCamera::farPlaneChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the current camera far plane.

Access functions:

float farPlane() const
void setFarPlane(float farPlane)

Notifier signal:

void farPlaneChanged(float farPlane)

pub fn field_of_view_changed(&self) -> Signal<(c_float,)>[src]

Holds the current field of view in degrees.

Returns a built-in Qt signal Qt3DRender::QCamera::fieldOfViewChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the current field of view in degrees.

Access functions:

float fieldOfView() const
void setFieldOfView(float fieldOfView)

Notifier signal:

void fieldOfViewChanged(float fieldOfView)

pub fn aspect_ratio_changed(&self) -> Signal<(c_float,)>[src]

Holds the current aspect ratio.

Returns a built-in Qt signal Qt3DRender::QCamera::aspectRatioChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the current aspect ratio.

Access functions:

float aspectRatio() const
void setAspectRatio(float aspectRatio)

Notifier signal:

void aspectRatioChanged(float aspectRatio)

pub fn left_changed(&self) -> Signal<(c_float,)>[src]

Holds the current left of the camera.

Returns a built-in Qt signal Qt3DRender::QCamera::leftChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the current left of the camera.

Access functions:

float left() const
void setLeft(float left)

Notifier signal:

void leftChanged(float left)

pub fn right_changed(&self) -> Signal<(c_float,)>[src]

Holds the current right of the camera.

Returns a built-in Qt signal Qt3DRender::QCamera::rightChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the current right of the camera.

Access functions:

float right() const
void setRight(float right)

Notifier signal:

void rightChanged(float right)

pub fn bottom_changed(&self) -> Signal<(c_float,)>[src]

Holds the current bottom of the camera.

Returns a built-in Qt signal Qt3DRender::QCamera::bottomChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the current bottom of the camera.

Access functions:

float bottom() const
void setBottom(float bottom)

Notifier signal:

void bottomChanged(float bottom)

pub fn top_changed(&self) -> Signal<(c_float,)>[src]

Holds the current top of the camera.

Returns a built-in Qt signal Qt3DRender::QCamera::topChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the current top of the camera.

Access functions:

float top() const
void setTop(float top)

Notifier signal:

void topChanged(float top)

pub fn projection_matrix_changed(&self) -> Signal<(*const QMatrix4X4,)>[src]

Holds the current projection matrix of the camera.

Returns a built-in Qt signal Qt3DRender::QCamera::projectionMatrixChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the current projection matrix of the camera.

Access functions:

QMatrix4x4 projectionMatrix() const
void setProjectionMatrix(const QMatrix4x4 &projectionMatrix)

Notifier signal:

void projectionMatrixChanged(const QMatrix4x4 &projectionMatrix)

pub fn exposure_changed(&self) -> Signal<(c_float,)>[src]

Holds the current exposure of the camera.

Returns a built-in Qt signal Qt3DRender::QCamera::exposureChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the current exposure of the camera.

Access functions:

float exposure() const
void setExposure(float exposure)

Notifier signal:

void exposureChanged(float exposure)

pub fn position_changed(&self) -> Signal<(*const QVector3D,)>[src]

Holds the camera's position in coordinates relative to the parent entity.

Returns a built-in Qt signal Qt3DRender::QCamera::positionChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the camera's position in coordinates relative to the parent entity.

Access functions:

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

Notifier signal:

void positionChanged(const QVector3D &position)

pub fn up_vector_changed(&self) -> Signal<(*const QVector3D,)>[src]

Holds the camera's up vector in coordinates relative to the parent entity.

Returns a built-in Qt signal Qt3DRender::QCamera::upVectorChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the camera's up vector in coordinates relative to the parent entity.

Access functions:

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

Notifier signal:

void upVectorChanged(const QVector3D &upVector)

pub fn view_center_changed(&self) -> Signal<(*const QVector3D,)>[src]

Holds the camera's view center in coordinates relative to the parent entity.

Returns a built-in Qt signal Qt3DRender::QCamera::viewCenterChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the camera's view center in coordinates relative to the parent entity.

Access functions:

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

Notifier signal:

void viewCenterChanged(const QVector3D &viewCenter)

pub fn view_vector_changed(&self) -> Signal<(*const QVector3D,)>[src]

Holds the camera's view vector in coordinates relative to the parent entity.

Returns a built-in Qt signal Qt3DRender::QCamera::viewVectorChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the camera's view vector in coordinates relative to the parent entity.

Access functions:

QVector3D viewVector() const

Notifier signal:

void viewVectorChanged(const QVector3D &viewVector)

pub fn view_matrix_changed(&self) -> Signal<()>[src]

Holds the camera's view matrix in coordinates relative to the parent entity.

Returns a built-in Qt signal Qt3DRender::QCamera::viewMatrixChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the camera's view matrix in coordinates relative to the parent entity.

Access functions:

QMatrix4x4 viewMatrix() const

Notifier signal:

pub unsafe fn aspect_ratio(&self) -> c_float[src]

Holds the current aspect ratio.

Calls C++ function: float Qt3DRender::QCamera::aspectRatio() const.

C++ documentation:

Holds the current aspect ratio.

Access functions:

float aspectRatio() const
void setAspectRatio(float aspectRatio)

Notifier signal:

void aspectRatioChanged(float aspectRatio)

pub unsafe fn bottom(&self) -> c_float[src]

Holds the current bottom of the camera.

Calls C++ function: float Qt3DRender::QCamera::bottom() const.

C++ documentation:

Holds the current bottom of the camera.

Access functions:

float bottom() const
void setBottom(float bottom)

Notifier signal:

void bottomChanged(float bottom)

pub unsafe fn exposure(&self) -> c_float[src]

Holds the current exposure of the camera.

Calls C++ function: float Qt3DRender::QCamera::exposure() const.

C++ documentation:

Holds the current exposure of the camera.

Access functions:

float exposure() const
void setExposure(float exposure)

Notifier signal:

void exposureChanged(float exposure)

pub unsafe fn far_plane(&self) -> c_float[src]

Holds the current camera far plane.

Calls C++ function: float Qt3DRender::QCamera::farPlane() const.

C++ documentation:

Holds the current camera far plane.

Access functions:

float farPlane() const
void setFarPlane(float farPlane)

Notifier signal:

void farPlaneChanged(float farPlane)

pub unsafe fn field_of_view(&self) -> c_float[src]

Holds the current field of view in degrees.

Calls C++ function: float Qt3DRender::QCamera::fieldOfView() const.

C++ documentation:

Holds the current field of view in degrees.

Access functions:

float fieldOfView() const
void setFieldOfView(float fieldOfView)

Notifier signal:

void fieldOfViewChanged(float fieldOfView)

pub unsafe fn left(&self) -> c_float[src]

Holds the current left of the camera.

Calls C++ function: float Qt3DRender::QCamera::left() const.

C++ documentation:

Holds the current left of the camera.

Access functions:

float left() const
void setLeft(float left)

Notifier signal:

void leftChanged(float left)

pub unsafe fn lens(&self) -> QMutPtr<QCameraLens>[src]

Returns the current lens.

Calls C++ function: Qt3DRender::QCameraLens* Qt3DRender::QCamera::lens() const.

C++ documentation:

Returns the current lens.

pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>[src]

Calls C++ function: virtual const QMetaObject* Qt3DRender::QCamera::metaObject() const.

pub unsafe fn near_plane(&self) -> c_float[src]

Holds the current camera near plane.

Calls C++ function: float Qt3DRender::QCamera::nearPlane() const.

C++ documentation:

Holds the current camera near plane.

Access functions:

float nearPlane() const
void setNearPlane(float nearPlane)

Notifier signal:

void nearPlaneChanged(float nearPlane)

pub unsafe fn new_1a(parent: impl CastInto<MutPtr<QNode>>) -> QBox<QCamera>[src]

Default constructs an instance of QCamera.

Calls C++ function: [constructor] void Qt3DRender::QCamera::QCamera(Qt3DCore::QNode* parent = …).

C++ documentation:

Default constructs an instance of QCamera.

pub unsafe fn new_0a() -> QBox<QCamera>[src]

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

Calls C++ function: [constructor] void Qt3DRender::QCamera::QCamera().

C++ documentation:

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

pub unsafe fn pan_1a(&mut self, angle: c_float)[src]

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

Calls C++ function: void Qt3DRender::QCamera::pan(float angle).

C++ documentation:

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

pub unsafe fn pan_2a(
    &mut self,
    angle: c_float,
    axis: impl CastInto<Ref<QVector3D>>
)
[src]

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

Calls C++ function: void Qt3DRender::QCamera::pan(float angle, const QVector3D& axis).

C++ documentation:

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

pub unsafe fn pan_about_view_center_1a(&mut self, angle: c_float)[src]

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

Calls C++ function: void Qt3DRender::QCamera::panAboutViewCenter(float angle).

C++ documentation:

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

pub unsafe fn pan_about_view_center_2a(
    &mut self,
    angle: c_float,
    axis: impl CastInto<Ref<QVector3D>>
)
[src]

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

Calls C++ function: void Qt3DRender::QCamera::panAboutViewCenter(float angle, const QVector3D& axis).

C++ documentation:

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

pub unsafe fn pan_rotation(&self, angle: c_float) -> CppBox<QQuaternion>[src]

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.

Calls C++ function: QQuaternion Qt3DRender::QCamera::panRotation(float angle) const.

C++ documentation:

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.

pub unsafe fn position(&self) -> CppBox<QVector3D>[src]

Holds the camera's position in coordinates relative to the parent entity.

Calls C++ function: QVector3D Qt3DRender::QCamera::position() const.

C++ documentation:

Holds the camera's position in coordinates relative to the parent entity.

Access functions:

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

Notifier signal:

void positionChanged(const QVector3D &position)

pub unsafe fn projection_matrix(&self) -> CppBox<QMatrix4X4>[src]

Holds the current projection matrix of the camera.

Calls C++ function: QMatrix4x4 Qt3DRender::QCamera::projectionMatrix() const.

C++ documentation:

Holds the current projection matrix of the camera.

Access functions:

QMatrix4x4 projectionMatrix() const
void setProjectionMatrix(const QMatrix4x4 &projectionMatrix)

Notifier signal:

void projectionMatrixChanged(const QMatrix4x4 &projectionMatrix)

pub unsafe fn projection_type(&self) -> ProjectionType[src]

Holds the type of the camera projection.

Calls C++ function: Qt3DRender::QCameraLens::ProjectionType Qt3DRender::QCamera::projectionType() const.

C++ documentation:

Holds the type of the camera projection.

Access functions:

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

Notifier signal:

void projectionTypeChanged(QCameraLens::ProjectionType projectionType)

See also Qt3DRender::QCameraLens::ProjectionType.

pub unsafe fn qt_metacall(
    &mut self,
    arg1: Call,
    arg2: c_int,
    arg3: impl CastInto<MutPtr<*mut c_void>>
) -> c_int
[src]

Calls C++ function: virtual int Qt3DRender::QCamera::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3).

pub unsafe fn qt_metacast(
    &mut self,
    arg1: impl CastInto<Ptr<c_char>>
) -> MutPtr<c_void>
[src]

Calls C++ function: virtual void* Qt3DRender::QCamera::qt_metacast(const char* arg1).

pub unsafe fn right(&self) -> c_float[src]

Holds the current right of the camera.

Calls C++ function: float Qt3DRender::QCamera::right() const.

C++ documentation:

Holds the current right of the camera.

Access functions:

float right() const
void setRight(float right)

Notifier signal:

void rightChanged(float right)

pub unsafe fn roll(&mut self, angle: c_float)[src]

Adjusts the camera roll by angle in degrees.

Calls C++ function: void Qt3DRender::QCamera::roll(float angle).

C++ documentation:

Adjusts the camera roll by angle in degrees.

pub unsafe fn roll_about_view_center(&mut self, angle: c_float)[src]

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

Calls C++ function: void Qt3DRender::QCamera::rollAboutViewCenter(float angle).

C++ documentation:

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

pub unsafe fn roll_rotation(&self, angle: c_float) -> CppBox<QQuaternion>[src]

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.

Calls C++ function: QQuaternion Qt3DRender::QCamera::rollRotation(float angle) const.

C++ documentation:

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.

pub unsafe fn rotate(&mut self, q: impl CastInto<Ref<QQuaternion>>)[src]

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

Calls C++ function: void Qt3DRender::QCamera::rotate(const QQuaternion& q).

C++ documentation:

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

pub unsafe fn rotate_about_view_center(
    &mut self,
    q: impl CastInto<Ref<QQuaternion>>
)
[src]

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

Calls C++ function: void Qt3DRender::QCamera::rotateAboutViewCenter(const QQuaternion& q).

C++ documentation:

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

pub unsafe fn rotation(
    &self,
    angle: c_float,
    axis: impl CastInto<Ref<QVector3D>>
) -> CppBox<QQuaternion>
[src]

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

Calls C++ function: QQuaternion Qt3DRender::QCamera::rotation(float angle, const QVector3D& axis) const.

C++ documentation:

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

pub unsafe fn set_aspect_ratio(&mut self, aspect_ratio: c_float)[src]

Sets the camera's aspect ratio to aspectRatio.

Calls C++ function: [slot] void Qt3DRender::QCamera::setAspectRatio(float aspectRatio).

C++ documentation:

Sets the camera's aspect ratio to aspectRatio.

Note: Setter function for property aspectRatio.

See also aspectRatio().

pub unsafe fn set_bottom(&mut self, bottom: c_float)[src]

Sets the bottom of the camera to bottom.

Calls C++ function: [slot] void Qt3DRender::QCamera::setBottom(float bottom).

C++ documentation:

Sets the bottom of the camera to bottom.

Note: Setter function for property bottom.

See also bottom().

pub unsafe fn set_exposure(&mut self, exposure: c_float)[src]

Sets the camera's exposure to exposure.

Calls C++ function: [slot] void Qt3DRender::QCamera::setExposure(float exposure).

C++ documentation:

Sets the camera's exposure to exposure.

Note: Setter function for property exposure.

See also exposure().

pub unsafe fn set_far_plane(&mut self, far_plane: c_float)[src]

Sets the camera's far plane to farPlane

Calls C++ function: [slot] void Qt3DRender::QCamera::setFarPlane(float farPlane).

C++ documentation:

Sets the camera's far plane to farPlane

Note: Setter function for property farPlane.

See also farPlane().

pub unsafe fn set_field_of_view(&mut self, field_of_view: c_float)[src]

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

Calls C++ function: [slot] void Qt3DRender::QCamera::setFieldOfView(float fieldOfView).

C++ documentation:

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

Note: Setter function for property fieldOfView.

See also fieldOfView().

pub unsafe fn set_left(&mut self, left: c_float)[src]

Sets the left of the camera to left.

Calls C++ function: [slot] void Qt3DRender::QCamera::setLeft(float left).

C++ documentation:

Sets the left of the camera to left.

Note: Setter function for property left.

See also left().

pub unsafe fn set_near_plane(&mut self, near_plane: c_float)[src]

Sets the camera's near plane to nearPlane.

Calls C++ function: [slot] void Qt3DRender::QCamera::setNearPlane(float nearPlane).

C++ documentation:

Sets the camera's near plane to nearPlane.

Note: Setter function for property nearPlane.

See also nearPlane().

pub unsafe fn set_position(&mut self, position: impl CastInto<Ref<QVector3D>>)[src]

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

Calls C++ function: [slot] void Qt3DRender::QCamera::setPosition(const QVector3D& position).

C++ documentation:

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

Note: Setter function for property position.

See also position().

pub unsafe fn set_projection_matrix(
    &mut self,
    projection_matrix: impl CastInto<Ref<QMatrix4X4>>
)
[src]

Sets the camera's projection matrix to projectionMatrix.

Calls C++ function: [slot] void Qt3DRender::QCamera::setProjectionMatrix(const QMatrix4x4& projectionMatrix).

C++ documentation:

Sets the camera's projection matrix to projectionMatrix.

Note: Setter function for property projectionMatrix.

See also projectionMatrix().

pub unsafe fn set_projection_type(&mut self, type_: ProjectionType)[src]

Sets the camera's projection type to type.

Calls C++ function: [slot] void Qt3DRender::QCamera::setProjectionType(Qt3DRender::QCameraLens::ProjectionType type).

C++ documentation:

Sets the camera's projection type to type.

Note: Setter function for property projectionType.

See also projectionType().

pub unsafe fn set_right(&mut self, right: c_float)[src]

Sets the right of the camera to right.

Calls C++ function: [slot] void Qt3DRender::QCamera::setRight(float right).

C++ documentation:

Sets the right of the camera to right.

Note: Setter function for property right.

See also right().

pub unsafe fn set_top(&mut self, top: c_float)[src]

Sets the top of the camera to top.

Calls C++ function: [slot] void Qt3DRender::QCamera::setTop(float top).

C++ documentation:

Sets the top of the camera to top.

Note: Setter function for property top.

See also top().

pub unsafe fn set_up_vector(&mut self, up_vector: impl CastInto<Ref<QVector3D>>)[src]

Sets the camera's up vector to upVector.

Calls C++ function: [slot] void Qt3DRender::QCamera::setUpVector(const QVector3D& upVector).

C++ documentation:

Sets the camera's up vector to upVector.

Note: Setter function for property upVector.

See also upVector().

pub unsafe fn set_view_center(
    &mut self,
    view_center: impl CastInto<Ref<QVector3D>>
)
[src]

Sets the camera's view center to viewCenter.

Calls C++ function: [slot] void Qt3DRender::QCamera::setViewCenter(const QVector3D& viewCenter).

C++ documentation:

Sets the camera's view center to viewCenter.

Note: Setter function for property viewCenter.

See also viewCenter().

pub unsafe fn static_meta_object() -> Ref<QMetaObject>[src]

Returns a reference to the staticMetaObject field.

pub unsafe fn tilt(&mut self, angle: c_float)[src]

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

Calls C++ function: void Qt3DRender::QCamera::tilt(float angle).

C++ documentation:

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

pub unsafe fn tilt_about_view_center(&mut self, angle: c_float)[src]

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

Calls C++ function: void Qt3DRender::QCamera::tiltAboutViewCenter(float angle).

C++ documentation:

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

pub unsafe fn tilt_rotation(&self, angle: c_float) -> CppBox<QQuaternion>[src]

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.

Calls C++ function: QQuaternion Qt3DRender::QCamera::tiltRotation(float angle) const.

C++ documentation:

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.

pub unsafe fn top(&self) -> c_float[src]

Holds the current top of the camera.

Calls C++ function: float Qt3DRender::QCamera::top() const.

C++ documentation:

Holds the current top of the camera.

Access functions:

float top() const
void setTop(float top)

Notifier signal:

void topChanged(float top)

pub unsafe fn tr(
    s: impl CastInto<Ptr<c_char>>,
    c: impl CastInto<Ptr<c_char>>,
    n: c_int
) -> CppBox<QString>
[src]

Calls C++ function: static QString Qt3DRender::QCamera::tr(const char* s, const char* c, int n).

pub unsafe fn tr_utf8(
    s: impl CastInto<Ptr<c_char>>,
    c: impl CastInto<Ptr<c_char>>,
    n: c_int
) -> CppBox<QString>
[src]

Calls C++ function: static QString Qt3DRender::QCamera::trUtf8(const char* s, const char* c, int n).

pub unsafe fn transform(&self) -> QMutPtr<QTransform>[src]

Returns the camera's position via transform.

Calls C++ function: Qt3DCore::QTransform* Qt3DRender::QCamera::transform() const.

C++ documentation:

Returns the camera's position via transform.

pub unsafe fn translate_2a(
    &mut self,
    v_local: impl CastInto<Ref<QVector3D>>,
    option: CameraTranslationOption
)
[src]

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.

Calls C++ function: void Qt3DRender::QCamera::translate(const QVector3D& vLocal, Qt3DRender::QCamera::CameraTranslationOption option = …).

C++ documentation:

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.

pub unsafe fn translate_1a(&mut self, v_local: impl CastInto<Ref<QVector3D>>)[src]

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.

Calls C++ function: void Qt3DRender::QCamera::translate(const QVector3D& vLocal).

C++ documentation:

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.

pub unsafe fn translate_world_2a(
    &mut self,
    v_world: impl CastInto<Ref<QVector3D>>,
    option: CameraTranslationOption
)
[src]

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.

Calls C++ function: void Qt3DRender::QCamera::translateWorld(const QVector3D& vWorld, Qt3DRender::QCamera::CameraTranslationOption option = …).

C++ documentation:

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.

pub unsafe fn translate_world_1a(
    &mut self,
    v_world: impl CastInto<Ref<QVector3D>>
)
[src]

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.

Calls C++ function: void Qt3DRender::QCamera::translateWorld(const QVector3D& vWorld).

C++ documentation:

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.

pub unsafe fn up_vector(&self) -> CppBox<QVector3D>[src]

Holds the camera's up vector in coordinates relative to the parent entity.

Calls C++ function: QVector3D Qt3DRender::QCamera::upVector() const.

C++ documentation:

Holds the camera's up vector in coordinates relative to the parent entity.

Access functions:

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

Notifier signal:

void upVectorChanged(const QVector3D &upVector)

pub unsafe fn view_all(&mut self)[src]

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.

Calls C++ function: void Qt3DRender::QCamera::viewAll().

C++ documentation:

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.

Note: Only works if the lens is in perspective projection mode.

See also Qt3D.Render::Camera::projectionType.

This item is available if any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0", cpp_lib_version="5.14.0").

pub unsafe fn view_center(&self) -> CppBox<QVector3D>[src]

Holds the camera's view center in coordinates relative to the parent entity.

Calls C++ function: QVector3D Qt3DRender::QCamera::viewCenter() const.

C++ documentation:

Holds the camera's view center in coordinates relative to the parent entity.

Access functions:

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

Notifier signal:

void viewCenterChanged(const QVector3D &viewCenter)

pub unsafe fn view_entity(&mut self, entity: impl CastInto<MutPtr<QEntity>>)[src]

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.

Calls C++ function: void Qt3DRender::QCamera::viewEntity(Qt3DCore::QEntity* entity).

C++ documentation:

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.

Note: Only works if the lens is in perspective projection mode.

See also Camera.projectionType.

This item is available if any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0", cpp_lib_version="5.14.0").

pub unsafe fn view_matrix(&self) -> CppBox<QMatrix4X4>[src]

Holds the camera's view matrix in coordinates relative to the parent entity.

Calls C++ function: QMatrix4x4 Qt3DRender::QCamera::viewMatrix() const.

C++ documentation:

Holds the camera's view matrix in coordinates relative to the parent entity.

Access functions:

QMatrix4x4 viewMatrix() const

Notifier signal:

pub unsafe fn view_sphere(
    &mut self,
    center: impl CastInto<Ref<QVector3D>>,
    radius: c_float
)
[src]

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

Calls C++ function: void Qt3DRender::QCamera::viewSphere(const QVector3D& center, float radius).

C++ documentation:

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

Note: Only works if the lens is in perspective projection mode.

See also Qt3D.Render::Camera::projectionType.

This item is available if any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0", cpp_lib_version="5.14.0").

pub unsafe fn view_vector(&self) -> CppBox<QVector3D>[src]

Holds the camera's view vector in coordinates relative to the parent entity.

Calls C++ function: QVector3D Qt3DRender::QCamera::viewVector() const.

C++ documentation:

Holds the camera's view vector in coordinates relative to the parent entity.

Access functions:

QVector3D viewVector() const

Notifier signal:

void viewVectorChanged(const QVector3D &viewVector)

Methods from Deref<Target = QEntity>

pub unsafe fn add_component(&mut self, comp: impl CastInto<MutPtr<QComponent>>)[src]

Adds a new reference to the component comp.

Calls C++ function: void Qt3DCore::QEntity::addComponent(Qt3DCore::QComponent* comp).

C++ documentation:

Adds a new reference to the component comp.

Note: If the Qt3DCore::QComponent has no parent, the Qt3DCore::QEntity will set itself as its parent thereby taking ownership of the component.

pub unsafe fn components(&self) -> CppBox<QVectorOfQComponent>[src]

Returns the list of Qt3DCore::QComponent instances the entity is referencing.

Calls C++ function: QVector<Qt3DCore::QComponent*> Qt3DCore::QEntity::components() const.

C++ documentation:

Returns the list of Qt3DCore::QComponent instances the entity is referencing.

pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>[src]

Calls C++ function: virtual const QMetaObject* Qt3DCore::QEntity::metaObject() const.

pub unsafe fn parent_entity(&self) -> QMutPtr<QEntity>[src]

Returns the parent Qt3DCore::QEntity instance of this entity. If the immediate parent isn't a Qt3DCore::QEntity, this function traverses up the scene hierarchy until a parent Qt3DCore::QEntity is found. If no Qt3DCore::QEntity parent can be found, returns null.

Calls C++ function: Qt3DCore::QEntity* Qt3DCore::QEntity::parentEntity() const.

C++ documentation:

Returns the parent Qt3DCore::QEntity instance of this entity. If the immediate parent isn't a Qt3DCore::QEntity, this function traverses up the scene hierarchy until a parent Qt3DCore::QEntity is found. If no Qt3DCore::QEntity parent can be found, returns null.

pub unsafe fn qt_metacall(
    &mut self,
    arg1: Call,
    arg2: i32,
    arg3: impl CastInto<MutPtr<*mut c_void>>
) -> i32
[src]

Calls C++ function: virtual int Qt3DCore::QEntity::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3).

pub unsafe fn qt_metacast(
    &mut self,
    arg1: impl CastInto<Ptr<i8>>
) -> MutPtr<c_void>
[src]

Calls C++ function: virtual void* Qt3DCore::QEntity::qt_metacast(const char* arg1).

pub unsafe fn remove_component(
    &mut self,
    comp: impl CastInto<MutPtr<QComponent>>
)
[src]

Removes the reference to comp.

Calls C++ function: void Qt3DCore::QEntity::removeComponent(Qt3DCore::QComponent* comp).

C++ documentation:

Removes the reference to comp.

Trait Implementations

impl CppDeletable for QCamera[src]

unsafe fn delete(&mut self)[src]

Calls C++ function: virtual [destructor] void Qt3DRender::QCamera::~QCamera().

impl Deref for QCamera[src]

type Target = QEntity

The resulting type after dereferencing.

fn deref(&self) -> &QEntity[src]

Calls C++ function: Qt3DCore::QEntity* static_cast<Qt3DCore::QEntity*>(Qt3DRender::QCamera* ptr).

impl DerefMut for QCamera[src]

fn deref_mut(&mut self) -> &mut QEntity[src]

Calls C++ function: Qt3DCore::QEntity* static_cast<Qt3DCore::QEntity*>(Qt3DRender::QCamera* ptr).

impl DynamicCast<QCamera> for QEntity[src]

unsafe fn dynamic_cast(ptr: Ptr<QEntity>) -> Ptr<QCamera>[src]

Calls C++ function: Qt3DRender::QCamera* dynamic_cast<Qt3DRender::QCamera*>(Qt3DCore::QEntity* ptr).

unsafe fn dynamic_cast_mut(ptr: MutPtr<QEntity>) -> MutPtr<QCamera>[src]

Calls C++ function: Qt3DRender::QCamera* dynamic_cast<Qt3DRender::QCamera*>(Qt3DCore::QEntity* ptr).

impl DynamicCast<QCamera> for QNode[src]

unsafe fn dynamic_cast(ptr: Ptr<QNode>) -> Ptr<QCamera>[src]

Calls C++ function: Qt3DRender::QCamera* dynamic_cast<Qt3DRender::QCamera*>(Qt3DCore::QNode* ptr).

unsafe fn dynamic_cast_mut(ptr: MutPtr<QNode>) -> MutPtr<QCamera>[src]

Calls C++ function: Qt3DRender::QCamera* dynamic_cast<Qt3DRender::QCamera*>(Qt3DCore::QNode* ptr).

impl DynamicCast<QCamera> for QObject[src]

unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QCamera>[src]

Calls C++ function: Qt3DRender::QCamera* dynamic_cast<Qt3DRender::QCamera*>(QObject* ptr).

unsafe fn dynamic_cast_mut(ptr: MutPtr<QObject>) -> MutPtr<QCamera>[src]

Calls C++ function: Qt3DRender::QCamera* dynamic_cast<Qt3DRender::QCamera*>(QObject* ptr).

impl StaticDowncast<QCamera> for QEntity[src]

unsafe fn static_downcast(ptr: Ptr<QEntity>) -> Ptr<QCamera>[src]

Calls C++ function: Qt3DRender::QCamera* static_cast<Qt3DRender::QCamera*>(Qt3DCore::QEntity* ptr).

unsafe fn static_downcast_mut(ptr: MutPtr<QEntity>) -> MutPtr<QCamera>[src]

Calls C++ function: Qt3DRender::QCamera* static_cast<Qt3DRender::QCamera*>(Qt3DCore::QEntity* ptr).

impl StaticDowncast<QCamera> for QNode[src]

unsafe fn static_downcast(ptr: Ptr<QNode>) -> Ptr<QCamera>[src]

Calls C++ function: Qt3DRender::QCamera* static_cast<Qt3DRender::QCamera*>(Qt3DCore::QNode* ptr).

unsafe fn static_downcast_mut(ptr: MutPtr<QNode>) -> MutPtr<QCamera>[src]

Calls C++ function: Qt3DRender::QCamera* static_cast<Qt3DRender::QCamera*>(Qt3DCore::QNode* ptr).

impl StaticDowncast<QCamera> for QObject[src]

unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QCamera>[src]

Calls C++ function: Qt3DRender::QCamera* static_cast<Qt3DRender::QCamera*>(QObject* ptr).

unsafe fn static_downcast_mut(ptr: MutPtr<QObject>) -> MutPtr<QCamera>[src]

Calls C++ function: Qt3DRender::QCamera* static_cast<Qt3DRender::QCamera*>(QObject* ptr).

impl StaticUpcast<QEntity> for QCamera[src]

unsafe fn static_upcast(ptr: Ptr<QCamera>) -> Ptr<QEntity>[src]

Calls C++ function: Qt3DCore::QEntity* static_cast<Qt3DCore::QEntity*>(Qt3DRender::QCamera* ptr).

unsafe fn static_upcast_mut(ptr: MutPtr<QCamera>) -> MutPtr<QEntity>[src]

Calls C++ function: Qt3DCore::QEntity* static_cast<Qt3DCore::QEntity*>(Qt3DRender::QCamera* ptr).

impl StaticUpcast<QNode> for QCamera[src]

unsafe fn static_upcast(ptr: Ptr<QCamera>) -> Ptr<QNode>[src]

Calls C++ function: Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DRender::QCamera* ptr).

unsafe fn static_upcast_mut(ptr: MutPtr<QCamera>) -> MutPtr<QNode>[src]

Calls C++ function: Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DRender::QCamera* ptr).

impl StaticUpcast<QObject> for QCamera[src]

unsafe fn static_upcast(ptr: Ptr<QCamera>) -> Ptr<QObject>[src]

Calls C++ function: QObject* static_cast<QObject*>(Qt3DRender::QCamera* ptr).

unsafe fn static_upcast_mut(ptr: MutPtr<QCamera>) -> MutPtr<QObject>[src]

Calls C++ function: QObject* static_cast<QObject*>(Qt3DRender::QCamera* ptr).

Auto Trait Implementations

impl RefUnwindSafe for QCamera

impl Send for QCamera

impl Sync for QCamera

impl Unpin for QCamera

impl UnwindSafe for QCamera

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.