[−][src]Struct qt_3d_extras::QAbstractCameraController
The QAbstractCameraController class provides basic functionality for camera controllers.
C++ class: Qt3DExtras::QAbstractCameraController
.
The QAbstractCameraController class provides basic functionality for camera controllers.
QAbstractCameraController sets up and handles input from keyboard, mouse, and other devices. QAbstractCameraController is an abstract class and cannot itself be instantiated. It provides a standard interface for camera controllers.
Derived classes need only implement the frameActionTriggered() method to move the camera.
Methods
impl QAbstractCameraController
[src]
pub fn camera_changed(&self) -> Signal<()>
[src]
cpp_lib_version="5.11.3"
or cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.Holds the currently controlled camera.
Returns a built-in Qt signal Qt3DExtras::QAbstractCameraController::cameraChanged
that can be passed to qt_core::Signal::connect
.
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]
cpp_lib_version="5.11.3"
or cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.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::QAbstractCameraController::linearSpeedChanged
that can be passed to qt_core::Signal::connect
.
Holds the current linear speed of the camera controller. Linear speed determines the movement speed of the camera.
The default is 10.0
.
Access functions:
float | linearSpeed() const |
void | setLinearSpeed(float linearSpeed) |
Notifier signal:
void | linearSpeedChanged() |
pub fn look_speed_changed(&self) -> Signal<()>
[src]
cpp_lib_version="5.11.3"
or cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.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::QAbstractCameraController::lookSpeedChanged
that can be passed to qt_core::Signal::connect
.
Holds the current look speed of the camera controller. The look speed determines the turn rate of the camera pan and tilt.
The default is 180.0
.
Access functions:
float | lookSpeed() const |
void | setLookSpeed(float lookSpeed) |
Notifier signal:
void | lookSpeedChanged() |
pub fn acceleration_changed(&self) -> Signal<(c_float,)>
[src]
cpp_lib_version="5.11.3"
or cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.Holds the current acceleration of the camera controller.
Returns a built-in Qt signal Qt3DExtras::QAbstractCameraController::accelerationChanged
that can be passed to qt_core::Signal::connect
.
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]
cpp_lib_version="5.11.3"
or cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.Holds the current deceleration of the camera controller.
Returns a built-in Qt signal Qt3DExtras::QAbstractCameraController::decelerationChanged
that can be passed to qt_core::Signal::connect
.
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]
cpp_lib_version="5.11.3"
or cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.Holds the current acceleration of the camera controller.
Calls C++ function: float Qt3DExtras::QAbstractCameraController::acceleration() const
.
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]
cpp_lib_version="5.11.3"
or cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.Holds the currently controlled camera.
Calls C++ function: Qt3DRender::QCamera* Qt3DExtras::QAbstractCameraController::camera() const
.
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]
cpp_lib_version="5.11.3"
or cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.Holds the current deceleration of the camera controller.
Calls C++ function: float Qt3DExtras::QAbstractCameraController::deceleration() const
.
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]
cpp_lib_version="5.11.3"
or cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.Holds the current linear speed of the camera controller. Linear speed determines the movement speed of the camera.
Calls C++ function: float Qt3DExtras::QAbstractCameraController::linearSpeed() const
.
Holds the current linear speed of the camera controller. Linear speed determines the movement speed of the camera.
The default is 10.0
.
Access functions:
float | linearSpeed() const |
void | setLinearSpeed(float linearSpeed) |
Notifier signal:
void | linearSpeedChanged() |
pub unsafe fn look_speed(&self) -> c_float
[src]
cpp_lib_version="5.11.3"
or cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.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::QAbstractCameraController::lookSpeed() const
.
Holds the current look speed of the camera controller. The look speed determines the turn rate of the camera pan and tilt.
The default is 180.0
.
Access functions:
float | lookSpeed() const |
void | setLookSpeed(float lookSpeed) |
Notifier signal:
void | lookSpeedChanged() |
pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>
[src]
cpp_lib_version="5.11.3"
or cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.Calls C++ function: virtual const QMetaObject* Qt3DExtras::QAbstractCameraController::metaObject() const
.
pub unsafe fn qt_metacall(
&self,
arg1: Call,
arg2: c_int,
arg3: *mut *mut c_void
) -> c_int
[src]
&self,
arg1: Call,
arg2: c_int,
arg3: *mut *mut c_void
) -> c_int
cpp_lib_version="5.11.3"
or cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.Calls C++ function: virtual int Qt3DExtras::QAbstractCameraController::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)
.
pub unsafe fn qt_metacast(&self, arg1: *const c_char) -> *mut c_void
[src]
cpp_lib_version="5.11.3"
or cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.Calls C++ function: virtual void* Qt3DExtras::QAbstractCameraController::qt_metacast(const char* arg1)
.
pub unsafe fn set_acceleration(&self, acceleration: c_float)
[src]
cpp_lib_version="5.11.3"
or cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.Holds the current acceleration of the camera controller.
Calls C++ function: void Qt3DExtras::QAbstractCameraController::setAcceleration(float acceleration)
.
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]
cpp_lib_version="5.11.3"
or cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.Holds the currently controlled camera.
Calls C++ function: void Qt3DExtras::QAbstractCameraController::setCamera(Qt3DRender::QCamera* camera)
.
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]
cpp_lib_version="5.11.3"
or cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.Holds the current deceleration of the camera controller.
Calls C++ function: void Qt3DExtras::QAbstractCameraController::setDeceleration(float deceleration)
.
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]
cpp_lib_version="5.11.3"
or cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.Holds the current linear speed of the camera controller. Linear speed determines the movement speed of the camera.
Calls C++ function: void Qt3DExtras::QAbstractCameraController::setLinearSpeed(float linearSpeed)
.
Holds the current linear speed of the camera controller. Linear speed determines the movement speed of the camera.
The default is 10.0
.
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]
cpp_lib_version="5.11.3"
or cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.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::QAbstractCameraController::setLookSpeed(float lookSpeed)
.
Holds the current look speed of the camera controller. The look speed determines the turn rate of the camera pan and tilt.
The default is 180.0
.
Access functions:
float | lookSpeed() const |
void | setLookSpeed(float lookSpeed) |
Notifier signal:
void | lookSpeedChanged() |
pub unsafe fn static_meta_object() -> Ref<QMetaObject>
[src]
cpp_lib_version="5.11.3"
or cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.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]
s: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
cpp_lib_version="5.11.3"
or cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.Calls C++ function: static QString Qt3DExtras::QAbstractCameraController::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]
s: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
cpp_lib_version="5.11.3"
or cpp_lib_version="5.12.2"
or cpp_lib_version="5.13.0"
or cpp_lib_version="5.14.0"
only.Calls C++ function: static QString Qt3DExtras::QAbstractCameraController::trUtf8(const char* s, const char* c, int n)
.
Trait Implementations
impl CppDeletable for QAbstractCameraController
[src]
unsafe fn delete(&self)
[src]
Destroys the instance of QAbstractCameraController. The destructor is virtual.
Calls C++ function: virtual [destructor] void Qt3DExtras::QAbstractCameraController::~QAbstractCameraController()
.
Destroys the instance of QAbstractCameraController. The destructor is virtual.
impl Deref for QAbstractCameraController
[src]
type Target = QEntity
The resulting type after dereferencing.
fn deref(&self) -> &QEntity
[src]
Calls C++ function: Qt3DCore::QEntity* static_cast<Qt3DCore::QEntity*>(Qt3DExtras::QAbstractCameraController* ptr)
.
impl DynamicCast<QAbstractCameraController> for QEntity
[src]
unsafe fn dynamic_cast(ptr: Ptr<QEntity>) -> Ptr<QAbstractCameraController>
[src]
Calls C++ function: Qt3DExtras::QAbstractCameraController* dynamic_cast<Qt3DExtras::QAbstractCameraController*>(Qt3DCore::QEntity* ptr)
.
impl DynamicCast<QAbstractCameraController> for QNode
[src]
unsafe fn dynamic_cast(ptr: Ptr<QNode>) -> Ptr<QAbstractCameraController>
[src]
Calls C++ function: Qt3DExtras::QAbstractCameraController* dynamic_cast<Qt3DExtras::QAbstractCameraController*>(Qt3DCore::QNode* ptr)
.
impl DynamicCast<QAbstractCameraController> for QObject
[src]
unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QAbstractCameraController>
[src]
Calls C++ function: Qt3DExtras::QAbstractCameraController* dynamic_cast<Qt3DExtras::QAbstractCameraController*>(QObject* ptr)
.
impl DynamicCast<QFirstPersonCameraController> for QAbstractCameraController
[src]
unsafe fn dynamic_cast(
ptr: Ptr<QAbstractCameraController>
) -> Ptr<QFirstPersonCameraController>
[src]
ptr: Ptr<QAbstractCameraController>
) -> Ptr<QFirstPersonCameraController>
Calls C++ function: Qt3DExtras::QFirstPersonCameraController* dynamic_cast<Qt3DExtras::QFirstPersonCameraController*>(Qt3DExtras::QAbstractCameraController* ptr)
.
impl DynamicCast<QOrbitCameraController> for QAbstractCameraController
[src]
unsafe fn dynamic_cast(
ptr: Ptr<QAbstractCameraController>
) -> Ptr<QOrbitCameraController>
[src]
ptr: Ptr<QAbstractCameraController>
) -> Ptr<QOrbitCameraController>
Calls C++ function: Qt3DExtras::QOrbitCameraController* dynamic_cast<Qt3DExtras::QOrbitCameraController*>(Qt3DExtras::QAbstractCameraController* ptr)
.
impl StaticDowncast<QAbstractCameraController> for QEntity
[src]
unsafe fn static_downcast(ptr: Ptr<QEntity>) -> Ptr<QAbstractCameraController>
[src]
Calls C++ function: Qt3DExtras::QAbstractCameraController* static_cast<Qt3DExtras::QAbstractCameraController*>(Qt3DCore::QEntity* ptr)
.
impl StaticDowncast<QAbstractCameraController> for QNode
[src]
unsafe fn static_downcast(ptr: Ptr<QNode>) -> Ptr<QAbstractCameraController>
[src]
Calls C++ function: Qt3DExtras::QAbstractCameraController* static_cast<Qt3DExtras::QAbstractCameraController*>(Qt3DCore::QNode* ptr)
.
impl StaticDowncast<QAbstractCameraController> for QObject
[src]
unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QAbstractCameraController>
[src]
Calls C++ function: Qt3DExtras::QAbstractCameraController* static_cast<Qt3DExtras::QAbstractCameraController*>(QObject* ptr)
.
impl StaticDowncast<QFirstPersonCameraController> for QAbstractCameraController
[src]
unsafe fn static_downcast(
ptr: Ptr<QAbstractCameraController>
) -> Ptr<QFirstPersonCameraController>
[src]
ptr: Ptr<QAbstractCameraController>
) -> Ptr<QFirstPersonCameraController>
Calls C++ function: Qt3DExtras::QFirstPersonCameraController* static_cast<Qt3DExtras::QFirstPersonCameraController*>(Qt3DExtras::QAbstractCameraController* ptr)
.
impl StaticDowncast<QOrbitCameraController> for QAbstractCameraController
[src]
unsafe fn static_downcast(
ptr: Ptr<QAbstractCameraController>
) -> Ptr<QOrbitCameraController>
[src]
ptr: Ptr<QAbstractCameraController>
) -> Ptr<QOrbitCameraController>
Calls C++ function: Qt3DExtras::QOrbitCameraController* static_cast<Qt3DExtras::QOrbitCameraController*>(Qt3DExtras::QAbstractCameraController* ptr)
.
impl StaticUpcast<QAbstractCameraController> for QFirstPersonCameraController
[src]
unsafe fn static_upcast(
ptr: Ptr<QFirstPersonCameraController>
) -> Ptr<QAbstractCameraController>
[src]
ptr: Ptr<QFirstPersonCameraController>
) -> Ptr<QAbstractCameraController>
Calls C++ function: Qt3DExtras::QAbstractCameraController* static_cast<Qt3DExtras::QAbstractCameraController*>(Qt3DExtras::QFirstPersonCameraController* ptr)
.
impl StaticUpcast<QAbstractCameraController> for QOrbitCameraController
[src]
unsafe fn static_upcast(
ptr: Ptr<QOrbitCameraController>
) -> Ptr<QAbstractCameraController>
[src]
ptr: Ptr<QOrbitCameraController>
) -> Ptr<QAbstractCameraController>
Calls C++ function: Qt3DExtras::QAbstractCameraController* static_cast<Qt3DExtras::QAbstractCameraController*>(Qt3DExtras::QOrbitCameraController* ptr)
.
impl StaticUpcast<QEntity> for QAbstractCameraController
[src]
unsafe fn static_upcast(ptr: Ptr<QAbstractCameraController>) -> Ptr<QEntity>
[src]
Calls C++ function: Qt3DCore::QEntity* static_cast<Qt3DCore::QEntity*>(Qt3DExtras::QAbstractCameraController* ptr)
.
impl StaticUpcast<QNode> for QAbstractCameraController
[src]
unsafe fn static_upcast(ptr: Ptr<QAbstractCameraController>) -> Ptr<QNode>
[src]
Calls C++ function: Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QAbstractCameraController* ptr)
.
impl StaticUpcast<QObject> for QAbstractCameraController
[src]
unsafe fn static_upcast(ptr: Ptr<QAbstractCameraController>) -> Ptr<QObject>
[src]
Calls C++ function: QObject* static_cast<QObject*>(Qt3DExtras::QAbstractCameraController* ptr)
.
Auto Trait Implementations
impl RefUnwindSafe for QAbstractCameraController
impl Send for QAbstractCameraController
impl Sync for QAbstractCameraController
impl Unpin for QAbstractCameraController
impl UnwindSafe for QAbstractCameraController
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,