[][src]Struct qt_3d_extras::QPlaneGeometry

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

The QPlaneGeometry class allows creation of a plane in 3D space.

C++ class: Qt3DExtras::QPlaneGeometry.

C++ documentation:

The QPlaneGeometry class allows creation of a plane in 3D space.

The QPlaneGeometry class is most commonly used internally by the QPlaneMesh but can also be used in custom Qt3DRender::QGeometryRenderer subclasses.

Methods

impl QPlaneGeometry[src]

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

Holds the plane resolution.

Returns a built-in Qt slot Qt3DExtras::QPlaneGeometry::setResolution that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the plane resolution.

Access functions:

QSize resolution() const
void setResolution(const QSize &resolution)

Notifier signal:

void resolutionChanged(const QSize &resolution)

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

Holds the plane width.

Returns a built-in Qt slot Qt3DExtras::QPlaneGeometry::setWidth that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the plane width.

Access functions:

float width() const
void setWidth(float width)

Notifier signal:

void widthChanged(float width)

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

Holds the plane height.

Returns a built-in Qt slot Qt3DExtras::QPlaneGeometry::setHeight that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the plane height.

Access functions:

float height() const
void setHeight(float height)

Notifier signal:

void heightChanged(float height)

pub fn slot_set_mirrored(&self) -> Receiver<(bool,)>[src]

Controls if the UV coordinates of the plane should be flipped vertically.

Returns a built-in Qt slot Qt3DExtras::QPlaneGeometry::setMirrored that can be passed to qt_core::Signal::connect.

C++ documentation:

Controls if the UV coordinates of the plane should be flipped vertically.

This property was introduced in Qt 5.9.

Access functions:

bool mirrored() const
void setMirrored(bool mirrored)

Notifier signal:

void mirroredChanged(bool mirrored)

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

Holds the plane resolution.

Returns a built-in Qt signal Qt3DExtras::QPlaneGeometry::resolutionChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the plane resolution.

Access functions:

QSize resolution() const
void setResolution(const QSize &resolution)

Notifier signal:

void resolutionChanged(const QSize &resolution)

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

Holds the plane width.

Returns a built-in Qt signal Qt3DExtras::QPlaneGeometry::widthChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the plane width.

Access functions:

float width() const
void setWidth(float width)

Notifier signal:

void widthChanged(float width)

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

Holds the plane height.

Returns a built-in Qt signal Qt3DExtras::QPlaneGeometry::heightChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Holds the plane height.

Access functions:

float height() const
void setHeight(float height)

Notifier signal:

void heightChanged(float height)

pub fn mirrored_changed(&self) -> Signal<(bool,)>[src]

Controls if the UV coordinates of the plane should be flipped vertically.

Returns a built-in Qt signal Qt3DExtras::QPlaneGeometry::mirroredChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

Controls if the UV coordinates of the plane should be flipped vertically.

This property was introduced in Qt 5.9.

Access functions:

bool mirrored() const
void setMirrored(bool mirrored)

Notifier signal:

void mirroredChanged(bool mirrored)

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

Holds the plane height.

Calls C++ function: float Qt3DExtras::QPlaneGeometry::height() const.

C++ documentation:

Holds the plane height.

Access functions:

float height() const
void setHeight(float height)

Notifier signal:

void heightChanged(float height)

pub unsafe fn index_attribute(&self) -> MutPtr<QAttribute>[src]

Holds the geometry index attribute.

Calls C++ function: Qt3DRender::QAttribute* Qt3DExtras::QPlaneGeometry::indexAttribute() const.

C++ documentation:

Holds the geometry index attribute.

Access functions:

Qt3DRender::QAttribute *indexAttribute() const

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

Calls C++ function: virtual const QMetaObject* Qt3DExtras::QPlaneGeometry::metaObject() const.

pub unsafe fn mirrored(&self) -> bool[src]

Controls if the UV coordinates of the plane should be flipped vertically.

Calls C++ function: bool Qt3DExtras::QPlaneGeometry::mirrored() const.

C++ documentation:

Controls if the UV coordinates of the plane should be flipped vertically.

This property was introduced in Qt 5.9.

Access functions:

bool mirrored() const
void setMirrored(bool mirrored)

Notifier signal:

void mirroredChanged(bool mirrored)

