QLevelOfDetailBoundingSphere Class

class Qt3DRender::QLevelOfDetailBoundingSphere

The QLevelOfDetailBoundingSphere class provides a simple spherical volume, defined by its center and radius. More...

Header: #include <QLevelOfDetailBoundingSphere>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake: QT += 3drender
Since: Qt 5.9
Instantiated By: LevelOfDetailBoundingSphere

Properties

Public Functions

QLevelOfDetailBoundingSphere(const Qt3DRender::QLevelOfDetailBoundingSphere &other)
QLevelOfDetailBoundingSphere(QVector3D center = QVector3D(), float radius = 1.0f)
Qt3DRender::QLevelOfDetailBoundingSphere &operator=(const Qt3DRender::QLevelOfDetailBoundingSphere &other)
~QLevelOfDetailBoundingSphere()
QVector3D center() const
bool isEmpty() const
float radius() const
bool operator!=(const Qt3DRender::QLevelOfDetailBoundingSphere &other) const
bool operator==(const Qt3DRender::QLevelOfDetailBoundingSphere &other) const

Detailed Description

Property Documentation

[read-only] center : const QVector3D

Specifies the center of the bounding sphere

Access functions:

QVector3D center() const

[read-only] radius : const float

Specifies the radius of the bounding sphere

Access functions:

float radius() const

Member Function Documentation

QLevelOfDetailBoundingSphere::QLevelOfDetailBoundingSphere(const Qt3DRender::QLevelOfDetailBoundingSphere &other)

Default constructs an instance of QLevelOfDetailBoundingSphere.

QLevelOfDetailBoundingSphere::QLevelOfDetailBoundingSphere(QVector3D center = QVector3D(), float radius = 1.0f)

Constructs a new QLevelOfDetailBoundingSphere with the specified center and radius.

Qt3DRender::QLevelOfDetailBoundingSphere &QLevelOfDetailBoundingSphere::operator=(const Qt3DRender::QLevelOfDetailBoundingSphere &other)

Copy-assignment operator.

QLevelOfDetailBoundingSphere::~QLevelOfDetailBoundingSphere()

Destroys the instance of QLevelOfDetailBoundingSphere.

bool QLevelOfDetailBoundingSphere::isEmpty() const

bool QLevelOfDetailBoundingSphere::operator!=(const Qt3DRender::QLevelOfDetailBoundingSphere &other) const

bool QLevelOfDetailBoundingSphere::operator==(const Qt3DRender::QLevelOfDetailBoundingSphere &other) const

© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.