Kuesa Runtime

SpotLight Class

class Kuesa::SpotLight

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

Header: #include <SpotLight>
Since: Kuesa 1.1
Instantiated By: SpotLight
Inherits: Kuesa::ShadowCastingLight

This class was introduced in Kuesa 1.1.

Properties

Public Functions

float innerConeAngle() const
QVector3D localDirection() const
float outerConeAngle() const
float range() const

Public Slots

void setInnerConeAngle(float innerConeAngle)
void setLocalDirection(const QVector3D &localDirection)
void setOuterConeAngle(float outerConeAngle)
void setRange(float range)

Signals

void innerConeAngleChanged(float innerConeAngle)
void localDirectionChanged(const QVector3D &localDirection)
void outerConeAngleChanged(float outerConeAngle)
void rangeChanged(float range)

Detailed Description

Property Documentation

innerConeAngle : float

Specifies the angle from center of the spot light where light begins to fall off. The value must be greater than or equal to 0 and less than outerConeAngle.

Access functions:

float innerConeAngle() const
void setInnerConeAngle(float innerConeAngle)

Notifier signal:

void innerConeAngleChanged(float innerConeAngle)

localDirection : QVector3D

Specifies the local direction of the spot light. Local direction is affected by parent transform rotations.

Access functions:

QVector3D localDirection() const
void setLocalDirection(const QVector3D &localDirection)

Notifier signal:

void localDirectionChanged(const QVector3D &localDirection)

outerConeAngle : float

Specifies the cut off angle of the spot light. Objects outside this angle receives no light from the SpotLight. The value must be greater than innerConeAngle and less than or equal to 180.

Access functions:

float outerConeAngle() const
void setOuterConeAngle(float outerConeAngle)

Notifier signal:

void outerConeAngleChanged(float outerConeAngle)

range : float

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

Access functions:

float range() const
void setRange(float range)

Notifier signal:

void rangeChanged(float range)