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
Public Signals
Public Functions
Public Properties
|
Name |
QUrl |
source The source of the glTF file to be loaded. |
Additional inherited members
Public Slots inherited from Kuesa::Qt3D::KuesaNode
Public Signals inherited from Kuesa::Qt3D::KuesaNode
Public Functions inherited from Kuesa::Qt3D::KuesaNode
Public Properties inherited from Kuesa::Qt3D::KuesaNode
Protected Attributes inherited from Kuesa::Qt3D::KuesaNode
Detailed Description
| 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
| void setSource(
const QUrl & source
)
|
Public Signals Documentation
signal sourceChanged
| void sourceChanged(
const QUrl & source
)
|
signal viewConfigurationAdded
| void viewConfigurationAdded(
KuesaUtils::ViewConfiguration * viewConfiguration
)
|
signal viewConfigurationRemoved
| void viewConfigurationRemoved(
KuesaUtils::ViewConfiguration * viewConfiguration
)
|
signal animationPlayerAdded
| void animationPlayerAdded(
Kuesa::Qt3D::AnimationPlayer * player
)
|
signal animationPlayerRemoved
| void animationPlayerRemoved(
Kuesa::Qt3D::AnimationPlayer * player
)
|
signal loadingDone
signal unloadingDone
Public Functions Documentation
function SceneConfiguration
| explicit SceneConfiguration(
Qt3DCore::QNode * parent =nullptr
)
|
function source
function viewConfigurations
| const std::vector< KuesaUtils::ViewConfiguration * > & viewConfigurations() const
|
function addViewConfiguration
| void addViewConfiguration(
KuesaUtils::ViewConfiguration * viewConfiguration
)
|
function removeViewConfiguration
| void removeViewConfiguration(
KuesaUtils::ViewConfiguration * viewConfiguration
)
|
function clearViewConfigurations
| void clearViewConfigurations()
|
function animationPlayers
| const std::vector< Kuesa::Qt3D::AnimationPlayer * > & animationPlayers() const
|
function addAnimationPlayer
| void addAnimationPlayer(
Kuesa::Qt3D::AnimationPlayer * animation
)
|
function removeAnimationPlayer
| void removeAnimationPlayer(
Kuesa::Qt3D::AnimationPlayer * animation
)
|
function clearAnimationPlayers
| void clearAnimationPlayers()
|
Public Property Documentation
property source
The source of the glTF file to be loaded.
Updated on 2023-07-03 at 11:02:02 +0000