[−][src]Struct qt_3d_render::QDepthRange
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
.
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]
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
.
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) |
This item is available if cpp_lib_version="5.14.0"
.
pub fn slot_set_far_value(&self) -> Receiver<(c_double,)>
[src]
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
.
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) |
This item is available if cpp_lib_version="5.14.0"
.
pub fn near_value_changed(&self) -> Signal<(c_double,)>
[src]
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
.
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) |
This item is available if cpp_lib_version="5.14.0"
.
pub fn far_value_changed(&self) -> Signal<(c_double,)>
[src]
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
.
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) |
This item is available if cpp_lib_version="5.14.0"
.
pub unsafe fn far_value(&self) -> c_double
[src]
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
.
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) |
This item is available if cpp_lib_version="5.14.0"
.
pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>
[src]
Calls C++ function: virtual const QMetaObject* Qt3DRender::QDepthRange::metaObject() const
.
This item is available if cpp_lib_version="5.14.0"
.
pub unsafe fn near_value(&self) -> c_double
[src]
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
.
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) |
This item is available if cpp_lib_version="5.14.0"
.
pub unsafe fn new_1a(parent: impl CastInto<MutPtr<QNode>>) -> QBox<QDepthRange>
[src]
Calls C++ function: [constructor] void Qt3DRender::QDepthRange::QDepthRange(Qt3DCore::QNode* parent = …)
.
This item is available if cpp_lib_version="5.14.0"
.
pub unsafe fn new_0a() -> QBox<QDepthRange>
[src]
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()
.
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.
This item is available if 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::QDepthRange::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3)
.
This item is available if 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::QDepthRange::qt_metacast(const char* arg1)
.
This item is available if cpp_lib_version="5.14.0"
.
pub unsafe fn set_far_value(&mut self, value: c_double)
[src]
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)
.
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) |
This item is available if cpp_lib_version="5.14.0"
.
pub unsafe fn set_near_value(&mut self, value: c_double)
[src]
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)
.
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) |
This item is available if 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 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::QDepthRange::tr(const char* s, const char* c, int n)
.
This item is available if 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::QDepthRange::trUtf8(const char* s, const char* c, int n)
.
This item is available if cpp_lib_version="5.14.0"
.
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(
&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::QRenderState::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::QRenderState::qt_metacast(const char* arg1)
.
Trait Implementations
impl CppDeletable for QDepthRange
[src]
unsafe fn delete(&mut 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 DerefMut for QDepthRange
[src]
fn deref_mut(&mut self) -> &mut 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)
.
unsafe fn dynamic_cast_mut(ptr: MutPtr<QRenderState>) -> MutPtr<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)
.
unsafe fn dynamic_cast_mut(ptr: MutPtr<QNode>) -> MutPtr<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)
.
unsafe fn dynamic_cast_mut(ptr: MutPtr<QObject>) -> MutPtr<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)
.
unsafe fn static_downcast_mut(ptr: MutPtr<QRenderState>) -> MutPtr<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)
.
unsafe fn static_downcast_mut(ptr: MutPtr<QNode>) -> MutPtr<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)
.
unsafe fn static_downcast_mut(ptr: MutPtr<QObject>) -> MutPtr<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)
.
unsafe fn static_upcast_mut(ptr: MutPtr<QDepthRange>) -> MutPtr<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)
.
unsafe fn static_upcast_mut(ptr: MutPtr<QDepthRange>) -> MutPtr<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)
.
unsafe fn static_upcast_mut(ptr: MutPtr<QDepthRange>) -> MutPtr<QRenderState>
[src]
Calls C++ function: Qt3DRender::QRenderState* static_cast<Qt3DRender::QRenderState*>(Qt3DRender::QDepthRange* ptr)
.
Auto Trait Implementations
impl RefUnwindSafe for QDepthRange
impl Send for QDepthRange
impl Sync for QDepthRange
impl Unpin for QDepthRange
impl UnwindSafe for QDepthRange
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>,