pub unsafe fn new_1a(
    parent: impl CastInto<MutPtr<QNode>>
) -> CppBox<QPlaneGeometry>
[src]

Constructs a new QPlaneGeometry with parent.

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

C++ documentation:

Constructs a new QPlaneGeometry with parent.

pub unsafe fn new_0a() -> CppBox<QPlaneGeometry>[src]

The QPlaneGeometry class allows creation of a plane in 3D space.

Calls C++ function: [constructor] void Qt3DExtras::QPlaneGeometry::QPlaneGeometry().

C++ documentation:

The QPlaneGeometry class allows creation of a plane in 3D space.

The QPlaneGeometry class is most commonly used internally by the QPlaneMesh but can also be used in custom Qt3DRender::QGeometryRenderer subclasses.

pub unsafe fn normal_attribute(&self) -> MutPtr<QAttribute>[src]

Holds the geometry normal attribute.

Calls C++ function: Qt3DRender::QAttribute* Qt3DExtras::QPlaneGeometry::normalAttribute() const.

C++ documentation:

Holds the geometry normal attribute.

Access functions:

Qt3DRender::QAttribute *normalAttribute() const

pub unsafe fn position_attribute(&self) -> MutPtr<QAttribute>[src]

Holds the geometry position attribute.

Calls C++ function: Qt3DRender::QAttribute* Qt3DExtras::QPlaneGeometry::positionAttribute() const.

C++ documentation:

Holds the geometry position attribute.

Access functions:

Qt3DRender::QAttribute *positionAttribute() const

pub unsafe fn qt_metacall(
    &mut self,
    arg1: Call,
    arg2: c_int,
    arg3: impl CastInto<MutPtr<*mut c_void>>
) -> c_int
[src]

Calls C++ function: virtual int Qt3DExtras::QPlaneGeometry::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]

Calls C++ function: virtual void* Qt3DExtras::QPlaneGeometry::qt_metacast(const char* arg1).

pub unsafe fn resolution(&self) -> CppBox<QSize>[src]

Holds the plane resolution.

Calls C++ function: QSize Qt3DExtras::QPlaneGeometry::resolution() const.

C++ documentation:

Holds the plane resolution.

Access functions:

QSize resolution() const
void setResolution(const QSize &resolution)

Notifier signal:

void resolutionChanged(const QSize &resolution)

pub unsafe fn set_height(&mut self, height: c_float)[src]

Holds the plane height.

Calls C++ function: [slot] void Qt3DExtras::QPlaneGeometry::setHeight(float height).

C++ documentation:

Holds the plane height.

Access functions:

float height() const
void setHeight(float height)

Notifier signal:

void heightChanged(float height)

pub unsafe fn set_mirrored(&mut self, mirrored: bool)[src]

Controls if the UV coordinates of the plane should be flipped vertically.

Calls C++ function: [slot] void Qt3DExtras::QPlaneGeometry::setMirrored(bool mirrored).

C++ documentation:

Controls if the UV coordinates of the plane should be flipped vertically.

This property was introduced in Qt 5.9.

Access functions:

bool mirrored() const
void setMirrored(bool mirrored)

Notifier signal:

void mirroredChanged(bool mirrored)

pub unsafe fn set_resolution(&mut self, resolution: impl CastInto<Ref<QSize>>)[src]

Holds the plane resolution.

Calls C++ function: [slot] void Qt3DExtras::QPlaneGeometry::setResolution(const QSize& resolution).

C++ documentation:

Holds the plane resolution.

Access functions:

QSize resolution() const
void setResolution(const QSize &resolution)

Notifier signal:

void resolutionChanged(const QSize &resolution)

pub unsafe fn set_width(&mut self, width: c_float)[src]

Holds the plane width.

Calls C++ function: [slot] void Qt3DExtras::QPlaneGeometry::setWidth(float width).

C++ documentation:

Holds the plane width.

Access functions:

float width() const
void setWidth(float width)

Notifier signal:

void widthChanged(float width)

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

Returns a reference to the staticMetaObject field.

pub unsafe fn tangent_attribute(&self) -> MutPtr<QAttribute>[src]

Holds the geometry tangent attribute.

Calls C++ function: Qt3DRender::QAttribute* Qt3DExtras::QPlaneGeometry::tangentAttribute() const.

