[][src]Struct qt_3d_extras::QFirstPersonCameraController

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

The QFirstPersonCameraController class allows controlling the scene camera from the first person perspective.

C++ class: Qt3DExtras::QFirstPersonCameraController.

C++ documentation:

The QFirstPersonCameraController class allows controlling the scene camera from the first person perspective.

The controls are:

InputAction
Left mouse buttonWhile the left mouse button is pressed, mouse movement along x-axis pans the camera and movement along y-axis tilts it.
Mouse scroll wheelZooms the camera in and out without changing the view center.
Shift keyTurns the fine motion control active while pressed. Makes mouse pan and tilt less sensitive.
Arrow keysMove the camera horizontally relative to camera viewport.
Page up and page down keysMove the camera vertically relative to camera viewport.

Methods

impl QFirstPersonCameraController[src]

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

Holds the currently controlled camera.

Returns a built-in Qt signal Qt3DExtras::QFirstPersonCameraController::cameraChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the currently controlled camera.

Access functions:

Qt3DRender::QCamera *camera() const
void setCamera(Qt3DRender::QCamera *camera)

Notifier signal:

void cameraChanged()

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

Holds the current linear speed of the camera controller. Linear speed determines the movement speed of the camera.

Returns a built-in Qt signal Qt3DExtras::QFirstPersonCameraController::linearSpeedChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the current linear speed of the camera controller. Linear speed determines the movement speed of the camera.

Access functions:

float linearSpeed() const
void setLinearSpeed(float linearSpeed)

Notifier signal:

void linearSpeedChanged()

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

Holds the current look speed of the camera controller. The look speed determines the turn rate of the camera pan and tilt.

Returns a built-in Qt signal Qt3DExtras::QFirstPersonCameraController::lookSpeedChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the current look speed of the camera controller. The look speed determines the turn rate of the camera pan and tilt.

Access functions:

float lookSpeed() const
void setLookSpeed(float lookSpeed)

Notifier signal:

void lookSpeedChanged()

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

Holds the current acceleration of the camera controller.

Returns a built-in Qt signal Qt3DExtras::QFirstPersonCameraController::accelerationChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the current acceleration of the camera controller.

Access functions:

float acceleration() const
void setAcceleration(float acceleration)

Notifier signal:

void accelerationChanged(float acceleration)

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

Holds the current deceleration of the camera controller.

Returns a built-in Qt signal Qt3DExtras::QFirstPersonCameraController::decelerationChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the current deceleration of the camera controller.

Access functions:

float deceleration() const
void setDeceleration(float deceleration)

Notifier signal:

void decelerationChanged(float deceleration)

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

Holds the current acceleration of the camera controller.

Calls C++ function: float Qt3DExtras::QFirstPersonCameraController::acceleration() const.

C++ documentation:

Holds the current acceleration of the camera controller.

Access functions:

float acceleration() const
void setAcceleration(float acceleration)

Notifier signal:

void accelerationChanged(float acceleration)

pub unsafe fn camera(&self) -> QPtr<QCamera>[src]

Holds the currently controlled camera.

Calls C++ function: Qt3DRender::QCamera* Qt3DExtras::QFirstPersonCameraController::camera() const.

C++ documentation:

Holds the currently controlled camera.

Access functions:

Qt3DRender::QCamera *camera() const
void setCamera(Qt3DRender::QCamera *camera)

Notifier signal:

void cameraChanged()

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

Holds the current deceleration of the camera controller.

Calls C++ function: float Qt3DExtras::QFirstPersonCameraController::deceleration() const.

C++ documentation:

Holds the current deceleration of the camera controller.

Access functions:

float deceleration() const
void setDeceleration(float deceleration)

Notifier signal:

void decelerationChanged(float deceleration)

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

Holds the current linear speed of the camera controller. Linear speed determines the movement speed of the camera.

Calls C++ function: float Qt3DExtras::QFirstPersonCameraController::linearSpeed() const.

C++ documentation:

Holds the current linear speed of the camera controller. Linear speed determines the movement speed of the camera.

Access functions:

float linearSpeed() const
void setLinearSpeed(float linearSpeed)

Notifier signal:

void linearSpeedChanged()

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

