Sphere Class

(Qt3DRender::Render::Sphere)

Public Functions

Sphere(const Qt3DCore::QNodeId &i = Qt3DCore::QNodeId())
Sphere(const QVector3D &c, float r, const Qt3DCore::QNodeId &i = Qt3DCore::QNodeId())
QVector3D center() const
void clear()
void expandToContain(const QVector3D &point)
void expandToContain(const QVector<QVector3D> &points)
void expandToContain(const Sphere &sphere)
Qt3DCore::QNodeId id() const
void initializeFromPoints(const QVector<QVector3D> &points)
bool intersects(const Qt3DCore::QRay3D &ray, QVector3D *q) const
bool isNull()
float radius() const
void setCenter(const QVector3D &c)
void setRadius(float r)
Sphere &transform(const QMatrix4x4 &mat)
Sphere transformed(const QMatrix4x4 &mat) const
Type type() const

Static Public Members

Sphere fromPoints(const QVector<QVector3D> &points)

Member Function Documentation

Sphere::Sphere(const Qt3DCore::QNodeId &i = Qt3DCore::QNodeId())

Default constructs an instance of Sphere.

Sphere::Sphere(const QVector3D &c, float r, const Qt3DCore::QNodeId &i = Qt3DCore::QNodeId())

Default constructs an instance of Sphere.

QVector3D Sphere::center() const

See also setCenter().

void Sphere::clear()

void Sphere::expandToContain(const QVector3D &point)

void Sphere::expandToContain(const QVector<QVector3D> &points)

void Sphere::expandToContain(const Sphere &sphere)

[static] Sphere Sphere::fromPoints(const QVector<QVector3D> &points)

Qt3DCore::QNodeId Sphere::id() const

void Sphere::initializeFromPoints(const QVector<QVector3D> &points)

bool Sphere::intersects(const Qt3DCore::QRay3D &ray, QVector3D *q) const

bool Sphere::isNull()

float Sphere::radius() const

See also setRadius().

void Sphere::setCenter(const QVector3D &c)

See also center().

void Sphere::setRadius(float r)

See also radius().

Sphere &Sphere::transform(const QMatrix4x4 &mat)

Sphere Sphere::transformed(const QMatrix4x4 &mat) const

Type Sphere::type() const