Skip to content

Kuesa::Qt3D::PointLight

Module: Kuesa Qt 3D API

Encapsulate a Point Light object in a Qt 3D scene. More...

#include <pointlight.h>

Inherits from Kuesa::Qt3D::ShadowCastingLight, Qt3DRender::QAbstractLight

Public Slots

Name
void setRange(float range)

Public Signals

Name
void rangeChanged(float range)

Public Functions

Name
PointLight(Qt3DCore::QNode * parent =nullptr)
~PointLight()
float range() const

Protected Functions

Name
PointLight(PointLightPrivate & dd, Qt3DCore::QNode * parent)

Public Properties

Name
float range
Encapsulate a Point Light object in a Qt 3D scene.

Additional inherited members

Public Slots inherited from Kuesa::Qt3D::ShadowCastingLight

Name
void setCastsShadows(bool castsShadows)
void setLightViewProjectionMatrix(const QMatrix4x4 & matrix)
void setTextureSize(const QSize & textureSize)
void setShadowMapBias(float bias)
void setNearPlane(float nearPlane)
void setSoftShadows(bool softShadows)
void setLightIndex(int index)
void setNearFarPlanes(float near, float far)

Public Signals inherited from Kuesa::Qt3D::ShadowCastingLight

Name
void castsShadowsChanged(bool castsShadows)
void textureSizeChanged(const QSize & textureSize)
void depthTextureChanged(Qt3DRender::QAbstractTexture * depthTexture)
void biasChanged(float bias)
void nearPlaneChanged(float nearPlane)
void softShadowsChanged(bool softShadows)

Public Functions inherited from Kuesa::Qt3D::ShadowCastingLight

Name
~ShadowCastingLight()
bool castsShadows() const
QSize textureSize() const
float shadowMapBias() const
float nearPlane() const
bool softShadows() const

Protected Functions inherited from Kuesa::Qt3D::ShadowCastingLight

Name
ShadowCastingLight(ShadowCastingLightPrivate & dd, Qt3DCore::QNode * parent =nullptr)

Public Properties inherited from Kuesa::Qt3D::ShadowCastingLight

Name
bool castsShadows
Encapsulate a light object that is able to cast shadows in a Qt 3D scene.
bool softShadows
QSize textureSize
float shadowMapBias
float nearPlane

Detailed Description

1
class Kuesa::Qt3D::PointLight;

Encapsulate a Point Light object in a Qt 3D scene.

Since: Kuesa 2.0

Public Slots Documentation

slot setRange

1
2
3
void setRange(
    float range
)

Public Signals Documentation

signal rangeChanged

1
2
3
void rangeChanged(
    float range
)

Public Functions Documentation

function PointLight

1
2
3
explicit PointLight(
    Qt3DCore::QNode * parent =nullptr
)

function ~PointLight

1
~PointLight()

function range

1
float range() const

Protected Functions Documentation

function PointLight

1
2
3
4
PointLight(
    PointLightPrivate & dd,
    Qt3DCore::QNode * parent
)

Public Property Documentation

property range

1
float range;

Encapsulate a Point Light object in a Qt 3D scene.

Since: Kuesa 2.0

Specifies the destance at which the light intensity may be considered to have reached zero and has no effect. A range of 0 (default) indicates infinite range


Updated on 2023-07-03 at 11:02:12 +0000