[][src]Struct qt_3d_render::QPickPointEvent

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

The QPickPointEvent class holds information when a segment of a point cloud is picked.

C++ class: Qt3DRender::QPickPointEvent.

C++ documentation:

The QPickPointEvent class holds information when a segment of a point cloud is picked.

Methods

impl QPickPointEvent[src]

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

This is supported on 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* Qt3DRender::QPickPointEvent::metaObject() const.

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

This is supported on 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.

Constructs a new QPickPointEvent.

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

C++ documentation:

Constructs a new QPickPointEvent.

pub unsafe fn new_8a(
    position: impl CastInto<Ref<QPointF>>,
    world_intersection: impl CastInto<Ref<QVector3D>>,
    local_intersection: impl CastInto<Ref<QVector3D>>,
    distance: c_float,
    point_index: c_uint,
    button: Buttons,
    buttons: c_int,
    modifiers: c_int
) -> QBox<QPickPointEvent>
[src]

This is supported on 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.

Constructs a new QPickPointEvent.

Calls C++ function: [constructor] void Qt3DRender::QPickPointEvent::QPickPointEvent(const QPointF& position, const QVector3D& worldIntersection, const QVector3D& localIntersection, float distance, unsigned int pointIndex, Qt3DRender::QPickEvent::Buttons button, int buttons, int modifiers).

Warning: no exact match found in C++ documentation. Below is the C++ documentation for QPickPointEvent::QPickPointEvent():

Constructs a new QPickPointEvent.

pub unsafe fn point_index(&self) -> c_uint[src]

This is supported on 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.

Specifies the index of the point that was picked

Calls C++ function: unsigned int Qt3DRender::QPickPointEvent::pointIndex() const.

C++ documentation:

Specifies the index of the point that was picked

Access functions:

uint pointIndex() const

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

This is supported on 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 Qt3DRender::QPickPointEvent::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3).

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

This is supported on 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* Qt3DRender::QPickPointEvent::qt_metacast(const char* arg1).

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

This is supported on 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]

This is supported on 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 Qt3DRender::QPickPointEvent::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]

This is supported on 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 Qt3DRender::QPickPointEvent::trUtf8(const char* s, const char* c, int n).

Methods from Deref<Target = QPickEvent>

pub fn slot_set_accepted(&self) -> Receiver<(bool,)>[src]

QPickEvent::setAccepted set if the event has been accepted to accepted

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

C++ documentation:

QPickEvent::setAccepted set if the event has been accepted to accepted

Note: Setter function for property accepted.

See also isAccepted().

pub fn accepted_changed(&self) -> Signal<(bool,)>[src]

Specifies if event has been accepted

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

C++ documentation:

Specifies if event has been accepted

Access functions:

bool isAccepted() const
void setAccepted(bool accepted)

Notifier signal:

void acceptedChanged(bool accepted)

pub unsafe fn button(&self) -> Buttons[src]

Specifies mouse button that caused the event

Calls C++ function: Qt3DRender::QPickEvent::Buttons Qt3DRender::QPickEvent::button() const.

C++ documentation:

Specifies mouse button that caused the event

Access functions:

Buttons button() const

pub unsafe fn buttons(&self) -> c_int[src]

Specifies state of the mouse buttons for the event

Calls C++ function: int Qt3DRender::QPickEvent::buttons() const.

C++ documentation:

Specifies state of the mouse buttons for the event

Access functions:

int buttons() const

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

Specifies the distance of the hit to the camera

Calls C++ function: float Qt3DRender::QPickEvent::distance() const.

C++ documentation:

Specifies the distance of the hit to the camera

Access functions:

float distance() const

pub unsafe fn entity(&self) -> QPtr<QEntity>[src]

This is supported on cpp_lib_version="5.14.0" only.

The entity that the picked geometry belongs to.

Calls C++ function: Qt3DCore::QEntity* Qt3DRender::QPickEvent::entity() const.

C++ documentation:

The entity that the picked geometry belongs to.

If the object picker is not attached to a leaf node in the scene graph, this is useful to find which child entity was actually picked.

This property was introduced in Qt 5.14.

Access functions:

Qt3DCore::QEntity *entity() const

pub unsafe fn is_accepted(&self) -> bool[src]

