[][src]Struct qt_3d_input::QAxisAccumulator

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

Constructs a new QAxisAccumulator instance with parent.

C++ class: Qt3DInput::QAxisAccumulator.

C++ documentation:

Constructs a new QAxisAccumulator instance with parent.

QAxisAccumulator processes velocity or acceleration data from a QAxis.

A Qt3DInput::QAxis reports the current position of an axis on an input device. When the axis is returned to its neutral position the value of that axis returns to 0. Often, it is required to have the input from an axis control a variable in other ways, for example treating the value from the Qt3DInput::QAxis as a velocity (first derivative with respect to time) or as an acceleration (second derivative with respect to time). This can be done with user code or with a Qt3DLogic::QFrameAction but those approached are not ideal as they add more work to the main thread and are inherently imperative. The Qt3DInput::QAxisAccumulator class allows for this common task to be performed on the Qt 3D backend and be specified in a declarative manner.

Methods

impl QAxisAccumulator[src]

pub fn slot_set_source_axis(&self) -> Receiver<(*mut QAxis,)>[src]

Access functions:

Returns a built-in Qt slot Qt3DInput::QAxisAccumulator::setSourceAxis that can be passed to qt_core::Signal::connect.

C++ documentation:

Access functions:

Qt3DInput::QAxis *sourceAxis() const
void setSourceAxis(Qt3DInput::QAxis *sourceAxis)

Notifier signal:

void sourceAxisChanged(Qt3DInput::QAxis *sourceAxis)

pub fn slot_set_source_axis_type(&self) -> Receiver<(SourceAxisType,)>[src]

Sets how the accumulator treats the values originating from the sourceAxisType.

Returns a built-in Qt slot Qt3DInput::QAxisAccumulator::setSourceAxisType that can be passed to qt_core::Signal::connect.

C++ documentation:

Sets how the accumulator treats the values originating from the sourceAxisType.

Note: Setter function for property sourceAxisType.

See also sourceAxisType().

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

Access functions:

Returns a built-in Qt slot Qt3DInput::QAxisAccumulator::setScale that can be passed to qt_core::Signal::connect.

C++ documentation:

Access functions:

float scale() const
void setScale(float scale)

Notifier signal:

void scaleChanged(float scale)

pub fn source_axis_changed(&self) -> Signal<(*mut QAxis,)>[src]

Access functions:

Returns a built-in Qt signal Qt3DInput::QAxisAccumulator::sourceAxisChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Access functions:

Qt3DInput::QAxis *sourceAxis() const
void setSourceAxis(Qt3DInput::QAxis *sourceAxis)

Notifier signal:

void sourceAxisChanged(Qt3DInput::QAxis *sourceAxis)

pub fn source_axis_type_changed(&self) -> Signal<(SourceAxisType,)>[src]

Access functions:

Returns a built-in Qt signal Qt3DInput::QAxisAccumulator::sourceAxisTypeChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Access functions:

SourceAxisType sourceAxisType() const
void setSourceAxisType(QAxisAccumulator::SourceAxisType sourceAxisType)

Notifier signal:

void sourceAxisTypeChanged(QAxisAccumulator::SourceAxisType sourceAxisType)

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

Returns the accumulated (integrated) value.

Returns a built-in Qt signal Qt3DInput::QAxisAccumulator::valueChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Returns the accumulated (integrated) value.

Access functions:

float value() const

Notifier signal:

void valueChanged(float value)

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

Access functions:

Returns a built-in Qt signal Qt3DInput::QAxisAccumulator::velocityChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Access functions:

float velocity() const

Notifier signal:

void velocityChanged(float value)

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

Access functions:

Returns a built-in Qt signal Qt3DInput::QAxisAccumulator::scaleChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Access functions:

float scale() const
void setScale(float scale)

Notifier signal:

void scaleChanged(float scale)

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

Calls C++ function: virtual const QMetaObject* Qt3DInput::QAxisAccumulator::metaObject() const.

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

Constructs a new QAxisAccumulator instance with parent parent.

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

C++ documentation:

Constructs a new QAxisAccumulator instance with parent parent.

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

Constructs a new QAxisAccumulator instance with parent.

Calls C++ function: [constructor] void Qt3DInput::QAxisAccumulator::QAxisAccumulator().

C++ documentation:

Constructs a new QAxisAccumulator instance with parent.

QAxisAccumulator processes velocity or acceleration data from a QAxis.

A Qt3DInput::QAxis reports the current position of an axis on an input device. When the axis is returned to its neutral position the value of that axis returns to 0. Often, it is required to have the input from an axis control a variable in other ways, for example treating the value from the Qt3DInput::QAxis as a velocity (first derivative with respect to time) or as an acceleration (second derivative with respect to time). This can be done with user code or with a Qt3DLogic::QFrameAction but those approached are not ideal as they add more work to the main thread and are inherently imperative. The Qt3DInput::QAxisAccumulator class allows for this common task to be performed on the Qt 3D backend and be specified in a declarative manner.

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

Calls C++ function: virtual int Qt3DInput::QAxisAccumulator::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* Qt3DInput::QAxisAccumulator::qt_metacast(const char* arg1).

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

Access functions:

Calls C++ function: float Qt3DInput::QAxisAccumulator::scale() const.

C++ documentation:

Access functions:

float scale() const
void setScale(float scale)

Notifier signal:

void scaleChanged(float scale)

pub unsafe fn set_scale(&self, scale: c_float)[src]

Access functions:

Calls C++ function: [slot] void Qt3DInput::QAxisAccumulator::setScale(float scale).

