Skip to content

ShowroomController

#include <showroomcontroller.h>

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

Public Signals

Name
void screenSizeChanged(QSize screenSize)
void cameraNameChanged(const QString & cameraName)
void cameraChanged(Qt3DCore::QNode * camera)
float positionOnCameraOrbitChanged()
void materialsChanged()
void materialIndexChanged()
void labelsChanged()
void toggleActionsChanged()
void sliderActionsChanged()
void cameraActionsChanged()
void playOnceActionsChanged()

Public Functions

Name
ShowroomController(Qt3DCore::QNode * parent =nullptr)
~ShowroomController() override
QSize screenSize() const
void setScreenSize(QSize size)
QString cameraName() const
void setCameraName(const QString & cameraName)
Qt3DCore::QEntity * camera() const
float positionOnCameraOrbit() const
void setPositionOnCameraOrbit(float position)
Q_INVOKABLE void startCameraAnimation()
Q_INVOKABLE void stopCameraAnimation()
QVariantList materials() const
int materialIndex() const
void setMaterialIndex(int materialIndex)
QVariantList labels() const
QVariantList toggleActions() const
QVariantList sliderActions() const
QVariantList cameraActions() const
QVariantList playOnceActions() const
ShowroomController(Serenity::LayerManager * layerManager)
~ShowroomController()
virtual void cleanup() override

Public Properties

Name
QSize screenSize
QString cameraName
Qt3DCore::QEntity * camera
float positionOnCameraOrbit
QVariantList materials
int materialIndex
QVariantList labels
QVariantList toggleActions
QVariantList sliderActions
QVariantList cameraActions
QVariantList playOnceActions

Public Attributes

Name
KDBindings::Property<::Serenity::Camera * > camera

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

Public Functions inherited from SceneController

Name
SceneController(Serenity::LayerManager * layerManager)
~SceneController() override
void deleteLater()

Protected Attributes inherited from SceneController

Name
Kuesa::Serenity::AssetCollections m_assetCollections
Serenity::LayerManager * m_layerManager

Public Signals Documentation

signal screenSizeChanged

1
2
3
void screenSizeChanged(
    QSize screenSize
)

signal cameraNameChanged

1
2
3
void cameraNameChanged(
    const QString & cameraName
)

signal cameraChanged

1
2
3
void cameraChanged(
    Qt3DCore::QNode * camera
)

signal positionOnCameraOrbitChanged

1
float positionOnCameraOrbitChanged()

signal materialsChanged

1
void materialsChanged()

signal materialIndexChanged

1
void materialIndexChanged()

signal labelsChanged

1
void labelsChanged()

signal toggleActionsChanged

1
void toggleActionsChanged()

signal sliderActionsChanged

1
void sliderActionsChanged()

signal cameraActionsChanged

1
void cameraActionsChanged()

signal playOnceActionsChanged

1
void playOnceActionsChanged()

Public Functions Documentation

function ShowroomController

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

function ~ShowroomController

1
~ShowroomController() override

function screenSize

1
inline QSize screenSize() const

function setScreenSize

1
2
3
void setScreenSize(
    QSize size
)

function cameraName

1
inline QString cameraName() const

function setCameraName

1
2
3
void setCameraName(
    const QString & cameraName
)

function camera

1
inline Qt3DCore::QEntity * camera() const

function positionOnCameraOrbit

1
float positionOnCameraOrbit() const

function setPositionOnCameraOrbit

1
2
3
void setPositionOnCameraOrbit(
    float position
)

function startCameraAnimation

1
Q_INVOKABLE void startCameraAnimation()

function stopCameraAnimation

1
Q_INVOKABLE void stopCameraAnimation()

function materials

1
QVariantList materials() const

function materialIndex

1
inline int materialIndex() const

function setMaterialIndex

1
2
3
void setMaterialIndex(
    int materialIndex
)

function labels

1
QVariantList labels() const

function toggleActions

1
QVariantList toggleActions() const

function sliderActions

1
QVariantList sliderActions() const

function cameraActions

1
QVariantList cameraActions() const

function playOnceActions

1
QVariantList playOnceActions() const

function ShowroomController

1
2
3
explicit ShowroomController(
    Serenity::LayerManager * layerManager
)

function ~ShowroomController

1
~ShowroomController()

function cleanup

1
virtual void cleanup() override

Reimplements: SceneController::cleanup

Public Property Documentation

property screenSize

1
QSize screenSize;

property cameraName

1
QString cameraName;

property camera

1
Qt3DCore::QEntity * camera;

property positionOnCameraOrbit

1
float positionOnCameraOrbit;

property materials

1
QVariantList materials;

property materialIndex

1
int materialIndex;

property labels

1
QVariantList labels;

property toggleActions

1
QVariantList toggleActions;

property sliderActions

1
QVariantList sliderActions;

property cameraActions

1
QVariantList cameraActions;

property playOnceActions

1
QVariantList playOnceActions;

Public Attributes Documentation

variable camera

1
KDBindings::Property<::Serenity::Camera * > camera { nullptr };

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