[][src]Struct qt_3d_extras::QSphereGeometry

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

The QSphereGeometry class allows creation of a sphere in 3D space.

C++ class: Qt3DExtras::QSphereGeometry.

C++ documentation:

The QSphereGeometry class allows creation of a sphere in 3D space.

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

Methods

impl QSphereGeometry[src]

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

Holds the number of rings in the sphere.

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

C++ documentation:

Holds the number of rings in the sphere.

Access functions:

int rings() const
void setRings(int rings)

Notifier signal:

void ringsChanged(int rings)

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

Holds the number of slices in the sphere.

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

C++ documentation:

Holds the number of slices in the sphere.

Access functions:

int slices() const
void setSlices(int slices)

Notifier signal:

void slicesChanged(int slices)

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

Holds the radius of the sphere.

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

C++ documentation:

Holds the radius of the sphere.

Access functions:

float radius() const
void setRadius(float radius)

Notifier signal:

void radiusChanged(float radius)

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

Holds the value of the automatic tangent vectors generation flag. Tangent vectors are orthogonal to normal vectors.

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

C++ documentation:

Holds the value of the automatic tangent vectors generation flag. Tangent vectors are orthogonal to normal vectors.

Access functions:

bool generateTangents() const
void setGenerateTangents(bool gen)

Notifier signal:

void generateTangentsChanged(bool generateTangents)

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

Holds the radius of the sphere.

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

C++ documentation:

Holds the radius of the sphere.

Access functions:

float radius() const
void setRadius(float radius)

Notifier signal:

void radiusChanged(float radius)

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

Holds the number of rings in the sphere.

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

C++ documentation:

Holds the number of rings in the sphere.

Access functions:

int rings() const
void setRings(int rings)

Notifier signal:

void ringsChanged(int rings)

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

Holds the number of slices in the sphere.

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

C++ documentation:

Holds the number of slices in the sphere.

Access functions:

int slices() const
void setSlices(int slices)

Notifier signal:

void slicesChanged(int slices)

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

Holds the value of the automatic tangent vectors generation flag. Tangent vectors are orthogonal to normal vectors.

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

C++ documentation:

Holds the value of the automatic tangent vectors generation flag. Tangent vectors are orthogonal to normal vectors.

Access functions:

bool generateTangents() const
void setGenerateTangents(bool gen)

Notifier signal:

void generateTangentsChanged(bool generateTangents)

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

Holds the value of the automatic tangent vectors generation flag. Tangent vectors are orthogonal to normal vectors.

Calls C++ function: bool Qt3DExtras::QSphereGeometry::generateTangents() const.

C++ documentation:

Holds the value of the automatic tangent vectors generation flag. Tangent vectors are orthogonal to normal vectors.

Access functions:

bool generateTangents() const
void setGenerateTangents(bool gen)

Notifier signal:

void generateTangentsChanged(bool generateTangents)

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

Holds the geometry index attribute.

Calls C++ function: Qt3DRender::QAttribute* Qt3DExtras::QSphereGeometry::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::QSphereGeometry::metaObject() const.

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

Constructs a new QSphereGeometry with parent.

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

C++ documentation:

Constructs a new QSphereGeometry with parent.

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

The QSphereGeometry class allows creation of a sphere in 3D space.

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

C++ documentation:

The QSphereGeometry class allows creation of a sphere in 3D space.

The QSphereGeometry class is most commonly used internally by the QSphereMesh 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::QSphereGeometry::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::QSphereGeometry::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::QSphereGeometry::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::QSphereGeometry::qt_metacast(const char* arg1).

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

Holds the radius of the sphere.

Calls C++ function: float Qt3DExtras::QSphereGeometry::radius() const.

C++ documentation:

Holds the radius of the sphere.

Access functions:

float radius() const
void setRadius(float radius)

Notifier signal:

void radiusChanged(float radius)

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

Holds the number of rings in the sphere.

Calls C++ function: int Qt3DExtras::QSphereGeometry::rings() const.

C++ documentation:

Holds the number of rings in the sphere.

Access functions:

int rings() const
void setRings(int rings)

Notifier signal:

void ringsChanged(int rings)

pub unsafe fn set_generate_tangents(&mut self, gen: bool)[src]

Holds the value of the automatic tangent vectors generation flag. Tangent vectors are orthogonal to normal vectors.

Calls C++ function: [slot] void Qt3DExtras::QSphereGeometry::setGenerateTangents(bool gen).

C++ documentation:

Holds the value of the automatic tangent vectors generation flag. Tangent vectors are orthogonal to normal vectors.

Access functions:

bool generateTangents() const
void setGenerateTangents(bool gen)

Notifier signal:

void generateTangentsChanged(bool generateTangents)

pub unsafe fn set_radius(&mut self, radius: c_float)[src]

Holds the radius of the sphere.

Calls C++ function: [slot] void Qt3DExtras::QSphereGeometry::setRadius(float radius).

C++ documentation:

Holds the radius of the sphere.

Access functions:

float radius() const
void setRadius(float radius)

Notifier signal:

void radiusChanged(float radius)

pub unsafe fn set_rings(&mut self, rings: c_int)[src]

Holds the number of rings in the sphere.

Calls C++ function: [slot] void Qt3DExtras::QSphereGeometry::setRings(int rings).

C++ documentation:

Holds the number of rings in the sphere.

Access functions:

int rings() const
void setRings(int rings)

Notifier signal:

void ringsChanged(int rings)

pub unsafe fn set_slices(&mut self, slices: c_int)[src]

Holds the number of slices in the sphere.

Calls C++ function: [slot] void Qt3DExtras::QSphereGeometry::setSlices(int slices).

C++ documentation:

Holds the number of slices in the sphere.

Access functions:

int slices() const
void setSlices(int slices)

Notifier signal:

void slicesChanged(int slices)

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

Holds the number of slices in the sphere.

Calls C++ function: int Qt3DExtras::QSphereGeometry::slices() const.

C++ documentation:

Holds the number of slices in the sphere.

Access functions:

int slices() const
void setSlices(int slices)

Notifier signal:

void slicesChanged(int slices)

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

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

Updates indices based on rings and slices properties.

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

C++ documentation:

Updates indices based on rings and slices properties.

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

Updates vertices based on rings, slices, and radius properties

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

C++ documentation:

Updates vertices based on rings, slices, and radius properties

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 QSphereGeometry[src]

type Target = QGeometry

The resulting type after dereferencing.

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

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

impl DerefMut for QSphereGeometry[src]

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

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

impl StaticUpcast<QGeometry> for QSphereGeometry[src]

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

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

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

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

impl StaticUpcast<QNode> for QSphereGeometry[src]

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

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

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

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

impl StaticUpcast<QObject> for QSphereGeometry[src]

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

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

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

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

impl StaticDowncast<QSphereGeometry> for QGeometry[src]

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

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

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

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

impl StaticDowncast<QSphereGeometry> for QNode[src]

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

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

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

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

impl StaticDowncast<QSphereGeometry> for QObject[src]

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

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

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

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

impl DynamicCast<QSphereGeometry> for QGeometry[src]

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

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

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

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

impl DynamicCast<QSphereGeometry> for QNode[src]

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

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

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

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

impl DynamicCast<QSphereGeometry> for QObject[src]

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

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

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

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

impl CppDeletable for QSphereGeometry[src]

unsafe fn delete(&mut self)[src]

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

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]