[][src]Struct qt_3d_render::QClipPlane

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

Enables an additional OpenGL clipping plane that can be in shaders using gl_ClipDistance

C++ class: Qt3DRender::QClipPlane.

C++ documentation:

Enables an additional OpenGL clipping plane that can be in shaders using gl_ClipDistance

By default, OpenGL supports up to 8 additional clipping planes. Qt3DCore::QClipPlane allows to enable one of these additional planes. These planes can then be manipulated in the shaders using gl_ClipDistance[i] where i varies between 0 and 7. The underlying implementation may support more than 8 clip planes, but it is not guaranteed.

Methods

impl QClipPlane[src]

pub fn slot_set_plane_index(&self) -> Receiver<(c_int,)>[src]

Holds the index of the plane.

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

C++ documentation:

Holds the index of the plane.

Note: Usually between 0-7.

Access functions:

int planeIndex() const
void setPlaneIndex(int)

Notifier signal:

void planeIndexChanged(int planeIndex)

pub fn slot_set_normal(&self) -> Receiver<(*const QVector3D,)>[src]

Holds the normal of the plane.

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

C++ documentation:

Holds the normal of the plane.

Access functions:

QVector3D normal() const
void setNormal(QVector3D)

Notifier signal:

void normalChanged(QVector3D normal)

pub fn slot_set_distance(&self) -> Receiver<(c_float,)>[src]

Holds the distance of the plane from the world origin.

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

C++ documentation:

Holds the distance of the plane from the world origin.

Access functions:

float distance() const
void setDistance(float)

Notifier signal:

void distanceChanged(float distance)

pub fn plane_index_changed(&self) -> Signal<(c_int,)>[src]

Holds the index of the plane.

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

C++ documentation:

Holds the index of the plane.

Note: Usually between 0-7.

Access functions:

int planeIndex() const
void setPlaneIndex(int)

Notifier signal:

void planeIndexChanged(int planeIndex)

pub fn normal_changed(&self) -> Signal<(*const QVector3D,)>[src]

Holds the normal of the plane.

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

C++ documentation:

Holds the normal of the plane.

Access functions:

QVector3D normal() const
void setNormal(QVector3D)

Notifier signal:

void normalChanged(QVector3D normal)

pub fn distance_changed(&self) -> Signal<(c_float,)>[src]

Holds the distance of the plane from the world origin.

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

C++ documentation:

Holds the distance of the plane from the world origin.

Access functions:

float distance() const
void setDistance(float)

Notifier signal:

void distanceChanged(float distance)

pub unsafe fn distance(&self) -> c_float[src]

Holds the distance of the plane from the world origin.

Calls C++ function: float Qt3DRender::QClipPlane::distance() const.

C++ documentation:

Holds the distance of the plane from the world origin.

Access functions:

float distance() const
void setDistance(float)

Notifier signal:

void distanceChanged(float distance)

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

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

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

Default constructs an instance of QClipPlane.

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

C++ documentation:

Default constructs an instance of QClipPlane.

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

Enables an additional OpenGL clipping plane that can be in shaders using gl_ClipDistance

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

C++ documentation:

Enables an additional OpenGL clipping plane that can be in shaders using gl_ClipDistance

By default, OpenGL supports up to 8 additional clipping planes. Qt3DCore::QClipPlane allows to enable one of these additional planes. These planes can then be manipulated in the shaders using gl_ClipDistance[i] where i varies between 0 and 7. The underlying implementation may support more than 8 clip planes, but it is not guaranteed.

pub unsafe fn normal(&self) -> CppBox<QVector3D>[src]

Holds the normal of the plane.

Calls C++ function: QVector3D Qt3DRender::QClipPlane::normal() const.

C++ documentation:

Holds the normal of the plane.

Access functions:

QVector3D normal() const
void setNormal(QVector3D)

Notifier signal:

void normalChanged(QVector3D normal)

pub unsafe fn plane_index(&self) -> c_int[src]

Holds the index of the plane.

Calls C++ function: int Qt3DRender::QClipPlane::planeIndex() const.

C++ documentation:

Holds the index of the plane.

Note: Usually between 0-7.

Access functions:

int planeIndex() const
void setPlaneIndex(int)

Notifier signal:

void planeIndexChanged(int planeIndex)

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

pub unsafe fn set_distance(&self, arg1: c_float)[src]

Holds the distance of the plane from the world origin.

Calls C++ function: [slot] void Qt3DRender::QClipPlane::setDistance(float arg1).

C++ documentation:

Holds the distance of the plane from the world origin.

Access functions:

float distance() const
void setDistance(float)

Notifier signal:

void distanceChanged(float distance)

pub unsafe fn set_normal(&self, arg1: impl CastInto<Ref<QVector3D>>)[src]

Holds the normal of the plane.

Calls C++ function: [slot] void Qt3DRender::QClipPlane::setNormal(QVector3D arg1).

C++ documentation:

Holds the normal of the plane.

Access functions:

QVector3D normal() const
void setNormal(QVector3D)

Notifier signal:

void normalChanged(QVector3D normal)

pub unsafe fn set_plane_index(&self, arg1: c_int)[src]

Holds the index of the plane.

Calls C++ function: [slot] void Qt3DRender::QClipPlane::setPlaneIndex(int arg1).

C++ documentation:

Holds the index of the plane.

Note: Usually between 0-7.

Access functions:

int planeIndex() const
void setPlaneIndex(int)

Notifier signal:

void planeIndexChanged(int planeIndex)

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

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]

Calls C++ function: static QString Qt3DRender::QClipPlane::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]

Calls C++ function: static QString Qt3DRender::QClipPlane::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 QClipPlane[src]

unsafe fn delete(&self)[src]

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

impl Deref for QClipPlane[src]

type Target = QRenderState

The resulting type after dereferencing.

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

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

impl DynamicCast<QClipPlane> for QRenderState[src]

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

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

impl DynamicCast<QClipPlane> for QNode[src]

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

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

impl DynamicCast<QClipPlane> for QObject[src]

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

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

impl StaticDowncast<QClipPlane> for QRenderState[src]

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

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

impl StaticDowncast<QClipPlane> for QNode[src]

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

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

impl StaticDowncast<QClipPlane> for QObject[src]

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

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

impl StaticUpcast<QNode> for QClipPlane[src]

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

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

impl StaticUpcast<QObject> for QClipPlane[src]

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

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

impl StaticUpcast<QRenderState> for QClipPlane[src]

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

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