C++ documentation:

Holds the geometry tangent attribute.

Access functions:

Qt3DRender::QAttribute *tangentAttribute() const

pub unsafe fn tex_coord_attribute(&self) -> MutPtr<QAttribute>[src]

Holds the geometry texture coordinate attribute.

Calls C++ function: Qt3DRender::QAttribute* Qt3DExtras::QPlaneGeometry::texCoordAttribute() const.

C++ documentation:

Holds the geometry texture coordinate attribute.

Access functions:

Qt3DRender::QAttribute *texCoordAttribute() const

pub unsafe fn tr(
    s: impl CastInto<Ptr<c_char>>,
    c: impl CastInto<Ptr<c_char>>,
    n: c_int
) -> CppBox<QString>
[src]

Calls C++ function: static QString Qt3DExtras::QPlaneGeometry::tr(const char* s, const char* c, int n).

pub unsafe fn tr_utf8(
    s: impl CastInto<Ptr<c_char>>,
    c: impl CastInto<Ptr<c_char>>,
    n: c_int
) -> CppBox<QString>
[src]

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

pub unsafe fn update_indices(&mut self)[src]

Updates indices based on mesh resolution.

Calls C++ function: void Qt3DExtras::QPlaneGeometry::updateIndices().

C++ documentation:

Updates indices based on mesh resolution.

pub unsafe fn update_vertices(&mut self)[src]

Updates vertices based on mesh resolution, width, and height properties.

Calls C++ function: void Qt3DExtras::QPlaneGeometry::updateVertices().

C++ documentation:

Updates vertices based on mesh resolution, width, and height properties.

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

Holds the plane width.

Calls C++ function: float Qt3DExtras::QPlaneGeometry::width() const.

C++ documentation:

Holds the plane width.

Access functions:

float width() const
void setWidth(float width)

Notifier signal:

void widthChanged(float width)

Methods from Deref<Target = QGeometry>

pub fn slot_set_bounding_volume_position_attribute(
    &self
) -> Receiver<(*mut QAttribute,)>
[src]

Holds the attribute used to compute the bounding volume. The bounding volume is used internally for picking and view frustum culling.

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

C++ documentation:

Holds the attribute used to compute the bounding volume. The bounding volume is used internally for picking and view frustum culling.

If unspecified, the system will look for the attribute using the name returned by QAttribute::defaultPositionAttributeName.

Access functions:

QAttribute *boundingVolumePositionAttribute() const
void setBoundingVolumePositionAttribute(QAttribute *boundingVolumePositionAttribute)

Notifier signal:

void boundingVolumePositionAttributeChanged(QAttribute *boundingVolumePositionAttribute)

See also Qt3DRender::QAttribute.

pub fn bounding_volume_position_attribute_changed(
    &self
) -> Signal<(*mut QAttribute,)>
[src]

Holds the attribute used to compute the bounding volume. The bounding volume is used internally for picking and view frustum culling.

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

C++ documentation:

Holds the attribute used to compute the bounding volume. The bounding volume is used internally for picking and view frustum culling.

If unspecified, the system will look for the attribute using the name returned by QAttribute::defaultPositionAttributeName.

Access functions:

QAttribute *boundingVolumePositionAttribute() const
void setBoundingVolumePositionAttribute(QAttribute *boundingVolumePositionAttribute)

Notifier signal:

void boundingVolumePositionAttributeChanged(QAttribute *boundingVolumePositionAttribute)

See also Qt3DRender::QAttribute.

pub unsafe fn add_attribute(
    &mut self,
    attribute: impl CastInto<MutPtr<QAttribute>>
)
[src]

Adds an attribute to this geometry.

Calls C++ function: void Qt3DRender::QGeometry::addAttribute(Qt3DRender::QAttribute* attribute).

C++ documentation:

Adds an attribute to this geometry.

pub unsafe fn attributes(&self) -> CppBox<QVectorOfQAttribute>[src]

Returns the list of attributes in this geometry.

Calls C++ function: QVector<Qt3DRender::QAttribute*> Qt3DRender::QGeometry::attributes() const.

C++ documentation:

Returns the list of attributes in this geometry.

pub unsafe fn bounding_volume_position_attribute(&self) -> MutPtr<QAttribute>[src]

