[−][src]Struct qt_3d_render::QPickLineEvent
The QPickLineEvent class holds information when a segment of a line is picked.
C++ class: Qt3DRender::QPickLineEvent
.
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]
Specifies the index of the edge that was picked
Calls C++ function: unsigned int Qt3DRender::QPickLineEvent::edgeIndex() const
.
This item is available if any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0", cpp_lib_version="5.14.0")
.
pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>
[src]
Calls C++ function: virtual const QMetaObject* Qt3DRender::QPickLineEvent::metaObject() const
.
This item is available if any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0", cpp_lib_version="5.14.0")
.
pub unsafe fn new_0a() -> QBox<QPickLineEvent>
[src]
Constructs a new QPickEvent.
Calls C++ function: [constructor] void Qt3DRender::QPickLineEvent::QPickLineEvent()
.
Constructs a new QPickEvent.
This item is available if any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0", cpp_lib_version="5.14.0")
.
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]
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>
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.
This item is available if any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0", cpp_lib_version="5.14.0")
.
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::QPickLineEvent::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)
.
This item is available if any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0", cpp_lib_version="5.14.0")
.
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::QPickLineEvent::qt_metacast(const char* arg1)
.
This item is available if any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0", cpp_lib_version="5.14.0")
.
pub unsafe fn static_meta_object() -> Ref<QMetaObject>
[src]
Returns a reference to the staticMetaObject
field.
This item is available if any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0", cpp_lib_version="5.14.0")
.
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::QPickLineEvent::tr(const char* s, const char* c, int n)
.
This item is available if any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0", cpp_lib_version="5.14.0")
.
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::QPickLineEvent::trUtf8(const char* s, const char* c, int n)
.
This item is available if any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0", cpp_lib_version="5.14.0")
.
pub unsafe fn vertex1_index(&self) -> c_uint
[src]
Specifies the index of the first point of the picked edge
Calls C++ function: unsigned int Qt3DRender::QPickLineEvent::vertex1Index() const
.
Specifies the index of the first point of the picked edge
Access functions:
uint | vertex1Index() const |
This item is available if any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0", cpp_lib_version="5.14.0")
.
pub unsafe fn vertex2_index(&self) -> c_uint
[src]
Specifies the index of the second point of the picked edge
Calls C++ function: unsigned int Qt3DRender::QPickLineEvent::vertex2Index() const
.
Specifies the index of the second point of the picked edge
Access functions:
uint | vertex2Index() const |
This item is available if any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0", cpp_lib_version="5.14.0")
.
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
.
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 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 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 QPickLineEvent
[src]
unsafe fn delete(&mut 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 DerefMut for QPickLineEvent
[src]
fn deref_mut(&mut self) -> &mut 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)
.
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<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)
.
unsafe fn dynamic_cast_mut(ptr: MutPtr<QObject>) -> MutPtr<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)
.
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<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)
.
unsafe fn static_downcast_mut(ptr: MutPtr<QObject>) -> MutPtr<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)
.
unsafe fn static_upcast_mut(ptr: MutPtr<QPickLineEvent>) -> MutPtr<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)
.
unsafe fn static_upcast_mut(ptr: MutPtr<QPickLineEvent>) -> MutPtr<QPickEvent>
[src]
Calls C++ function: Qt3DRender::QPickEvent* static_cast<Qt3DRender::QPickEvent*>(Qt3DRender::QPickLineEvent* ptr)
.
Auto Trait Implementations
impl RefUnwindSafe for QPickLineEvent
impl Send for QPickLineEvent
impl Sync for QPickLineEvent
impl Unpin for QPickLineEvent
impl UnwindSafe for QPickLineEvent
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>,