[][src]Struct qt_3d_render::QDepthRange

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

By default, OpenGL writes scene depth information into the depth buffer in the range [0.0, 1.0] with 0.0 corresponding to the near clip plane and 1.0 to the far clip plane. QDepthRange allows mapping these values into a different range so parts of the scene are always rendered in front of or behind other parts. Valid values for near and far are between 0 and 1.

C++ class: Qt3DRender::QDepthRange.

C++ documentation:

By default, OpenGL writes scene depth information into the depth buffer in the range [0.0, 1.0] with 0.0 corresponding to the near clip plane and 1.0 to the far clip plane. QDepthRange allows mapping these values into a different range so parts of the scene are always rendered in front of or behind other parts. Valid values for near and far are between 0 and 1.

Methods

impl QDepthRange[src]

pub fn slot_set_near_value(&self) -> Receiver<(c_double,)>[src]

This is supported on cpp_lib_version="5.14.0" only.

The depth buffer value corresponding to the near clip plane. Valid values for are between 0 and 1.

Returns a built-in Qt slot Qt3DRender::QDepthRange::setNearValue that can be passed to qt_core::Signal::connect.

C++ documentation:

The depth buffer value corresponding to the near clip plane. Valid values for are between 0 and 1.

Access functions:

double nearValue() const
void setNearValue(double value)

Notifier signal:

void nearValueChanged(double nearValue)

pub fn slot_set_far_value(&self) -> Receiver<(c_double,)>[src]

This is supported on cpp_lib_version="5.14.0" only.

The depth buffer value corresponding to the far clip plane. Valid values for are between 0 and 1.

Returns a built-in Qt slot Qt3DRender::QDepthRange::setFarValue that can be passed to qt_core::Signal::connect.

C++ documentation:

The depth buffer value corresponding to the far clip plane. Valid values for are between 0 and 1.

Access functions:

double farValue() const
void setFarValue(double value)

Notifier signal:

void farValueChanged(double farValue)

pub fn near_value_changed(&self) -> Signal<(c_double,)>[src]

This is supported on cpp_lib_version="5.14.0" only.

The depth buffer value corresponding to the near clip plane. Valid values for are between 0 and 1.

Returns a built-in Qt signal Qt3DRender::QDepthRange::nearValueChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

The depth buffer value corresponding to the near clip plane. Valid values for are between 0 and 1.

Access functions:

double nearValue() const
void setNearValue(double value)

Notifier signal:

void nearValueChanged(double nearValue)

pub fn far_value_changed(&self) -> Signal<(c_double,)>[src]

This is supported on cpp_lib_version="5.14.0" only.

The depth buffer value corresponding to the far clip plane. Valid values for are between 0 and 1.

Returns a built-in Qt signal Qt3DRender::QDepthRange::farValueChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

The depth buffer value corresponding to the far clip plane. Valid values for are between 0 and 1.

Access functions:

double farValue() const
void setFarValue(double value)

Notifier signal:

void farValueChanged(double farValue)

pub unsafe fn far_value(&self) -> c_double[src]

This is supported on cpp_lib_version="5.14.0" only.

The depth buffer value corresponding to the far clip plane. Valid values for are between 0 and 1.

Calls C++ function: double Qt3DRender::QDepthRange::farValue() const.

C++ documentation:

The depth buffer value corresponding to the far clip plane. Valid values for are between 0 and 1.

Access functions:

double farValue() const
void setFarValue(double value)

Notifier signal:

void farValueChanged(double farValue)

pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>[src]

This is supported on cpp_lib_version="5.14.0" only.

Calls C++ function: virtual const QMetaObject* Qt3DRender::QDepthRange::metaObject() const.

pub unsafe fn near_value(&self) -> c_double[src]

This is supported on cpp_lib_version="5.14.0" only.

The depth buffer value corresponding to the near clip plane. Valid values for are between 0 and 1.

Calls C++ function: double Qt3DRender::QDepthRange::nearValue() const.

C++ documentation:

The depth buffer value corresponding to the near clip plane. Valid values for are between 0 and 1.

Access functions:

double nearValue() const
void setNearValue(double value)

Notifier signal:

void nearValueChanged(double nearValue)

pub unsafe fn new_1a(parent: impl CastInto<Ptr<QNode>>) -> QBox<QDepthRange>[src]

This is supported on cpp_lib_version="5.14.0" only.

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

pub unsafe fn new_0a() -> QBox<QDepthRange>[src]

This is supported on cpp_lib_version="5.14.0" only.

By default, OpenGL writes scene depth information into the depth buffer in the range [0.0, 1.0] with 0.0 corresponding to the near clip plane and 1.0 to the far clip plane. QDepthRange allows mapping these values into a different range so parts of the scene are always rendered in front of or behind other parts. Valid values for near and far are between 0 and 1.

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