Holds the attribute used to compute the bounding volume. The bounding volume is used internally for picking and view frustum culling.

Calls C++ function: Qt3DRender::QAttribute* Qt3DRender::QGeometry::boundingVolumePositionAttribute() const.

C++ documentation:

Holds the attribute used to compute the bounding volume. The bounding volume is used internally for picking and view frustum culling.

If unspecified, the system will look for the attribute using the name returned by QAttribute::defaultPositionAttributeName.

Access functions:

QAttribute *boundingVolumePositionAttribute() const
void setBoundingVolumePositionAttribute(QAttribute *boundingVolumePositionAttribute)

Notifier signal:

void boundingVolumePositionAttributeChanged(QAttribute *boundingVolumePositionAttribute)

See also Qt3DRender::QAttribute.

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

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

pub unsafe fn qt_metacall(
    &mut self,
    arg1: Call,
    arg2: i32,
    arg3: impl CastInto<MutPtr<*mut c_void>>
) -> i32
[src]

Calls C++ function: virtual int Qt3DRender::QGeometry::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3).

pub unsafe fn qt_metacast(
    &mut self,
    arg1: impl CastInto<Ptr<i8>>
) -> MutPtr<c_void>
[src]

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

pub unsafe fn remove_attribute(
    &mut self,
    attribute: impl CastInto<MutPtr<QAttribute>>
)
[src]

Removes the given attribute from this geometry.

Calls C++ function: void Qt3DRender::QGeometry::removeAttribute(Qt3DRender::QAttribute* attribute).

C++ documentation:

Removes the given attribute from this geometry.

pub unsafe fn set_bounding_volume_position_attribute(
    &mut self,
    bounding_volume_position_attribute: impl CastInto<MutPtr<QAttribute>>
)
[src]

Holds the attribute used to compute the bounding volume. The bounding volume is used internally for picking and view frustum culling.

Calls C++ function: [slot] void Qt3DRender::QGeometry::setBoundingVolumePositionAttribute(Qt3DRender::QAttribute* boundingVolumePositionAttribute).

C++ documentation:

Holds the attribute used to compute the bounding volume. The bounding volume is used internally for picking and view frustum culling.

If unspecified, the system will look for the attribute using the name returned by QAttribute::defaultPositionAttributeName.

Access functions:

QAttribute *boundingVolumePositionAttribute() const
void setBoundingVolumePositionAttribute(QAttribute *boundingVolumePositionAttribute)

Notifier signal:

void boundingVolumePositionAttributeChanged(QAttribute *boundingVolumePositionAttribute)

See also Qt3DRender::QAttribute.

Trait Implementations

impl Deref for QPlaneGeometry[src]

type Target = QGeometry

The resulting type after dereferencing.

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

Calls C++ function: Qt3DRender::QGeometry* static_cast<Qt3DRender::QGeometry*>(Qt3DExtras::QPlaneGeometry* ptr).

impl DerefMut for QPlaneGeometry[src]

fn deref_mut(&mut self) -> &mut QGeometry[src]

Calls C++ function: Qt3DRender::QGeometry* static_cast<Qt3DRender::QGeometry*>(Qt3DExtras::QPlaneGeometry* ptr).

impl StaticUpcast<QGeometry> for QPlaneGeometry[src]

unsafe fn static_upcast(ptr: Ptr<QPlaneGeometry>) -> Ptr<QGeometry>[src]

Calls C++ function: Qt3DRender::QGeometry* static_cast<Qt3DRender::QGeometry*>(Qt3DExtras::QPlaneGeometry* ptr).

unsafe fn static_upcast_mut(ptr: MutPtr<QPlaneGeometry>) -> MutPtr<QGeometry>[src]

Calls C++ function: Qt3DRender::QGeometry* static_cast<Qt3DRender::QGeometry*>(Qt3DExtras::QPlaneGeometry* ptr).

impl StaticUpcast<QNode> for QPlaneGeometry[src]

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

Calls C++ function: Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QPlaneGeometry* ptr).

unsafe fn static_upcast_mut(ptr: MutPtr<QPlaneGeometry>) -> MutPtr<QNode>[src]

Calls C++ function: Qt3DCore::QNode* static_cast<Qt3DCore::QNode*>(Qt3DExtras::QPlaneGeometry* ptr).

