[−][src]Struct qt_3d_extras::QOrbitCameraController
The QOrbitCameraController class allows controlling the scene camera along orbital path.
C++ class: Qt3DExtras::QOrbitCameraController
.
The QOrbitCameraController class allows controlling the scene camera along orbital path.
The controls are:
Input | Action |
---|---|
Left mouse button | While the left mouse button is pressed, mouse movement along x-axis moves the camera left and right and movement along y-axis moves it up and down. |
Right mouse button | While the right mouse button is pressed, mouse movement along x-axis pans the camera around the camera view center and movement along y-axis tilts it around the camera view center. |
Both left and right mouse button | While both the left and the right mouse button are pressed, mouse movement along y-axis zooms the camera in and out without changing the view center. |
Mouse scroll wheel | Zooms the camera in and out without changing the view center. |
Arrow keys | Move the camera vertically and horizontally relative to camera viewport. |
Page up and page down keys | Move the camera forwards and backwards. |
Shift key | Changes the behavior of the up and down arrow keys to zoom the camera in and out without changing the view center. The other movement keys are disabled. |
Alt key | Changes the behovior of the arrow keys to pan and tilt the camera around the view center. Disables the page up and page down keys. |
Methods
impl QOrbitCameraController
[src]
pub fn camera_changed(&self) -> Signal<()>
[src]
Holds the currently controlled camera.
Returns a built-in Qt signal Qt3DExtras::QOrbitCameraController::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]
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::QOrbitCameraController::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.
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::QOrbitCameraController::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.
Access functions:
float | lookSpeed() const |
void | setLookSpeed(float lookSpeed) |
Notifier signal:
void | lookSpeedChanged() |
pub fn zoom_in_limit_changed(&self) -> Signal<()>
[src]
Holds the current zoom-in limit. The zoom-in limit determines how close to the view center the camera can be zoomed.
Returns a built-in Qt signal Qt3DExtras::QOrbitCameraController::zoomInLimitChanged
that can be passed to qt_core::Signal::connect
.
Holds the current zoom-in limit. The zoom-in limit determines how close to the view center the camera can be zoomed.
Access functions:
float | zoomInLimit() const |
void | setZoomInLimit(float zoomInLimit) |
Notifier signal:
void | zoomInLimitChanged() |
pub unsafe fn camera(&self) -> QMutPtr<QCamera>
[src]
Holds the currently controlled camera.
Calls C++ function: Qt3DRender::QCamera* Qt3DExtras::QOrbitCameraController::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 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::QOrbitCameraController::linearSpeed() const
.
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::QOrbitCameraController::lookSpeed() const
.
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::QOrbitCameraController::metaObject() const
.
pub unsafe fn new_1a(
parent: impl CastInto<MutPtr<QNode>>
) -> QBox<QOrbitCameraController>
[src]
parent: impl CastInto<MutPtr<QNode>>
) -> QBox<QOrbitCameraController>
Default constructs an instance of QOrbitCameraController.
Calls C++ function: [constructor] void Qt3DExtras::QOrbitCameraController::QOrbitCameraController(Qt3DCore::QNode* parent = …)
.
Default constructs an instance of QOrbitCameraController.
pub unsafe fn new_0a() -> QBox<QOrbitCameraController>
[src]
The QOrbitCameraController class allows controlling the scene camera along orbital path.
Calls C++ function: [constructor] void Qt3DExtras::QOrbitCameraController::QOrbitCameraController()
.
The QOrbitCameraController class allows controlling the scene camera along orbital path.
The controls are:
Input | Action |
---|---|
Left mouse button | While the left mouse button is pressed, mouse movement along x-axis moves the camera left and right and movement along y-axis moves it up and down. |
Right mouse button | While the right mouse button is pressed, mouse movement along x-axis pans the camera around the camera view center and movement along y-axis tilts it around the camera view center. |
Both left and right mouse button | While both the left and the right mouse button are pressed, mouse movement along y-axis zooms the camera in and out without changing the view center. |
Mouse scroll wheel | Zooms the camera in and out without changing the view center. |
Arrow keys | Move the camera vertically and horizontally relative to camera viewport. |
Page up and page down keys | Move the camera forwards and backwards. |
Shift key | Changes the behavior of the up and down arrow keys to zoom the camera in and out without changing the view center. The other movement keys are disabled. |
Alt key | Changes the behovior of the arrow keys to pan and tilt the camera around the view center. Disables the page up and page down keys. |
pub unsafe fn qt_metacall(
&mut self,
arg1: Call,
arg2: c_int,
arg3: impl CastInto<MutPtr<*mut c_void>>
) -> c_int
[src]
&mut self,
arg1: Call,
arg2: c_int,
arg3: impl CastInto<MutPtr<*mut c_void>>
) -> c_int
Calls C++ function: virtual int Qt3DExtras::QOrbitCameraController::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]
&mut self,
arg1: impl CastInto<Ptr<c_char>>
) -> MutPtr<c_void>
Calls C++ function: virtual void* Qt3DExtras::QOrbitCameraController::qt_metacast(const char* arg1)
.
pub unsafe fn set_camera(&mut self, camera: impl CastInto<MutPtr<QCamera>>)
[src]
Holds the currently controlled camera.
Calls C++ function: void Qt3DExtras::QOrbitCameraController::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_linear_speed(&mut 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::QOrbitCameraController::setLinearSpeed(float linearSpeed)
.
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(&mut 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::QOrbitCameraController::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.
Access functions:
float | lookSpeed() const |
void | setLookSpeed(float lookSpeed) |
Notifier signal:
void | lookSpeedChanged() |
pub unsafe fn set_zoom_in_limit(&mut self, zoom_in_limit: c_float)
[src]
Holds the current zoom-in limit. The zoom-in limit determines how close to the view center the camera can be zoomed.
Calls C++ function: void Qt3DExtras::QOrbitCameraController::setZoomInLimit(float zoomInLimit)
.
Holds the current zoom-in limit. The zoom-in limit determines how close to the view center the camera can be zoomed.
Access functions:
float | zoomInLimit() const |
void | setZoomInLimit(float zoomInLimit) |
Notifier signal:
void | zoomInLimitChanged() |
pub unsafe fn static_meta_object() -> Ref<QMetaObject>
[src]
Returns a reference to the staticMetaObject
field.
pub unsafe fn tr(
s: impl CastInto<Ptr<c_char>>,
c: impl CastInto<Ptr<c_char>>,
n: c_int
) -> CppBox<QString>
[src]
s: impl CastInto<Ptr<c_char>>,
c: impl CastInto<Ptr<c_char>>,
n: c_int
) -> CppBox<QString>
Calls C++ function: static QString Qt3DExtras::QOrbitCameraController::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]
s: impl CastInto<Ptr<c_char>>,
c: impl CastInto<Ptr<c_char>>,
n: c_int
) -> CppBox<QString>
Calls C++ function: static QString Qt3DExtras::QOrbitCameraController::trUtf8(const char* s, const char* c, int n)
.
pub unsafe fn zoom_in_limit(&self) -> c_float
[src]
Holds the current zoom-in limit. The zoom-in limit determines how close to the view center the camera can be zoomed.
Calls C++ function: float Qt3DExtras::QOrbitCameraController::zoomInLimit() const
.
Holds the current zoom-in limit. The zoom-in limit determines how close to the view center the camera can be zoomed.
Access functions:
float | zoomInLimit() const |
void | setZoomInLimit(float zoomInLimit) |
Notifier signal:
void | zoomInLimitChanged() |
Trait Implementations
impl CppDeletable for QOrbitCameraController
[src]
unsafe fn delete(&mut self)
[src]
Destroys the instance of QOrbitCameraController.
Calls C++ function: virtual [destructor] void Qt3DExtras::QOrbitCameraController::~QOrbitCameraController()
.
Destroys the instance of QOrbitCameraController.
impl Deref for QOrbitCameraController
[src]
type Target = QEntity
The resulting type after dereferencing.
fn deref(&self) -> &QEntity
[src]
Calls C++ function: Qt3DCore::QEntity* static_cast<Qt3DCore::QEntity*>(Qt3DExtras::QOrbitCameraController* ptr)
.
impl DerefMut for QOrbitCameraController
[src]
fn deref_mut(&mut self) -> &mut QEntity
[src]
Calls C++ function: Qt3DCore::QEntity* static_cast<Qt3DCore::QEntity*>(Qt3DExtras::QOrbitCameraController* ptr)
.
impl DynamicCast<QOrbitCameraController> for QEntity
[src]
unsafe fn dynamic_cast(ptr: Ptr<QEntity>) -> Ptr<QOrbitCameraController>
[src]
Calls C++ function: Qt3DExtras::QOrbitCameraController* dynamic_cast<Qt3DExtras::QOrbitCameraController*>(Qt3DCore::QEntity* ptr)
.
unsafe fn dynamic_cast_mut(
ptr: MutPtr<QEntity>
) -> MutPtr<QOrbitCameraController>
[src]
ptr: MutPtr<QEntity>
) -> MutPtr<QOrbitCameraController>
Calls C++ function: Qt3DExtras::QOrbitCameraController* dynamic_cast<Qt3DExtras::QOrbitCameraController*>(Qt3DCore::QEntity* ptr)
.
impl DynamicCast<QOrbitCameraController> for QNode
[src]
unsafe fn dynamic_cast(ptr: Ptr<QNode>) -> Ptr<QOrbitCameraController>
[src]
Calls C++ function: Qt3DExtras::QOrbitCameraController* dynamic_cast<Qt3DExtras::QOrbitCameraController*>(Qt3DCore::QNode* ptr)
.
unsafe fn dynamic_cast_mut(ptr: MutPtr<QNode>) -> MutPtr<QOrbitCameraController>
[src]
Calls C++ function: Qt3DExtras::QOrbitCameraController* dynamic_cast<Qt3DExtras::QOrbitCameraController*>(Qt3DCore::QNode* ptr)
.
impl DynamicCast<QOrbitCameraController> for QObject
[src]
unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QOrbitCameraController>
[src]
Calls C++ function: Qt3DExtras::QOrbitCameraController* dynamic_cast<Qt3DExtras::QOrbitCameraController*>(QObject* ptr)
.
unsafe fn dynamic_cast_mut(
ptr: MutPtr<QObject>
) -> MutPtr<QOrbitCameraController>
[src]
ptr: MutPtr<QObject>
) -> MutPtr<QOrbitCameraController>
Calls C++ function: Qt3DExtras::QOrbitCameraController* dynamic_cast<Qt3DExtras::QOrbitCameraController*>(QObject* 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)
.
unsafe fn dynamic_cast_mut(
ptr: MutPtr<QAbstractCameraController>
) -> MutPtr<QOrbitCameraController>
[src]
ptr: MutPtr<QAbstractCameraController>
) -> MutPtr<QOrbitCameraController>
Calls C++ function: Qt3DExtras::QOrbitCameraController* dynamic_cast<Qt3DExtras::QOrbitCameraController*>(Qt3DExtras::QAbstractCameraController* ptr)
.
impl StaticDowncast<QOrbitCameraController> for QEntity
[src]
unsafe fn static_downcast(ptr: Ptr<QEntity>) -> Ptr<QOrbitCameraController>
[src]
Calls C++ function: Qt3DExtras::QOrbitCameraController* static_cast<Qt3DExtras::QOrbitCameraController*>(Qt3DCore::QEntity* ptr)
.
unsafe fn static_downcast_mut(
ptr: MutPtr<QEntity>
) -> MutPtr<QOrbitCameraController>
[src]
ptr: MutPtr<QEntity>
) -> MutPtr<QOrbitCameraController>
Calls C++ function: Qt3DExtras::QOrbitCameraController* static_cast<Qt3DExtras::QOrbitCameraController*>(Qt3DCore::QEntity* ptr)
.
impl StaticDowncast<QOrbitCameraController> for QNode
[src]
unsafe fn static_downcast(ptr: Ptr<QNode>) -> Ptr<QOrbitCameraController>
[src]
Calls C++ function: Qt3DExtras::QOrbitCameraController* static_cast<Qt3DExtras::QOrbitCameraController*>(Qt3DCore::QNode* ptr)
.
unsafe fn static_downcast_mut(
ptr: MutPtr<QNode>
) -> MutPtr<QOrbitCameraController>
[src]
ptr: MutPtr<QNode>
) -> MutPtr<QOrbitCameraController>
Calls C++ function: Qt3DExtras::QOrbitCameraController* static_cast<Qt3DExtras::QOrbitCameraController*>(Qt3DCore::QNode* ptr)
.
impl StaticDowncast<QOrbitCameraController> for QObject
[src]
unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QOrbitCameraController>
[src]
Calls C++ function: Qt3DExtras::QOrbitCameraController* static_cast<Qt3DExtras::QOrbitCameraController*>(QObject* ptr)
.
unsafe fn static_downcast_mut(
ptr: MutPtr<QObject>
) -> MutPtr<QOrbitCameraController>
[src]
ptr: MutPtr<QObject>
) -> MutPtr<QOrbitCameraController>
Calls C++ function: Qt3DExtras::QOrbitCameraController* static_cast<Qt3DExtras::QOrbitCameraController*>(QObject* 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)
.
unsafe fn static_downcast_mut(
ptr: MutPtr<QAbstractCameraController>
) -> MutPtr<QOrbitCameraController>
[src]
ptr: MutPtr<QAbstractCameraController>
) -> MutPtr<QOrbitCameraController>
Calls C++ function: Qt3DExtras::QOrbitCameraController* static_cast<Qt3DExtras::QOrbitCameraController*>(Qt3DExtras::QAbstractCameraController* 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)
.
unsafe fn static_upcast_mut(
ptr: MutPtr<QOrbitCameraController>
) -> MutPtr<QAbstractCameraController>
[src]
ptr: MutPtr<QOrbitCameraController>
) -> MutPtr<QAbstractCameraController>
Calls C++ function: Qt3DExtras::QAbstractCameraController* static_cast<Qt3DExtras::QAbstractCameraController*>(Qt3DExtras::QOrbitCameraController* ptr)
.
impl StaticUpcast<QEntity> for QOrbitCameraController
[src]
unsafe fn static_upcast(ptr: Ptr<QOrbitCameraController>) -> Ptr<QEntity>
[src]
Calls C++ function: Qt3DCore::QEntity* static_cast<Qt3DCore::QEntity*>(Qt3DExtras::QOrbitCameraController* ptr)
.
unsafe fn static_upcast_mut(
ptr: MutPtr<QOrbitCameraController>
) -> MutPtr<QEntity>
[src]
ptr: MutPtr<QOrbitCameraController>
) -> MutPtr<QEntity>
Calls C++ function: Qt3DCore::QEntity* static_cast<Qt3DCore::QEntity*>(Qt3DExtras::QOrbitCameraController* ptr)
.
impl StaticUpcast<QNode> for QOrbitCameraController
[src]
unsafe fn static_upcast(ptr: Ptr<QOrbitCameraController>) -> Ptr<QNode>
[src]
Calls C++ function: Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QOrbitCameraController* ptr)
.
unsafe fn static_upcast_mut(
ptr: MutPtr<QOrbitCameraController>
) -> MutPtr<QNode>
[src]
ptr: MutPtr<QOrbitCameraController>
) -> MutPtr<QNode>
Calls C++ function: Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QOrbitCameraController* ptr)
.
impl StaticUpcast<QObject> for QOrbitCameraController
[src]
unsafe fn static_upcast(ptr: Ptr<QOrbitCameraController>) -> Ptr<QObject>
[src]
Calls C++ function: QObject* static_cast<QObject*>(Qt3DExtras::QOrbitCameraController* ptr)
.
unsafe fn static_upcast_mut(
ptr: MutPtr<QOrbitCameraController>
) -> MutPtr<QObject>
[src]
ptr: MutPtr<QOrbitCameraController>
) -> MutPtr<QObject>
Calls C++ function: QObject* static_cast<QObject*>(Qt3DExtras::QOrbitCameraController* ptr)
.
Auto Trait Implementations
impl RefUnwindSafe for QOrbitCameraController
impl Send for QOrbitCameraController
impl Sync for QOrbitCameraController
impl Unpin for QOrbitCameraController
impl UnwindSafe for QOrbitCameraController
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]
unsafe fn static_upcast_mut(ptr: MutPtr<T>) -> MutPtr<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>,