C++ documentation:

By default, OpenGL writes scene depth information into the depth buffer in the range [0.0, 1.0] with 0.0 corresponding to the near clip plane and 1.0 to the far clip plane. QDepthRange allows mapping these values into a different range so parts of the scene are always rendered in front of or behind other parts. Valid values for near and far are between 0 and 1.

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.14.0" only.

Calls C++ function: virtual int Qt3DRender::QDepthRange::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.14.0" only.

Calls C++ function: virtual void* Qt3DRender::QDepthRange::qt_metacast(const char* arg1).

pub unsafe fn set_far_value(&self, value: c_double)[src]

This is supported on cpp_lib_version="5.14.0" only.

The depth buffer value corresponding to the far clip plane. Valid values for are between 0 and 1.

Calls C++ function: [slot] void Qt3DRender::QDepthRange::setFarValue(double value).

C++ documentation:

The depth buffer value corresponding to the far clip plane. Valid values for are between 0 and 1.

Access functions:

double farValue() const
void setFarValue(double value)

Notifier signal:

void farValueChanged(double farValue)

pub unsafe fn set_near_value(&self, value: c_double)[src]

This is supported on cpp_lib_version="5.14.0" only.

The depth buffer value corresponding to the near clip plane. Valid values for are between 0 and 1.

Calls C++ function: [slot] void Qt3DRender::QDepthRange::setNearValue(double value).

C++ documentation:

The depth buffer value corresponding to the near clip plane. Valid values for are between 0 and 1.

Access functions:

double nearValue() const
void setNearValue(double value)

Notifier signal:

void nearValueChanged(double nearValue)

pub unsafe fn static_meta_object() -> Ref<QMetaObject>[src]

This is supported on 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.14.0" only.

Calls C++ function: static QString Qt3DRender::QDepthRange::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.14.0" only.

Calls C++ function: static QString Qt3DRender::QDepthRange::trUtf8(const char* s, const char* c, int n).

Methods from Deref<Target = QRenderState>

pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>[src]

Calls C++ function: virtual const QMetaObject* Qt3DRender::QRenderState::metaObject() 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::QRenderState::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::QRenderState::qt_metacast(const char* arg1).

Trait Implementations

impl CppDeletable for QDepthRange[src]

unsafe fn delete(&self)[src]

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

impl Deref for QDepthRange[src]

type Target = QRenderState

The resulting type after dereferencing.

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

Calls C++ function: Qt3DRender::QRenderState* static_cast<Qt3DRender::QRenderState*>(Qt3DRender::QDepthRange* ptr).

impl DynamicCast<QDepthRange> for QRenderState[src]

unsafe fn dynamic_cast(ptr: Ptr<QRenderState>) -> Ptr<QDepthRange>[src]

Calls C++ function: Qt3DRender::QDepthRange* dynamic_cast<Qt3DRender::QDepthRange*>(Qt3DRender::QRenderState* ptr).

impl DynamicCast<QDepthRange> for QNode[src]

unsafe fn dynamic_cast(ptr: Ptr<QNode>) -> Ptr<QDepthRange>[src]

Calls C++ function: Qt3DRender::QDepthRange* dynamic_cast<Qt3DRender::QDepthRange*>(Qt3DCore::QNode* ptr).

impl DynamicCast<QDepthRange> for QObject[src]

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

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

impl StaticDowncast<QDepthRange> for QRenderState[src]

unsafe fn static_downcast(ptr: Ptr<QRenderState>) -> Ptr<QDepthRange>[src]

Calls C++ function: Qt3DRender::QDepthRange* static_cast<Qt3DRender::QDepthRange*>(Qt3DRender::QRenderState* ptr).

impl StaticDowncast<QDepthRange> for QNode[src]

unsafe fn static_downcast(ptr: Ptr<QNode>) -> Ptr<QDepthRange>[src]

Calls C++ function: Qt3DRender::QDepthRange* static_cast<Qt3DRender::QDepthRange*>(Qt3DCore::QNode* ptr).

impl StaticDowncast<QDepthRange> for QObject[src]

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

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

impl StaticUpcast<QNode> for QDepthRange[src]

unsafe fn static_upcast(ptr: Ptr<QDepthRange>) -> Ptr<QNode>[src]

Calls C++ function: Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DRender::QDepthRange* ptr).

impl StaticUpcast<QObject> for QDepthRange[src]

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

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

impl StaticUpcast<QRenderState> for QDepthRange[src]

unsafe fn static_upcast(ptr: Ptr<QDepthRange>) -> Ptr<QRenderState>[src]

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