[−][src]Struct qt_3d_render::QPickEvent
The QPickEvent class holds information when an object is picked
C++ class: Qt3DRender::QPickEvent
.
The QPickEvent class holds information when an object is picked
This is received as a parameter in most of the QObjectPicker component signals when picking succeeds.
Methods
impl QPickEvent
[src]
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
.
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
.
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
.
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
.
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
.
pub unsafe fn entity(&self) -> QMutPtr<QEntity>
[src]
The entity that the picked geometry belongs to.
Calls C++ function: Qt3DCore::QEntity* Qt3DRender::QPickEvent::entity() const
.
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 |
This item is available if cpp_lib_version="5.14.0"
.
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
.
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
.
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
.
pub unsafe fn new_0a() -> QBox<QPickEvent>
[src]
Constructs a new QPickEvent.
Calls C++ function: [constructor] void Qt3DRender::QPickEvent::QPickEvent()
.
Constructs a new QPickEvent.
pub unsafe fn new_4a(
position: impl CastInto<Ref<QPointF>>,
world_intersection: impl CastInto<Ref<QVector3D>>,
local_intersection: impl CastInto<Ref<QVector3D>>,
distance: c_float
) -> QBox<QPickEvent>
[src]
position: impl CastInto<Ref<QPointF>>,
world_intersection: impl CastInto<Ref<QVector3D>>,
local_intersection: impl CastInto<Ref<QVector3D>>,
distance: c_float
) -> QBox<QPickEvent>
Constructs a new QPickEvent with the given parameters: position, intersection, localIntersection and distance
Calls C++ function: [constructor] void Qt3DRender::QPickEvent::QPickEvent(const QPointF& position, const QVector3D& worldIntersection, const QVector3D& localIntersection, float distance)
.
Constructs a new QPickEvent with the given parameters: position, intersection, localIntersection and distance
pub unsafe fn new_7a(
position: impl CastInto<Ref<QPointF>>,
world_intersection: impl CastInto<Ref<QVector3D>>,
local_intersection: impl CastInto<Ref<QVector3D>>,
distance: c_float,
button: Buttons,
buttons: c_int,
modifiers: c_int
) -> QBox<QPickEvent>
[src]
position: impl CastInto<Ref<QPointF>>,
world_intersection: impl CastInto<Ref<QVector3D>>,
local_intersection: impl CastInto<Ref<QVector3D>>,
distance: c_float,
button: Buttons,
buttons: c_int,
modifiers: c_int
) -> QBox<QPickEvent>
Constructs a new QPickEvent with the given parameters: position, worldIntersection, localIntersection, distance, button, buttons and modifiers
Calls C++ function: [constructor] void Qt3DRender::QPickEvent::QPickEvent(const QPointF& position, const QVector3D& worldIntersection, const QVector3D& localIntersection, float distance, Qt3DRender::QPickEvent::Buttons button, int buttons, int modifiers)
.
Constructs a new QPickEvent with the given parameters: position, worldIntersection, localIntersection, distance, button, buttons and modifiers
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
.
Specifies the mouse position with respect to the render area (window or quick item)
Access functions:
QPointF | position() const |
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 Qt3DRender::QPickEvent::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* Qt3DRender::QPickEvent::qt_metacast(const char* arg1)
.
pub unsafe fn set_accepted(&mut 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)
.
QPickEvent::setAccepted set if the event has been accepted to accepted
Note: Setter function for property accepted.
See also isAccepted().
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 Qt3DRender::QPickEvent::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 Qt3DRender::QPickEvent::trUtf8(const char* s, const char* c, int n)
.
pub unsafe fn viewport(&self) -> QMutPtr<QViewport>
[src]
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
.
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 |
This item is available if cpp_lib_version="5.14.0"
.
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
.
Specifies the coordinates of the hit in world coordinate system
Access functions:
QVector3D | worldIntersection() const |
Trait Implementations
impl CppDeletable for QPickEvent
[src]
unsafe fn delete(&mut self)
[src]
Calls C++ function: virtual [destructor] void Qt3DRender::QPickEvent::~QPickEvent()
.
impl Deref for QPickEvent
[src]
type Target = QObject
The resulting type after dereferencing.
fn deref(&self) -> &QObject
[src]
Calls C++ function: QObject* static_cast<QObject*>(Qt3DRender::QPickEvent* ptr)
.
impl DerefMut for QPickEvent
[src]
fn deref_mut(&mut self) -> &mut QObject
[src]
Calls C++ function: QObject* static_cast<QObject*>(Qt3DRender::QPickEvent* ptr)
.
impl DynamicCast<QPickEvent> for QObject
[src]
unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QPickEvent>
[src]
Calls C++ function: Qt3DRender::QPickEvent* dynamic_cast<Qt3DRender::QPickEvent*>(QObject* ptr)
.
unsafe fn dynamic_cast_mut(ptr: MutPtr<QObject>) -> MutPtr<QPickEvent>
[src]
Calls C++ function: Qt3DRender::QPickEvent* dynamic_cast<Qt3DRender::QPickEvent*>(QObject* 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)
.
unsafe fn dynamic_cast_mut(ptr: MutPtr<QPickEvent>) -> MutPtr<QPickLineEvent>
[src]
Calls C++ function: Qt3DRender::QPickLineEvent* dynamic_cast<Qt3DRender::QPickLineEvent*>(Qt3DRender::QPickEvent* 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)
.
unsafe fn dynamic_cast_mut(ptr: MutPtr<QPickEvent>) -> MutPtr<QPickPointEvent>
[src]
Calls C++ function: Qt3DRender::QPickPointEvent* dynamic_cast<Qt3DRender::QPickPointEvent*>(Qt3DRender::QPickEvent* ptr)
.
impl DynamicCast<QPickTriangleEvent> for QPickEvent
[src]
unsafe fn dynamic_cast(ptr: Ptr<QPickEvent>) -> Ptr<QPickTriangleEvent>
[src]
Calls C++ function: Qt3DRender::QPickTriangleEvent* dynamic_cast<Qt3DRender::QPickTriangleEvent*>(Qt3DRender::QPickEvent* ptr)
.
unsafe fn dynamic_cast_mut(
ptr: MutPtr<QPickEvent>
) -> MutPtr<QPickTriangleEvent>
[src]
ptr: MutPtr<QPickEvent>
) -> MutPtr<QPickTriangleEvent>
Calls C++ function: Qt3DRender::QPickTriangleEvent* dynamic_cast<Qt3DRender::QPickTriangleEvent*>(Qt3DRender::QPickEvent* ptr)
.
impl StaticDowncast<QPickEvent> for QObject
[src]
unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QPickEvent>
[src]
Calls C++ function: Qt3DRender::QPickEvent* static_cast<Qt3DRender::QPickEvent*>(QObject* ptr)
.
unsafe fn static_downcast_mut(ptr: MutPtr<QObject>) -> MutPtr<QPickEvent>
[src]
Calls C++ function: Qt3DRender::QPickEvent* static_cast<Qt3DRender::QPickEvent*>(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)
.
unsafe fn static_downcast_mut(ptr: MutPtr<QPickEvent>) -> MutPtr<QPickLineEvent>
[src]
Calls C++ function: Qt3DRender::QPickLineEvent* static_cast<Qt3DRender::QPickLineEvent*>(Qt3DRender::QPickEvent* 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)
.
unsafe fn static_downcast_mut(
ptr: MutPtr<QPickEvent>
) -> MutPtr<QPickPointEvent>
[src]
ptr: MutPtr<QPickEvent>
) -> MutPtr<QPickPointEvent>
Calls C++ function: Qt3DRender::QPickPointEvent* static_cast<Qt3DRender::QPickPointEvent*>(Qt3DRender::QPickEvent* ptr)
.
impl StaticDowncast<QPickTriangleEvent> for QPickEvent
[src]
unsafe fn static_downcast(ptr: Ptr<QPickEvent>) -> Ptr<QPickTriangleEvent>
[src]
Calls C++ function: Qt3DRender::QPickTriangleEvent* static_cast<Qt3DRender::QPickTriangleEvent*>(Qt3DRender::QPickEvent* ptr)
.
unsafe fn static_downcast_mut(
ptr: MutPtr<QPickEvent>
) -> MutPtr<QPickTriangleEvent>
[src]
ptr: MutPtr<QPickEvent>
) -> MutPtr<QPickTriangleEvent>
Calls C++ function: Qt3DRender::QPickTriangleEvent* static_cast<Qt3DRender::QPickTriangleEvent*>(Qt3DRender::QPickEvent* ptr)
.
impl StaticUpcast<QObject> for QPickEvent
[src]
unsafe fn static_upcast(ptr: Ptr<QPickEvent>) -> Ptr<QObject>
[src]
Calls C++ function: QObject* static_cast<QObject*>(Qt3DRender::QPickEvent* ptr)
.
unsafe fn static_upcast_mut(ptr: MutPtr<QPickEvent>) -> MutPtr<QObject>
[src]
Calls C++ function: QObject* static_cast<QObject*>(Qt3DRender::QPickEvent* ptr)
.
impl StaticUpcast<QPickEvent> for QPickTriangleEvent
[src]
unsafe fn static_upcast(ptr: Ptr<QPickTriangleEvent>) -> Ptr<QPickEvent>
[src]
Calls C++ function: Qt3DRender::QPickEvent* static_cast<Qt3DRender::QPickEvent*>(Qt3DRender::QPickTriangleEvent* ptr)
.
unsafe fn static_upcast_mut(
ptr: MutPtr<QPickTriangleEvent>
) -> MutPtr<QPickEvent>
[src]
ptr: MutPtr<QPickTriangleEvent>
) -> MutPtr<QPickEvent>
Calls C++ function: Qt3DRender::QPickEvent* static_cast<Qt3DRender::QPickEvent*>(Qt3DRender::QPickTriangleEvent* 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)
.
unsafe fn static_upcast_mut(ptr: MutPtr<QPickLineEvent>) -> MutPtr<QPickEvent>
[src]
Calls C++ function: Qt3DRender::QPickEvent* static_cast<Qt3DRender::QPickEvent*>(Qt3DRender::QPickLineEvent* 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)
.
unsafe fn static_upcast_mut(ptr: MutPtr<QPickPointEvent>) -> MutPtr<QPickEvent>
[src]
Calls C++ function: Qt3DRender::QPickEvent* static_cast<Qt3DRender::QPickEvent*>(Qt3DRender::QPickPointEvent* ptr)
.
Auto Trait Implementations
impl RefUnwindSafe for QPickEvent
impl Send for QPickEvent
impl Sync for QPickEvent
impl Unpin for QPickEvent
impl UnwindSafe for QPickEvent
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>,