QPickEvent::isAccepted Returns true if the event has been accepted

Calls C++ function: bool Qt3DRender::QPickEvent::isAccepted() const.

C++ documentation:

QPickEvent::isAccepted Returns true if the event has been accepted

Note: Getter function for property accepted.

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

Specifies the coordinates of the hit in the local coordinate system of the picked entity

Calls C++ function: QVector3D Qt3DRender::QPickEvent::localIntersection() const.

C++ documentation:

Specifies the coordinates of the hit in the local coordinate system of the picked entity

Access functions:

QVector3D localIntersection() const

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

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

pub unsafe fn modifiers(&self) -> c_int[src]

Specifies state of the mouse buttons for the event

Calls C++ function: int Qt3DRender::QPickEvent::modifiers() const.

C++ documentation:

Specifies state of the mouse buttons for the event

Access functions:

int modifiers() const

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

Specifies the mouse position with respect to the render area (window or quick item)

Calls C++ function: QPointF Qt3DRender::QPickEvent::position() const.

C++ documentation:

Specifies the mouse position with respect to the render area (window or quick item)

Access functions:

QPointF position() const

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

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

pub unsafe fn set_accepted(&self, accepted: bool)[src]

QPickEvent::setAccepted set if the event has been accepted to accepted

Calls C++ function: [slot] void Qt3DRender::QPickEvent::setAccepted(bool accepted).

C++ documentation:

QPickEvent::setAccepted set if the event has been accepted to accepted

Note: Setter function for property accepted.

See also isAccepted().

pub unsafe fn viewport(&self) -> QPtr<QViewport>[src]

This is supported on cpp_lib_version="5.14.0" only.

The viewport in which this event originated. A null value means the event originated from a frame graph branch without a QViewport. If a frame graph branch has a Viewport inside a Viewport the property will contain the leaf viewport.

Calls C++ function: Qt3DRender::QViewport* Qt3DRender::QPickEvent::viewport() const.

C++ documentation:

The viewport in which this event originated. A null value means the event originated from a frame graph branch without a QViewport. If a frame graph branch has a Viewport inside a Viewport the property will contain the leaf viewport.

This property was introduced in Qt 5.14.

Access functions:

Qt3DRender::QViewport *viewport() const

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

Specifies the coordinates of the hit in world coordinate system

Calls C++ function: QVector3D Qt3DRender::QPickEvent::worldIntersection() const.

C++ documentation:

Specifies the coordinates of the hit in world coordinate system

Access functions:

QVector3D worldIntersection() const

Trait Implementations

impl CppDeletable for QPickPointEvent[src]

unsafe fn delete(&self)[src]

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

impl Deref for QPickPointEvent[src]

type Target = QPickEvent

The resulting type after dereferencing.

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

Calls C++ function: Qt3DRender::QPickEvent* static_cast<Qt3DRender::QPickEvent*>(Qt3DRender::QPickPointEvent* ptr).

impl DynamicCast<QPickPointEvent> for QPickEvent[src]

unsafe fn dynamic_cast(ptr: Ptr<QPickEvent>) -> Ptr<QPickPointEvent>[src]

Calls C++ function: Qt3DRender::QPickPointEvent* dynamic_cast<Qt3DRender::QPickPointEvent*>(Qt3DRender::QPickEvent* ptr).

impl DynamicCast<QPickPointEvent> for QObject[src]

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

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

impl StaticDowncast<QPickPointEvent> for QPickEvent[src]

unsafe fn static_downcast(ptr: Ptr<QPickEvent>) -> Ptr<QPickPointEvent>[src]

Calls C++ function: Qt3DRender::QPickPointEvent* static_cast<Qt3DRender::QPickPointEvent*>(Qt3DRender::QPickEvent* ptr).

impl StaticDowncast<QPickPointEvent> for QObject[src]

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

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

impl StaticUpcast<QObject> for QPickPointEvent[src]

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

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

impl StaticUpcast<QPickEvent> for QPickPointEvent[src]

unsafe fn static_upcast(ptr: Ptr<QPickPointEvent>) -> Ptr<QPickEvent>[src]

Calls C++ function: Qt3DRender::QPickEvent* static_cast<Qt3DRender::QPickEvent*>(Qt3DRender::QPickPointEvent* 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.