Skip to content

KuesaUtils::SceneConfiguration

SceneConfiguration provides a way of conveniently specifying information about a glTF2 file and accompanying helpers to be loaded. More...

#include <sceneconfiguration.h>

Inherits from Kuesa::Qt3D::KuesaNode, Qt3DCore::QNode

Public Slots

Name
void setSource(const QUrl & source)

Public Signals

Name
void sourceChanged(const QUrl & source)
void viewConfigurationAdded(KuesaUtils::ViewConfiguration * viewConfiguration)
void viewConfigurationRemoved(KuesaUtils::ViewConfiguration * viewConfiguration)
void animationPlayerAdded(Kuesa::Qt3D::AnimationPlayer * player)
void animationPlayerRemoved(Kuesa::Qt3D::AnimationPlayer * player)
void loadingDone()
void unloadingDone()

Public Functions

Name
SceneConfiguration(Qt3DCore::QNode * parent =nullptr)
QUrl source() const
const std::vector< KuesaUtils::ViewConfiguration * > & viewConfigurations() const
void addViewConfiguration(KuesaUtils::ViewConfiguration * viewConfiguration)
void removeViewConfiguration(KuesaUtils::ViewConfiguration * viewConfiguration)
void clearViewConfigurations()
const std::vector< Kuesa::Qt3D::AnimationPlayer * > & animationPlayers() const
void addAnimationPlayer(Kuesa::Qt3D::AnimationPlayer * animation)
void removeAnimationPlayer(Kuesa::Qt3D::AnimationPlayer * animation)
void clearAnimationPlayers()

Public Properties

Name
QUrl source
The source of the glTF file to be loaded.

Additional inherited members

Public Slots inherited from Kuesa::Qt3D::KuesaNode

Name
void setSceneEntity(Kuesa::Qt3D::SceneEntity * sceneEntity)

Public Signals inherited from Kuesa::Qt3D::KuesaNode

Name
void sceneEntityChanged(Kuesa::Qt3D::SceneEntity * sceneEntity)

Public Functions inherited from Kuesa::Qt3D::KuesaNode

Name
KuesaNode(Qt3DCore::QNode * parent =nullptr)
SceneEntity * sceneEntity() const

Public Properties inherited from Kuesa::Qt3D::KuesaNode

Name
Kuesa::Qt3D::SceneEntity * sceneEntity

Protected Attributes inherited from Kuesa::Qt3D::KuesaNode

Name
SceneEntity * m_sceneEntity

Detailed Description

1
class KuesaUtils::SceneConfiguration;

SceneConfiguration provides a way of conveniently specifying information about a glTF2 file and accompanying helpers to be loaded.

Since: Kuesa 2.0

SceneConfiguration provides a way of conveniently specifying information about a glTF2 file and accompanying helpers to be loaded.

When building an application that should display different scenes at different moments in time, recreating a new Qt 3D view with its FrameGraph, GLTF2Importer and other assets can be costly and unnecessary. Yet, that approach is still often favored as it can be seen as more convenient for the developer from an architecture point of view.

The SceneConfiguration used in conjunction with

The signals SceneConfiguration::loadingDone and

SceneConfiguration can also specify different viewports for showing different parts of a glTF2 scene at the same moment in time. This is done by adding or removing ViewConfiguration .

Public Slots Documentation

slot setSource

1
2
3
void setSource(
    const QUrl & source
)

Public Signals Documentation

signal sourceChanged

1
2
3
void sourceChanged(
    const QUrl & source
)

signal viewConfigurationAdded

1
2
3
void viewConfigurationAdded(
    KuesaUtils::ViewConfiguration * viewConfiguration
)

signal viewConfigurationRemoved

1
2
3
void viewConfigurationRemoved(
    KuesaUtils::ViewConfiguration * viewConfiguration
)

signal animationPlayerAdded

1
2
3
void animationPlayerAdded(
    Kuesa::Qt3D::AnimationPlayer * player
)

signal animationPlayerRemoved

1
2
3
void animationPlayerRemoved(
    Kuesa::Qt3D::AnimationPlayer * player
)

signal loadingDone

1
void loadingDone()

signal unloadingDone

1
void unloadingDone()

Public Functions Documentation

function SceneConfiguration

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

function source

1
QUrl source() const

function viewConfigurations

1
const std::vector< KuesaUtils::ViewConfiguration * > & viewConfigurations() const

function addViewConfiguration

1
2
3
void addViewConfiguration(
    KuesaUtils::ViewConfiguration * viewConfiguration
)

function removeViewConfiguration

1
2
3
void removeViewConfiguration(
    KuesaUtils::ViewConfiguration * viewConfiguration
)

function clearViewConfigurations

1
void clearViewConfigurations()

function animationPlayers

1
const std::vector< Kuesa::Qt3D::AnimationPlayer * > & animationPlayers() const

function addAnimationPlayer

1
2
3
void addAnimationPlayer(
    Kuesa::Qt3D::AnimationPlayer * animation
)

function removeAnimationPlayer

1
2
3
void removeAnimationPlayer(
    Kuesa::Qt3D::AnimationPlayer * animation
)

function clearAnimationPlayers

1
void clearAnimationPlayers()

Public Property Documentation

property source

1
QUrl source;

The source of the glTF file to be loaded.


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