impl StaticUpcast<QObject> for QPlaneGeometry[src]

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

Calls C++ function: QObject* static_cast<QObject*>(Qt3DExtras::QPlaneGeometry* ptr).

unsafe fn static_upcast_mut(ptr: MutPtr<QPlaneGeometry>) -> MutPtr<QObject>[src]

Calls C++ function: QObject* static_cast<QObject*>(Qt3DExtras::QPlaneGeometry* ptr).

impl StaticDowncast<QPlaneGeometry> for QGeometry[src]

unsafe fn static_downcast(ptr: Ptr<QGeometry>) -> Ptr<QPlaneGeometry>[src]

Calls C++ function: Qt3DExtras::QPlaneGeometry* static_cast<Qt3DExtras::QPlaneGeometry*>(Qt3DRender::QGeometry* ptr).

unsafe fn static_downcast_mut(ptr: MutPtr<QGeometry>) -> MutPtr<QPlaneGeometry>[src]

Calls C++ function: Qt3DExtras::QPlaneGeometry* static_cast<Qt3DExtras::QPlaneGeometry*>(Qt3DRender::QGeometry* ptr).

impl StaticDowncast<QPlaneGeometry> for QNode[src]

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

Calls C++ function: Qt3DExtras::QPlaneGeometry* static_cast<Qt3DExtras::QPlaneGeometry*>(Qt3DCore::QNode* ptr).

unsafe fn static_downcast_mut(ptr: MutPtr<QNode>) -> MutPtr<QPlaneGeometry>[src]

Calls C++ function: Qt3DExtras::QPlaneGeometry* static_cast<Qt3DExtras::QPlaneGeometry*>(Qt3DCore::QNode* ptr).

impl StaticDowncast<QPlaneGeometry> for QObject[src]

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

Calls C++ function: Qt3DExtras::QPlaneGeometry* static_cast<Qt3DExtras::QPlaneGeometry*>(QObject* ptr).

unsafe fn static_downcast_mut(ptr: MutPtr<QObject>) -> MutPtr<QPlaneGeometry>[src]

Calls C++ function: Qt3DExtras::QPlaneGeometry* static_cast<Qt3DExtras::QPlaneGeometry*>(QObject* ptr).

impl DynamicCast<QPlaneGeometry> for QGeometry[src]

unsafe fn dynamic_cast(ptr: Ptr<QGeometry>) -> Ptr<QPlaneGeometry>[src]

Calls C++ function: Qt3DExtras::QPlaneGeometry* dynamic_cast<Qt3DExtras::QPlaneGeometry*>(Qt3DRender::QGeometry* ptr).

unsafe fn dynamic_cast_mut(ptr: MutPtr<QGeometry>) -> MutPtr<QPlaneGeometry>[src]

Calls C++ function: Qt3DExtras::QPlaneGeometry* dynamic_cast<Qt3DExtras::QPlaneGeometry*>(Qt3DRender::QGeometry* ptr).

impl DynamicCast<QPlaneGeometry> for QNode[src]

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

Calls C++ function: Qt3DExtras::QPlaneGeometry* dynamic_cast<Qt3DExtras::QPlaneGeometry*>(Qt3DCore::QNode* ptr).

unsafe fn dynamic_cast_mut(ptr: MutPtr<QNode>) -> MutPtr<QPlaneGeometry>[src]

Calls C++ function: Qt3DExtras::QPlaneGeometry* dynamic_cast<Qt3DExtras::QPlaneGeometry*>(Qt3DCore::QNode* ptr).

impl DynamicCast<QPlaneGeometry> for QObject[src]

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

Calls C++ function: Qt3DExtras::QPlaneGeometry* dynamic_cast<Qt3DExtras::QPlaneGeometry*>(QObject* ptr).

unsafe fn dynamic_cast_mut(ptr: MutPtr<QObject>) -> MutPtr<QPlaneGeometry>[src]

Calls C++ function: Qt3DExtras::QPlaneGeometry* dynamic_cast<Qt3DExtras::QPlaneGeometry*>(QObject* ptr).

impl CppDeletable for QPlaneGeometry[src]

unsafe fn delete(&mut self)[src]

Calls C++ function: virtual [destructor] void Qt3DExtras::QPlaneGeometry::~QPlaneGeometry().

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<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.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]