Holds the current look speed of the camera controller. The look speed determines the turn rate of the camera pan and tilt.

Calls C++ function: float Qt3DExtras::QFirstPersonCameraController::lookSpeed() const.

C++ documentation:

Holds the current look speed of the camera controller. The look speed determines the turn rate of the camera pan and tilt.

Access functions:

float lookSpeed() const
void setLookSpeed(float lookSpeed)

Notifier signal:

void lookSpeedChanged()

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

Calls C++ function: virtual const QMetaObject* Qt3DExtras::QFirstPersonCameraController::metaObject() const.

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

Default constructs an instance of QFirstPersonCameraController.

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

C++ documentation:

Default constructs an instance of QFirstPersonCameraController.

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

The QFirstPersonCameraController class allows controlling the scene camera from the first person perspective.

Calls C++ function: [constructor] void Qt3DExtras::QFirstPersonCameraController::QFirstPersonCameraController().

C++ documentation:

The QFirstPersonCameraController class allows controlling the scene camera from the first person perspective.

The controls are:

InputAction
Left mouse buttonWhile the left mouse button is pressed, mouse movement along x-axis pans the camera and movement along y-axis tilts it.
Mouse scroll wheelZooms the camera in and out without changing the view center.
Shift keyTurns the fine motion control active while pressed. Makes mouse pan and tilt less sensitive.
Arrow keysMove the camera horizontally relative to camera viewport.
Page up and page down keysMove the camera vertically relative to camera viewport.

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

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

pub unsafe fn qt_metacast(&self, arg1: *const c_char) -> *mut c_void[src]

Calls C++ function: virtual void* Qt3DExtras::QFirstPersonCameraController::qt_metacast(const char* arg1).

pub unsafe fn set_acceleration(&self, acceleration: c_float)[src]

Holds the current acceleration of the camera controller.

Calls C++ function: void Qt3DExtras::QFirstPersonCameraController::setAcceleration(float acceleration).

C++ documentation:

Holds the current acceleration of the camera controller.

Access functions:

float acceleration() const
void setAcceleration(float acceleration)

Notifier signal:

void accelerationChanged(float acceleration)

pub unsafe fn set_camera(&self, camera: impl CastInto<Ptr<QCamera>>)[src]

Holds the currently controlled camera.

Calls C++ function: void Qt3DExtras::QFirstPersonCameraController::setCamera(Qt3DRender::QCamera* camera).

C++ documentation:

Holds the currently controlled camera.

Access functions:

Qt3DRender::QCamera *camera() const
void setCamera(Qt3DRender::QCamera *camera)

Notifier signal:

void cameraChanged()

pub unsafe fn set_deceleration(&self, deceleration: c_float)[src]

Holds the current deceleration of the camera controller.

Calls C++ function: void Qt3DExtras::QFirstPersonCameraController::setDeceleration(float deceleration).

C++ documentation:

Holds the current deceleration of the camera controller.

Access functions:

float deceleration() const
void setDeceleration(float deceleration)

Notifier signal:

void decelerationChanged(float deceleration)

pub unsafe fn set_linear_speed(&self, linear_speed: c_float)[src]

Holds the current linear speed of the camera controller. Linear speed determines the movement speed of the camera.

Calls C++ function: void Qt3DExtras::QFirstPersonCameraController::setLinearSpeed(float linearSpeed).

C++ documentation:

Holds the current linear speed of the camera controller. Linear speed determines the movement speed of the camera.

Access functions:

float linearSpeed() const
void setLinearSpeed(float linearSpeed)

Notifier signal:

void linearSpeedChanged()

pub unsafe fn set_look_speed(&self, look_speed: c_float)[src]

Holds the current look speed of the camera controller. The look speed determines the turn rate of the camera pan and tilt.

Calls C++ function: void Qt3DExtras::QFirstPersonCameraController::setLookSpeed(float lookSpeed).

C++ documentation:

Holds the current look speed of the camera controller. The look speed determines the turn rate of the camera pan and tilt.

Access functions:

float lookSpeed() const
void setLookSpeed(float lookSpeed)

Notifier signal:

void lookSpeedChanged()

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

Returns a reference to the staticMetaObject field.

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

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

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

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

Trait Implementations

