[][src]Struct qt_3d_render::QRayCaster

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

Qt3DRender::QRayCaster is used to perform ray casting tests in 3d world coordinates.

C++ class: Qt3DRender::QRayCaster.

C++ documentation:

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]

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.

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.

C++ documentation:

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]

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.

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.

C++ documentation:

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]

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.

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.

C++ documentation:

Sets the length of the ray to length.

If the value is less than or equal to zero, the ray is concidered to be infinite.

Note: Setter function for property length.

See also length().

pub fn slot_trigger(&self) -> Receiver<()>[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.

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.

C++ documentation:

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]

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.

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.

C++ documentation:

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]

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.

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.

C++ documentation:

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]

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.

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.

C++ documentation:

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]

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.

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.

C++ documentation:

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]

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.

Holds the direction of the 3D ray. This should be a unit vector.

Calls C++ function: QVector3D Qt3DRender::QRayCaster::direction() const.

C++ documentation:

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]

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.

Holds the length of the 3D ray.

Calls C++ function: float Qt3DRender::QRayCaster::length() const.

C++ documentation:

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]

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

pub unsafe fn new_1a(parent: impl CastInto<Ptr<QNode>>) -> QBox<QRayCaster>[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.

Default constructs an instance of QRayCaster.

Calls C++ function: [constructor] void Qt3DRender::QRayCaster::QRayCaster(Qt3DCore::QNode* parent = …).

C++ documentation:

Default constructs an instance of QRayCaster.

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

Qt3DRender::QRayCaster is used to perform ray casting tests in 3d world coordinates.

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

C++ documentation:

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]

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.

Holds the origin of the 3D ray in local coordinates.

Calls C++ function: QVector3D Qt3DRender::QRayCaster::origin() const.

C++ documentation:

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]

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::QRayCaster::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::QRayCaster::qt_metacast(const char* arg1).

pub unsafe fn set_direction(&self, direction: impl CastInto<Ref<QVector3D>>)[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.

Holds the direction of the 3D ray. This should be a unit vector.

Calls C++ function: [slot] void Qt3DRender::QRayCaster::setDirection(const QVector3D& direction).

C++ documentation:

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]

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.

Sets the length of the ray to length.

Calls C++ function: [slot] void Qt3DRender::QRayCaster::setLength(float length).

C++ documentation:

Sets the length of the ray to length.

If the value is less than or equal to zero, the ray is concidered to be infinite.

Note: Setter function for property length.

See also length().

pub unsafe fn set_origin(&self, origin: impl CastInto<Ref<QVector3D>>)[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.

Holds the origin of the 3D ray in local coordinates.

Calls C++ function: [slot] void Qt3DRender::QRayCaster::setOrigin(const QVector3D& origin).

C++ documentation:

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]

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::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]

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

pub unsafe fn trigger_0a(&self)[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.

Convenience method to enable the component and trigger tests using the current ray.

Calls C++ function: [slot] void Qt3DRender::QRayCaster::trigger().

C++ documentation:

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]

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.

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).

C++ documentation:

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]

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.

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.

C++ documentation:

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]

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.

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.

C++ documentation:

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]

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.

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.

C++ documentation:

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]

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.

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.

C++ documentation:

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]

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.

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.

C++ documentation:

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]

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.

Add layer to the current list of layers

Calls C++ function: void Qt3DRender::QAbstractRayCaster::addLayer(Qt3DRender::QLayer* layer).

C++ documentation:

Add layer to the current list of layers

pub unsafe fn filter_mode(&self) -> FilterMode[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.

Holds the filter mode specifying the entities to select for ray casting tests.

Calls C++ function: Qt3DRender::QAbstractRayCaster::FilterMode Qt3DRender::QAbstractRayCaster::filterMode() const.

C++ documentation:

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]

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.

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.

C++ documentation:

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]

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 the current list of layers

Calls C++ function: QVector<Qt3DRender::QLayer*> Qt3DRender::QAbstractRayCaster::layers() const.

C++ documentation:

Returns the current list of layers

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::QAbstractRayCaster::metaObject() 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::QAbstractRayCaster::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::QAbstractRayCaster::qt_metacast(const char* arg1).

pub unsafe fn remove_layer(&self, layer: impl CastInto<Ptr<QLayer>>)[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.

Remove layer from the current list of layers

Calls C++ function: void Qt3DRender::QAbstractRayCaster::removeLayer(Qt3DRender::QLayer* layer).

C++ documentation:

Remove layer from the current list of layers

pub unsafe fn run_mode(&self) -> RunMode[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.

Holds the run mode controlling how often ray casting tests are performed.

Calls C++ function: Qt3DRender::QAbstractRayCaster::RunMode Qt3DRender::QAbstractRayCaster::runMode() const.

C++ documentation:

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]

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.

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).

C++ documentation:

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]

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.

Holds the run mode controlling how often ray casting tests are performed.

Calls C++ function: [slot] void Qt3DRender::QAbstractRayCaster::setRunMode(Qt3DRender::QAbstractRayCaster::RunMode runMode).

C++ documentation:

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

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.