IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QAbstractLight Class

Encapsulate a QAbstractLight object in a Qt 3D scene.

This class was introduced in Qt 5.6.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QAbstractLight Class

Detailed Description

 

Member Type Documentation

 

enum QAbstractLight::Type

Identifies the particular type of light.

Constant

Qt3DRender::QAbstractLight::PointLight

0

Qt3DRender::QAbstractLight::DirectionalLight

1

Qt3DRender::QAbstractLight::SpotLight

2

Property Documentation

 

color : QColor

Holds the current QAbstractLight color.

Access functions:

  • color() const

  • void setColor(const &color)

Notifier signal:

  • void colorChanged(const &color)

intensity : float

Holds the current QAbstractLight intensity.

Access functions:

  • float intensity() const

  • void setIntensity(float intensity)

Notifier signal:

  • void intensityChanged(float intensity)

[read-only] type : const Type

The type of light.

Access functions:

Member Function Documentation

 

Qt3DRender::QAbstractLight::Type QAbstractLight::type() const

Holds the current QAbstractLight type.

Getter function for property type.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+