impl CppDeletable for QFirstPersonCameraController[src]

unsafe fn delete(&self)[src]

Destroys the instance of QFirstPersonCameraController.

Calls C++ function: virtual [destructor] void Qt3DExtras::QFirstPersonCameraController::~QFirstPersonCameraController().

C++ documentation:

Destroys the instance of QFirstPersonCameraController.

impl Deref for QFirstPersonCameraController[src]

type Target = QEntity

The resulting type after dereferencing.

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

Calls C++ function: Qt3DCore::QEntity* static_cast<Qt3DCore::QEntity*>(Qt3DExtras::QFirstPersonCameraController* ptr).

impl DynamicCast<QFirstPersonCameraController> for QEntity[src]

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

Calls C++ function: Qt3DExtras::QFirstPersonCameraController* dynamic_cast<Qt3DExtras::QFirstPersonCameraController*>(Qt3DCore::QEntity* ptr).

impl DynamicCast<QFirstPersonCameraController> for QNode[src]

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

Calls C++ function: Qt3DExtras::QFirstPersonCameraController* dynamic_cast<Qt3DExtras::QFirstPersonCameraController*>(Qt3DCore::QNode* ptr).

impl DynamicCast<QFirstPersonCameraController> for QObject[src]

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

Calls C++ function: Qt3DExtras::QFirstPersonCameraController* dynamic_cast<Qt3DExtras::QFirstPersonCameraController*>(QObject* ptr).

impl DynamicCast<QFirstPersonCameraController> for QAbstractCameraController[src]

unsafe fn dynamic_cast(
    ptr: Ptr<QAbstractCameraController>
) -> Ptr<QFirstPersonCameraController>
[src]

Calls C++ function: Qt3DExtras::QFirstPersonCameraController* dynamic_cast<Qt3DExtras::QFirstPersonCameraController*>(Qt3DExtras::QAbstractCameraController* ptr).

impl StaticDowncast<QFirstPersonCameraController> for QEntity[src]

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

Calls C++ function: Qt3DExtras::QFirstPersonCameraController* static_cast<Qt3DExtras::QFirstPersonCameraController*>(Qt3DCore::QEntity* ptr).

impl StaticDowncast<QFirstPersonCameraController> for QNode[src]

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

Calls C++ function: Qt3DExtras::QFirstPersonCameraController* static_cast<Qt3DExtras::QFirstPersonCameraController*>(Qt3DCore::QNode* ptr).

impl StaticDowncast<QFirstPersonCameraController> for QObject[src]

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

Calls C++ function: Qt3DExtras::QFirstPersonCameraController* static_cast<Qt3DExtras::QFirstPersonCameraController*>(QObject* ptr).

impl StaticDowncast<QFirstPersonCameraController> for QAbstractCameraController[src]

unsafe fn static_downcast(
    ptr: Ptr<QAbstractCameraController>
) -> Ptr<QFirstPersonCameraController>
[src]

Calls C++ function: Qt3DExtras::QFirstPersonCameraController* static_cast<Qt3DExtras::QFirstPersonCameraController*>(Qt3DExtras::QAbstractCameraController* ptr).

impl StaticUpcast<QAbstractCameraController> for QFirstPersonCameraController[src]

unsafe fn static_upcast(
    ptr: Ptr<QFirstPersonCameraController>
) -> Ptr<QAbstractCameraController>
[src]

Calls C++ function: Qt3DExtras::QAbstractCameraController* static_cast<Qt3DExtras::QAbstractCameraController*>(Qt3DExtras::QFirstPersonCameraController* ptr).

impl StaticUpcast<QEntity> for QFirstPersonCameraController[src]

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

Calls C++ function: Qt3DCore::QEntity* static_cast<Qt3DCore::QEntity*>(Qt3DExtras::QFirstPersonCameraController* ptr).

impl StaticUpcast<QNode> for QFirstPersonCameraController[src]

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

Calls C++ function: Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QFirstPersonCameraController* ptr).

impl StaticUpcast<QObject> for QFirstPersonCameraController[src]

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

Calls C++ function: QObject* static_cast<QObject*>(Qt3DExtras::QFirstPersonCameraController* ptr).

Auto Trait Implementations

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.