C++ documentation:

Access functions:

float scale() const
void setScale(float scale)

Notifier signal:

void scaleChanged(float scale)

pub unsafe fn set_source_axis(&self, source_axis: impl CastInto<Ptr<QAxis>>)[src]

Access functions:

Calls C++ function: [slot] void Qt3DInput::QAxisAccumulator::setSourceAxis(Qt3DInput::QAxis* sourceAxis).

C++ documentation:

Access functions:

Qt3DInput::QAxis *sourceAxis() const
void setSourceAxis(Qt3DInput::QAxis *sourceAxis)

Notifier signal:

void sourceAxisChanged(Qt3DInput::QAxis *sourceAxis)

pub unsafe fn set_source_axis_type(&self, source_axis_type: SourceAxisType)[src]

Sets how the accumulator treats the values originating from the sourceAxisType.

Calls C++ function: [slot] void Qt3DInput::QAxisAccumulator::setSourceAxisType(Qt3DInput::QAxisAccumulator::SourceAxisType sourceAxisType).

C++ documentation:

Sets how the accumulator treats the values originating from the sourceAxisType.

Note: Setter function for property sourceAxisType.

See also sourceAxisType().

pub unsafe fn source_axis(&self) -> QPtr<QAxis>[src]

Access functions:

Calls C++ function: Qt3DInput::QAxis* Qt3DInput::QAxisAccumulator::sourceAxis() const.

C++ documentation:

Access functions:

Qt3DInput::QAxis *sourceAxis() const
void setSourceAxis(Qt3DInput::QAxis *sourceAxis)

Notifier signal:

void sourceAxisChanged(Qt3DInput::QAxis *sourceAxis)

pub unsafe fn source_axis_type(&self) -> SourceAxisType[src]

Access functions:

Calls C++ function: Qt3DInput::QAxisAccumulator::SourceAxisType Qt3DInput::QAxisAccumulator::sourceAxisType() const.

C++ documentation:

Access functions:

SourceAxisType sourceAxisType() const
void setSourceAxisType(QAxisAccumulator::SourceAxisType sourceAxisType)

Notifier signal:

void sourceAxisTypeChanged(QAxisAccumulator::SourceAxisType sourceAxisType)

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 Qt3DInput::QAxisAccumulator::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 Qt3DInput::QAxisAccumulator::trUtf8(const char* s, const char* c, int n).

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

Returns the accumulated (integrated) value.

Calls C++ function: float Qt3DInput::QAxisAccumulator::value() const.

C++ documentation:

Returns the accumulated (integrated) value.

Access functions:

float value() const

Notifier signal:

void valueChanged(float value)

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

Access functions:

Calls C++ function: float Qt3DInput::QAxisAccumulator::velocity() const.

C++ documentation:

Access functions:

float velocity() const

Notifier signal:

void velocityChanged(float value)

Trait Implementations

impl CppDeletable for QAxisAccumulator[src]

unsafe fn delete(&self)[src]

Calls C++ function: virtual [destructor] void Qt3DInput::QAxisAccumulator::~QAxisAccumulator().

impl Deref for QAxisAccumulator[src]

type Target = QComponent

The resulting type after dereferencing.

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

Calls C++ function: Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DInput::QAxisAccumulator* ptr).

impl DynamicCast<QAxisAccumulator> for QComponent[src]

unsafe fn dynamic_cast(ptr: Ptr<QComponent>) -> Ptr<QAxisAccumulator>[src]

Calls C++ function: Qt3DInput::QAxisAccumulator* dynamic_cast<Qt3DInput::QAxisAccumulator*>(Qt3DCore::QComponent* ptr).

impl DynamicCast<QAxisAccumulator> for QNode[src]

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

Calls C++ function: Qt3DInput::QAxisAccumulator* dynamic_cast<Qt3DInput::QAxisAccumulator*>(Qt3DCore::QNode* ptr).

impl DynamicCast<QAxisAccumulator> for QObject[src]

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

Calls C++ function: Qt3DInput::QAxisAccumulator* dynamic_cast<Qt3DInput::QAxisAccumulator*>(QObject* ptr).

impl StaticDowncast<QAxisAccumulator> for QComponent[src]

unsafe fn static_downcast(ptr: Ptr<QComponent>) -> Ptr<QAxisAccumulator>[src]

Calls C++ function: Qt3DInput::QAxisAccumulator* static_cast<Qt3DInput::QAxisAccumulator*>(Qt3DCore::QComponent* ptr).

impl StaticDowncast<QAxisAccumulator> for QNode[src]

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

Calls C++ function: Qt3DInput::QAxisAccumulator* static_cast<Qt3DInput::QAxisAccumulator*>(Qt3DCore::QNode* ptr).

impl StaticDowncast<QAxisAccumulator> for QObject[src]

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

Calls C++ function: Qt3DInput::QAxisAccumulator* static_cast<Qt3DInput::QAxisAccumulator*>(QObject* ptr).

impl StaticUpcast<QComponent> for QAxisAccumulator[src]

unsafe fn static_upcast(ptr: Ptr<QAxisAccumulator>) -> Ptr<QComponent>[src]

Calls C++ function: Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DInput::QAxisAccumulator* ptr).

impl StaticUpcast<QNode> for QAxisAccumulator[src]

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

Calls C++ function: Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DInput::QAxisAccumulator* ptr).

impl StaticUpcast<QObject> for QAxisAccumulator[src]

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

Calls C++ function: QObject* static_cast<QObject*>(Qt3DInput::QAxisAccumulator* 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.