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

Q3DLight Class

Representation of a light source in 3D space.

This class was introduced in QtDataVisualization 1.0.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

Q3DLight Class

  • Header: Q3DLight

  • Since: QtDataVisualization 1.0

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS DataVisualization)

    target_link_libraries(mytarget PRIVATE Qt6::DataVisualization)

  • qmake: QT += datavisualization

  • Inherited By:

  • Instantiated By: qml-qtdatavisualization-light3d.xml

  • Inherits: Q3DObject

Detailed Description

Q3DLight represents a monochrome light source in 3D space.

Default light has isAutoPosition() true.

Property Documentation

 

[since QtDataVisualization 5.9] autoPosition : bool

This property holds whether the light position follows the camera automatically.

Has no effect if shadows are enabled. Remember to disable shadows before setting light's position, or it will be overwritten by automatic positioning if isAutoPosition() is false.

This property was introduced in QtDataVisualization 5.9.

Access functions:

  • bool isAutoPosition()

  • void setAutoPosition(bool enabled)

Notifier signal:

  • void autoPositionChanged(bool autoPosition)

Member Function Documentation

 

[explicit] Q3DLight::Q3DLight(QObject *parent = nullptr)

Constructs a new 3D light located at origin. An optional parent parameter can be given and is then passed to QObject constructor.

[virtual] Q3DLight::~Q3DLight()

Destroys the light object.

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