[−][src]Struct qt_3d_render::QRayCaster
Qt3DRender::QRayCaster is used to perform ray casting tests in 3d world coordinates.
C++ class: Qt3DRender::QRayCaster
.
Qt3DRender::QRayCaster is used to perform ray casting tests in 3d world coordinates.
The 3d ray is defined by its origin, direction and length. It will be affected by the transformations applied to the entity it belongs to.
Ray casting tests will be performed every frame as long as the component is enabled. The hits property will be updated with the list of intersections.
Methods
impl QRayCaster
[src]
pub fn slot_set_origin(&self) -> Receiver<(*const QVector3D,)>
[src]
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.Holds the origin of the 3D ray in local coordinates.
Returns a built-in Qt slot Qt3DRender::QRayCaster::setOrigin
that can be passed to qt_core::Signal::connect
.
Holds the origin of the 3D ray in local coordinates.
Access functions:
QVector3D | origin() const |
void | setOrigin(const QVector3D &origin) |
Notifier signal:
void | originChanged(const QVector3D &origin) |
pub fn slot_set_direction(&self) -> Receiver<(*const QVector3D,)>
[src]
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.Holds the direction of the 3D ray. This should be a unit vector.
Returns a built-in Qt slot Qt3DRender::QRayCaster::setDirection
that can be passed to qt_core::Signal::connect
.
Holds the direction of the 3D ray. This should be a unit vector.
Access functions:
QVector3D | direction() const |
void | setDirection(const QVector3D &direction) |
Notifier signal:
void | directionChanged(const QVector3D &direction) |
pub fn slot_set_length(&self) -> Receiver<(c_float,)>
[src]
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.Sets the length of the ray to length.
Returns a built-in Qt slot Qt3DRender::QRayCaster::setLength
that can be passed to qt_core::Signal::connect
.
pub fn slot_trigger(&self) -> Receiver<()>
[src]
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.Convenience method to enable the component and trigger tests using the current ray.
Returns a built-in Qt slot Qt3DRender::QRayCaster::trigger
that can be passed to qt_core::Signal::connect
.
Convenience method to enable the component and trigger tests using the current ray.
pub fn slot_trigger2(
&self
) -> Receiver<(*const QVector3D, *const QVector3D, c_float)>
[src]
&self
) -> Receiver<(*const QVector3D, *const QVector3D, c_float)>
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.Convenience method to set the ray details origin, direction, and length, and enable the component to trigger tests.
Returns a built-in Qt slot Qt3DRender::QRayCaster::trigger
that can be passed to qt_core::Signal::connect
.
Convenience method to set the ray details origin, direction, and length, and enable the component to trigger tests.
pub fn origin_changed(&self) -> Signal<(*const QVector3D,)>
[src]
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.Holds the origin of the 3D ray in local coordinates.
Returns a built-in Qt signal Qt3DRender::QRayCaster::originChanged
that can be passed to qt_core::Signal::connect
.
Holds the origin of the 3D ray in local coordinates.
Access functions:
QVector3D | origin() const |
void | setOrigin(const QVector3D &origin) |
Notifier signal:
void | originChanged(const QVector3D &origin) |
pub fn direction_changed(&self) -> Signal<(*const QVector3D,)>
[src]
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.Holds the direction of the 3D ray. This should be a unit vector.
Returns a built-in Qt signal Qt3DRender::QRayCaster::directionChanged
that can be passed to qt_core::Signal::connect
.
Holds the direction of the 3D ray. This should be a unit vector.
Access functions:
QVector3D | direction() const |
void | setDirection(const QVector3D &direction) |
Notifier signal:
void | directionChanged(const QVector3D &direction) |
pub fn length_changed(&self) -> Signal<(c_float,)>
[src]
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.Holds the length of the 3D ray.
Returns a built-in Qt signal Qt3DRender::QRayCaster::lengthChanged
that can be passed to qt_core::Signal::connect
.
Holds the length of the 3D ray.
Access functions:
float | length() const |
void | setLength(float length) |
Notifier signal:
void | lengthChanged(float length) |
pub unsafe fn direction(&self) -> CppBox<QVector3D>
[src]
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.Holds the direction of the 3D ray. This should be a unit vector.
Calls C++ function: QVector3D Qt3DRender::QRayCaster::direction() const
.
Holds the direction of the 3D ray. This should be a unit vector.
Access functions:
QVector3D | direction() const |
void | setDirection(const QVector3D &direction) |
Notifier signal:
void | directionChanged(const QVector3D &direction) |
pub unsafe fn length(&self) -> c_float
[src]
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.Holds the length of the 3D ray.
Calls C++ function: float Qt3DRender::QRayCaster::length() const
.
Holds the length of the 3D ray.
Access functions:
float | length() const |
void | setLength(float length) |
Notifier signal:
void | lengthChanged(float length) |
pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>
[src]
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::QRayCaster::metaObject() const
.
pub unsafe fn new_1a(parent: impl CastInto<Ptr<QNode>>) -> QBox<QRayCaster>
[src]
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.Default constructs an instance of QRayCaster.
Calls C++ function: [constructor] void Qt3DRender::QRayCaster::QRayCaster(Qt3DCore::QNode* parent = …)
.
Default constructs an instance of QRayCaster.
pub unsafe fn new_0a() -> QBox<QRayCaster>
[src]
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.Qt3DRender::QRayCaster is used to perform ray casting tests in 3d world coordinates.
Calls C++ function: [constructor] void Qt3DRender::QRayCaster::QRayCaster()
.
Qt3DRender::QRayCaster is used to perform ray casting tests in 3d world coordinates.
The 3d ray is defined by its origin, direction and length. It will be affected by the transformations applied to the entity it belongs to.
Ray casting tests will be performed every frame as long as the component is enabled. The hits property will be updated with the list of intersections.
pub unsafe fn origin(&self) -> CppBox<QVector3D>
[src]
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.Holds the origin of the 3D ray in local coordinates.
Calls C++ function: QVector3D Qt3DRender::QRayCaster::origin() const
.
Holds the origin of the 3D ray in local coordinates.
Access functions:
QVector3D | origin() const |
void | setOrigin(const QVector3D &origin) |
Notifier signal:
void | originChanged(const QVector3D &origin) |
pub unsafe fn qt_metacall(
&self,
arg1: Call,
arg2: c_int,
arg3: *mut *mut c_void
) -> c_int
[src]
&self,
arg1: Call,
arg2: c_int,
arg3: *mut *mut c_void
) -> c_int
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::QRayCaster::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)
.
pub unsafe fn qt_metacast(&self, arg1: *const c_char) -> *mut c_void
[src]
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::QRayCaster::qt_metacast(const char* arg1)
.
pub unsafe fn set_direction(&self, direction: impl CastInto<Ref<QVector3D>>)
[src]
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.Holds the direction of the 3D ray. This should be a unit vector.
Calls C++ function: [slot] void Qt3DRender::QRayCaster::setDirection(const QVector3D& direction)
.
Holds the direction of the 3D ray. This should be a unit vector.
Access functions:
QVector3D | direction() const |
void | setDirection(const QVector3D &direction) |
Notifier signal:
void | directionChanged(const QVector3D &direction) |
pub unsafe fn set_length(&self, length: c_float)
[src]
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.Sets the length of the ray to length.
Calls C++ function: [slot] void Qt3DRender::QRayCaster::setLength(float length)
.
pub unsafe fn set_origin(&self, origin: impl CastInto<Ref<QVector3D>>)
[src]
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.Holds the origin of the 3D ray in local coordinates.
Calls C++ function: [slot] void Qt3DRender::QRayCaster::setOrigin(const QVector3D& origin)
.
Holds the origin of the 3D ray in local coordinates.
Access functions:
QVector3D | origin() const |
void | setOrigin(const QVector3D &origin) |
Notifier signal:
void | originChanged(const QVector3D &origin) |
pub unsafe fn static_meta_object() -> Ref<QMetaObject>
[src]
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]
s: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
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::QRayCaster::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]
s: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
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::QRayCaster::trUtf8(const char* s, const char* c, int n)
.
pub unsafe fn trigger_0a(&self)
[src]
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.Convenience method to enable the component and trigger tests using the current ray.
Calls C++ function: [slot] void Qt3DRender::QRayCaster::trigger()
.
Convenience method to enable the component and trigger tests using the current ray.
pub unsafe fn trigger_3a(
&self,
origin: impl CastInto<Ref<QVector3D>>,
direction: impl CastInto<Ref<QVector3D>>,
length: c_float
)
[src]
&self,
origin: impl CastInto<Ref<QVector3D>>,
direction: impl CastInto<Ref<QVector3D>>,
length: c_float
)
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.Convenience method to set the ray details origin, direction, and length, and enable the component to trigger tests.
Calls C++ function: [slot] void Qt3DRender::QRayCaster::trigger(const QVector3D& origin, const QVector3D& direction, float length)
.
Convenience method to set the ray details origin, direction, and length, and enable the component to trigger tests.
Methods from Deref<Target = QAbstractRayCaster>
pub fn slot_set_run_mode(&self) -> Receiver<(RunMode,)>
[src]
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.Holds the run mode controlling how often ray casting tests are performed.
Returns a built-in Qt slot Qt3DRender::QAbstractRayCaster::setRunMode
that can be passed to qt_core::Signal::connect
.
Holds the run mode controlling how often ray casting tests are performed.
If set to SingleShot (the default), when the component is enabled, a single ray casting test will be performed and the component will automatically disable itself.
If set to Continuous, ray casting tests will be performed at every frame as long as the component is enabled.
Access functions:
Qt3DRender::QAbstractRayCaster::RunMode | runMode() const |
void | setRunMode(Qt3DRender::QAbstractRayCaster::RunMode runMode) |
Notifier signal:
void | runModeChanged(Qt3DRender::QAbstractRayCaster::RunMode runMode) |
pub fn slot_set_filter_mode(&self) -> Receiver<(FilterMode,)>
[src]
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.Holds the filter mode specifying the entities to select for ray casting tests.
Returns a built-in Qt slot Qt3DRender::QAbstractRayCaster::setFilterMode
that can be passed to qt_core::Signal::connect
.
Holds the filter mode specifying the entities to select for ray casting tests.
The default value is AcceptMatchingLayers.
Access functions:
Qt3DRender::QAbstractRayCaster::FilterMode | filterMode() const |
void | setFilterMode(Qt3DRender::QAbstractRayCaster::FilterMode filterMode) |
Notifier signal:
void | filterModeChanged(Qt3DRender::QAbstractRayCaster::FilterMode filterMode) |
pub fn run_mode_changed(&self) -> Signal<(RunMode,)>
[src]
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.Holds the run mode controlling how often ray casting tests are performed.
Returns a built-in Qt signal Qt3DRender::QAbstractRayCaster::runModeChanged
that can be passed to qt_core::Signal::connect
.
Holds the run mode controlling how often ray casting tests are performed.
If set to SingleShot (the default), when the component is enabled, a single ray casting test will be performed and the component will automatically disable itself.
If set to Continuous, ray casting tests will be performed at every frame as long as the component is enabled.
Access functions:
Qt3DRender::QAbstractRayCaster::RunMode | runMode() const |
void | setRunMode(Qt3DRender::QAbstractRayCaster::RunMode runMode) |
Notifier signal:
void | runModeChanged(Qt3DRender::QAbstractRayCaster::RunMode runMode) |
pub fn filter_mode_changed(&self) -> Signal<(FilterMode,)>
[src]
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.Holds the filter mode specifying the entities to select for ray casting tests.
Returns a built-in Qt signal Qt3DRender::QAbstractRayCaster::filterModeChanged
that can be passed to qt_core::Signal::connect
.
Holds the filter mode specifying the entities to select for ray casting tests.
The default value is AcceptMatchingLayers.
Access functions:
Qt3DRender::QAbstractRayCaster::FilterMode | filterMode() const |
void | setFilterMode(Qt3DRender::QAbstractRayCaster::FilterMode filterMode) |
Notifier signal:
void | filterModeChanged(Qt3DRender::QAbstractRayCaster::FilterMode filterMode) |
pub fn hits_changed(&self) -> Signal<(*const QVectorOfQRayCasterHit,)>
[src]
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.Holds the results of last ray casting test as a vector of Qt3DRender::QRayCasterHit instances.
Returns a built-in Qt signal Qt3DRender::QAbstractRayCaster::hitsChanged
that can be passed to qt_core::Signal::connect
.
Holds the results of last ray casting test as a vector of Qt3DRender::QRayCasterHit instances.
Note that even if successive tests return the exact same results (or empty results), a change notification will be emitted at every test.
Access functions:
Qt3DRender::QAbstractRayCaster::Hits | hits() const |
Notifier signal:
void | hitsChanged(const Qt3DRender::QAbstractRayCaster::Hits &hits) |
pub unsafe fn add_layer(&self, layer: impl CastInto<Ptr<QLayer>>)
[src]
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.Add layer to the current list of layers
Calls C++ function: void Qt3DRender::QAbstractRayCaster::addLayer(Qt3DRender::QLayer* layer)
.
Add layer to the current list of layers
pub unsafe fn filter_mode(&self) -> FilterMode
[src]
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.Holds the filter mode specifying the entities to select for ray casting tests.
Calls C++ function: Qt3DRender::QAbstractRayCaster::FilterMode Qt3DRender::QAbstractRayCaster::filterMode() const
.
Holds the filter mode specifying the entities to select for ray casting tests.
The default value is AcceptMatchingLayers.
Access functions:
Qt3DRender::QAbstractRayCaster::FilterMode | filterMode() const |
void | setFilterMode(Qt3DRender::QAbstractRayCaster::FilterMode filterMode) |
Notifier signal:
void | filterModeChanged(Qt3DRender::QAbstractRayCaster::FilterMode filterMode) |
pub unsafe fn hits(&self) -> CppBox<QVectorOfQRayCasterHit>
[src]
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.Holds the results of last ray casting test as a vector of Qt3DRender::QRayCasterHit instances.
Calls C++ function: QVector<Qt3DRender::QRayCasterHit> Qt3DRender::QAbstractRayCaster::hits() const
.
Holds the results of last ray casting test as a vector of Qt3DRender::QRayCasterHit instances.
Note that even if successive tests return the exact same results (or empty results), a change notification will be emitted at every test.
Access functions:
Qt3DRender::QAbstractRayCaster::Hits | hits() const |
Notifier signal:
void | hitsChanged(const Qt3DRender::QAbstractRayCaster::Hits &hits) |
pub unsafe fn layers(&self) -> CppBox<QVectorOfQLayer>
[src]
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 the current list of layers
Calls C++ function: QVector<Qt3DRender::QLayer*> Qt3DRender::QAbstractRayCaster::layers() const
.
Returns the current list of layers
pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>
[src]
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::QAbstractRayCaster::metaObject() const
.
pub unsafe fn qt_metacall(
&self,
arg1: Call,
arg2: c_int,
arg3: *mut *mut c_void
) -> c_int
[src]
&self,
arg1: Call,
arg2: c_int,
arg3: *mut *mut c_void
) -> c_int
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::QAbstractRayCaster::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)
.
pub unsafe fn qt_metacast(&self, arg1: *const c_char) -> *mut c_void
[src]
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::QAbstractRayCaster::qt_metacast(const char* arg1)
.
pub unsafe fn remove_layer(&self, layer: impl CastInto<Ptr<QLayer>>)
[src]
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.Remove layer from the current list of layers
Calls C++ function: void Qt3DRender::QAbstractRayCaster::removeLayer(Qt3DRender::QLayer* layer)
.
Remove layer from the current list of layers
pub unsafe fn run_mode(&self) -> RunMode
[src]
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.Holds the run mode controlling how often ray casting tests are performed.
Calls C++ function: Qt3DRender::QAbstractRayCaster::RunMode Qt3DRender::QAbstractRayCaster::runMode() const
.
Holds the run mode controlling how often ray casting tests are performed.
If set to SingleShot (the default), when the component is enabled, a single ray casting test will be performed and the component will automatically disable itself.
If set to Continuous, ray casting tests will be performed at every frame as long as the component is enabled.
Access functions:
Qt3DRender::QAbstractRayCaster::RunMode | runMode() const |
void | setRunMode(Qt3DRender::QAbstractRayCaster::RunMode runMode) |
Notifier signal:
void | runModeChanged(Qt3DRender::QAbstractRayCaster::RunMode runMode) |
pub unsafe fn set_filter_mode(&self, filter_mode: FilterMode)
[src]
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.Holds the filter mode specifying the entities to select for ray casting tests.
Calls C++ function: [slot] void Qt3DRender::QAbstractRayCaster::setFilterMode(Qt3DRender::QAbstractRayCaster::FilterMode filterMode)
.
Holds the filter mode specifying the entities to select for ray casting tests.
The default value is AcceptMatchingLayers.
Access functions:
Qt3DRender::QAbstractRayCaster::FilterMode | filterMode() const |
void | setFilterMode(Qt3DRender::QAbstractRayCaster::FilterMode filterMode) |
Notifier signal:
void | filterModeChanged(Qt3DRender::QAbstractRayCaster::FilterMode filterMode) |
pub unsafe fn set_run_mode(&self, run_mode: RunMode)
[src]
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.Holds the run mode controlling how often ray casting tests are performed.
Calls C++ function: [slot] void Qt3DRender::QAbstractRayCaster::setRunMode(Qt3DRender::QAbstractRayCaster::RunMode runMode)
.
Holds the run mode controlling how often ray casting tests are performed.
If set to SingleShot (the default), when the component is enabled, a single ray casting test will be performed and the component will automatically disable itself.
If set to Continuous, ray casting tests will be performed at every frame as long as the component is enabled.
Access functions:
Qt3DRender::QAbstractRayCaster::RunMode | runMode() const |
void | setRunMode(Qt3DRender::QAbstractRayCaster::RunMode runMode) |
Notifier signal:
void | runModeChanged(Qt3DRender::QAbstractRayCaster::RunMode runMode) |
Trait Implementations
impl CppDeletable for QRayCaster
[src]
unsafe fn delete(&self)
[src]
Calls C++ function: virtual [destructor] void Qt3DRender::QRayCaster::~QRayCaster()
.
impl Deref for QRayCaster
[src]
type Target = QAbstractRayCaster
The resulting type after dereferencing.
fn deref(&self) -> &QAbstractRayCaster
[src]
Calls C++ function: Qt3DRender::QAbstractRayCaster* static_cast<Qt3DRender::QAbstractRayCaster*>(Qt3DRender::QRayCaster* ptr)
.
impl DynamicCast<QRayCaster> for QAbstractRayCaster
[src]
unsafe fn dynamic_cast(ptr: Ptr<QAbstractRayCaster>) -> Ptr<QRayCaster>
[src]
Calls C++ function: Qt3DRender::QRayCaster* dynamic_cast<Qt3DRender::QRayCaster*>(Qt3DRender::QAbstractRayCaster* ptr)
.
impl DynamicCast<QRayCaster> for QComponent
[src]
unsafe fn dynamic_cast(ptr: Ptr<QComponent>) -> Ptr<QRayCaster>
[src]
Calls C++ function: Qt3DRender::QRayCaster* dynamic_cast<Qt3DRender::QRayCaster*>(Qt3DCore::QComponent* ptr)
.
impl DynamicCast<QRayCaster> for QNode
[src]
unsafe fn dynamic_cast(ptr: Ptr<QNode>) -> Ptr<QRayCaster>
[src]
Calls C++ function: Qt3DRender::QRayCaster* dynamic_cast<Qt3DRender::QRayCaster*>(Qt3DCore::QNode* ptr)
.
impl DynamicCast<QRayCaster> for QObject
[src]
unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QRayCaster>
[src]
Calls C++ function: Qt3DRender::QRayCaster* dynamic_cast<Qt3DRender::QRayCaster*>(QObject* ptr)
.
impl StaticDowncast<QRayCaster> for QAbstractRayCaster
[src]
unsafe fn static_downcast(ptr: Ptr<QAbstractRayCaster>) -> Ptr<QRayCaster>
[src]
Calls C++ function: Qt3DRender::QRayCaster* static_cast<Qt3DRender::QRayCaster*>(Qt3DRender::QAbstractRayCaster* ptr)
.
impl StaticDowncast<QRayCaster> for QComponent
[src]
unsafe fn static_downcast(ptr: Ptr<QComponent>) -> Ptr<QRayCaster>
[src]
Calls C++ function: Qt3DRender::QRayCaster* static_cast<Qt3DRender::QRayCaster*>(Qt3DCore::QComponent* ptr)
.
impl StaticDowncast<QRayCaster> for QNode
[src]
unsafe fn static_downcast(ptr: Ptr<QNode>) -> Ptr<QRayCaster>
[src]
Calls C++ function: Qt3DRender::QRayCaster* static_cast<Qt3DRender::QRayCaster*>(Qt3DCore::QNode* ptr)
.
impl StaticDowncast<QRayCaster> for QObject
[src]
unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QRayCaster>
[src]
Calls C++ function: Qt3DRender::QRayCaster* static_cast<Qt3DRender::QRayCaster*>(QObject* ptr)
.
impl StaticUpcast<QAbstractRayCaster> for QRayCaster
[src]
unsafe fn static_upcast(ptr: Ptr<QRayCaster>) -> Ptr<QAbstractRayCaster>
[src]
Calls C++ function: Qt3DRender::QAbstractRayCaster* static_cast<Qt3DRender::QAbstractRayCaster*>(Qt3DRender::QRayCaster* ptr)
.
impl StaticUpcast<QComponent> for QRayCaster
[src]
unsafe fn static_upcast(ptr: Ptr<QRayCaster>) -> Ptr<QComponent>
[src]
Calls C++ function: Qt3DCore::QComponent* static_cast<Qt3DCore::QComponent*>(Qt3DRender::QRayCaster* ptr)
.
impl StaticUpcast<QNode> for QRayCaster
[src]
unsafe fn static_upcast(ptr: Ptr<QRayCaster>) -> Ptr<QNode>
[src]
Calls C++ function: Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DRender::QRayCaster* ptr)
.
impl StaticUpcast<QObject> for QRayCaster
[src]
unsafe fn static_upcast(ptr: Ptr<QRayCaster>) -> Ptr<QObject>
[src]
Calls C++ function: QObject* static_cast<QObject*>(Qt3DRender::QRayCaster* ptr)
.
Auto Trait Implementations
impl RefUnwindSafe for QRayCaster
impl Send for QRayCaster
impl Sync for QRayCaster
impl Unpin for QRayCaster
impl UnwindSafe for QRayCaster
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]
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>,