[][src]Struct qt_3d_render::QPickLineEvent

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

The QPickLineEvent class holds information when a segment of a line is picked.

C++ class: Qt3DRender::QPickLineEvent.

C++ documentation:

The QPickLineEvent class holds information when a segment of a line is picked.

Methods

impl QPickLineEvent[src]

pub unsafe fn edge_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 edge that was picked

Calls C++ function: unsigned int Qt3DRender::QPickLineEvent::edgeIndex() const.

C++ documentation:

Specifies the index of the edge that was picked

Access functions:

uint edgeIndex() const

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::QPickLineEvent::metaObject() const.

pub unsafe fn new_0a() -> QBox<QPickLineEvent>[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 QPickEvent.

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

C++ documentation:

Constructs a new QPickEvent.

pub unsafe fn new_10a(
    position: impl CastInto<Ref<QPointF>>,
    world_intersection: impl CastInto<Ref<QVector3D>>,
    local_intersection: impl CastInto<Ref<QVector3D>>,
    distance: c_float,
    edge_index: c_uint,
    vertex1_index: c_uint,
    vertex2_index: c_uint,
    button: Buttons,
    buttons: c_int,
    modifiers: c_int
) -> QBox<QPickLineEvent>
[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 QPickEvent.

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

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

Constructs a new QPickEvent.

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

pub unsafe fn vertex1_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 first point of the picked edge

Calls C++ function: unsigned int Qt3DRender::QPickLineEvent::vertex1Index() const.

C++ documentation:

Specifies the index of the first point of the picked edge

Access functions:

uint vertex1Index() const

pub unsafe fn vertex2_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 second point of the picked edge

Calls C++ function: unsigned int Qt3DRender::QPickLineEvent::vertex2Index() const.

C++ documentation:

Specifies the index of the second point of the picked edge

Access functions:

uint vertex2Index() const

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 QPickLineEvent[src]

unsafe fn delete(&self)[src]

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

impl Deref for QPickLineEvent[src]

type Target = QPickEvent

The resulting type after dereferencing.

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

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

impl DynamicCast<QPickLineEvent> for QPickEvent[src]

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

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

impl DynamicCast<QPickLineEvent> for QObject[src]

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

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

impl StaticDowncast<QPickLineEvent> for QPickEvent[src]

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

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

impl StaticDowncast<QPickLineEvent> for QObject[src]

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

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

impl StaticUpcast<QObject> for QPickLineEvent[src]

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

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

impl StaticUpcast<QPickEvent> for QPickLineEvent[src]

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

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