Skip to content

Kuesa::Qt3D::KuesaNode

Module: Kuesa Qt 3D API

Base class for nodes that require a Kuesa::Qt3D::SceneEnity for assets insertion or retrieval. More...

#include <Kuesa/Qt3D/api/kuesanode.h>

Inherits from Qt3DCore::QNode

Inherited by DriverAssistController, Kuesa::Qt3D::AnimationPlayer, Kuesa::Qt3D::Asset, Kuesa::Qt3D::GLTF2Importer, Kuesa::Qt3D::MeshInstantiator, Kuesa::Qt3D::PlaceholderTracker, Kuesa::Qt3D::TransformTracker, KuesaUtils::SceneConfiguration, KuesaUtils::ViewConfiguration, OSMRouter

Public Slots

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

Public Signals

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

Public Functions

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

Public Properties

Name
Kuesa::Qt3D::SceneEntity * sceneEntity

Protected Attributes

Name
SceneEntity * m_sceneEntity

Detailed Description

1
class Kuesa::Qt3D::KuesaNode;

Base class for nodes that require a Kuesa::Qt3D::SceneEnity for assets insertion or retrieval.

Since: Kuesa 2.0

The KuesaNode class is a convenience wrapper that handles setting a SceneEntity property on a node. It also automatically traverse the QObject tree hierarchy to find if a Kuesa::Qt3D::SceneEntity is part of the hierarchy. If so and if no Kuesa::Qt3D::SceneEntity was provided by the user, it will set the sceneEntity property to that.

Public Slots Documentation

slot setSceneEntity

1
2
3
void setSceneEntity(
    Kuesa::Qt3D::SceneEntity * sceneEntity
)

Public Signals Documentation

signal sceneEntityChanged

1
2
3
void sceneEntityChanged(
    Kuesa::Qt3D::SceneEntity * sceneEntity
)

Public Functions Documentation

function KuesaNode

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

function sceneEntity

1
SceneEntity * sceneEntity() const

Public Property Documentation

property sceneEntity

1
Kuesa::Qt3D::SceneEntity * sceneEntity;

See: Kuesa::Qt3D::SceneEntity

Pointer to the SceneEntity with which assets are registered as they are loaded from the glTF file.

Protected Attributes Documentation

variable m_sceneEntity

1
SceneEntity * m_sceneEntity = nullptr;

Updated on 2022-10-18 at 11:12:52 +0200