KuesaUtils::ViewConfiguration
ViewConfiguration provides a way of conveniently specifying different views of the same scene. More...
#include <viewconfiguration.h>
Inherits from Kuesa::Qt3D::KuesaNode, Qt3DCore::QNode
Public Slots
Public Signals
Public Functions
Public Properties
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::ViewConfiguration;
|
ViewConfiguration provides a way of conveniently specifying different views of the same scene.
Since: Kuesa 2.0
Public Slots Documentation
slot setCameraName
| void setCameraName(
const QString & cameraName
)
|
slot setLayerNames
| void setLayerNames(
const QStringList & layerNames
)
|
slot setViewportRect
| void setViewportRect(
const QRectF & viewportRect
)
|
slot setFrustumCulling
| void setFrustumCulling(
bool frustumCulling
)
|
slot setSkinning
| void setSkinning(
bool skinning
)
|
slot setBackToFrontSorting
| void setBackToFrontSorting(
bool backToFrontSorting
)
|
slot setZFilling
| void setZFilling(
bool zFilling
)
|
slot setParticlesEnabled
| void setParticlesEnabled(
bool particlesEnabled
)
|
slot setToneMappingAlgorithm
| void setToneMappingAlgorithm(
Kuesa::Qt3D::ToneMappingAndGammaCorrectionEffect::ToneMapping algorithm
)
|
slot setUsesStencilMask
| void setUsesStencilMask(
bool usesStencilMask
)
|
slot setExposure
| void setExposure(
float exposure
)
|
slot setGamma
| void setGamma(
float gamma
)
|
slot setClearColor
| void setClearColor(
QColor clearColor
)
|
Public Signals Documentation
signal cameraNameChanged
| void cameraNameChanged(
const QString & cameraName
)
|
signal layerNamesChanged
| void layerNamesChanged(
const QStringList & layerNames
)
|
signal viewportRectChanged
| void viewportRectChanged(
QRectF viewportRect
)
|
signal frustumCullingChanged
| void frustumCullingChanged(
bool frustumCulling
)
|
signal skinningChanged
| void skinningChanged(
bool skinning
)
|
signal backToFrontSortingChanged
| void backToFrontSortingChanged(
bool backToFrontSorting
)
|
signal zFillingChanged
| void zFillingChanged(
bool zFillingChanged
)
|
signal particlesEnabledChanged
| void particlesEnabledChanged(
bool particlesEnabled
)
|
signal toneMappingAlgorithmChanged
| void toneMappingAlgorithmChanged(
Kuesa::Qt3D::ToneMappingAndGammaCorrectionEffect::ToneMapping algorithm
)
|
signal usesStencilMaskChanged
| void usesStencilMaskChanged(
bool usesStencilMask
)
|
signal exposureChanged
| void exposureChanged(
float exposure
)
|
signal gammaChanged
| void gammaChanged(
float gamma
)
|
signal clearColorChanged
| void clearColorChanged(
QColor clearColor
)
|
| void transformTrackerAdded(
Kuesa::Qt3D::TransformTracker * tracker
)
|
| void transformTrackerRemoved(
Kuesa::Qt3D::TransformTracker * tracker
)
|
signal placeholderTrackerAdded
| void placeholderTrackerAdded(
Kuesa::Qt3D::PlaceholderTracker * tracker
)
|
signal placeholderTrackerRemoved
| void placeholderTrackerRemoved(
Kuesa::Qt3D::PlaceholderTracker * tracker
)
|
signal postProcessingEffectAdded
| void postProcessingEffectAdded(
Kuesa::Qt3D::AbstractPostProcessingEffect * fx
)
|
signal postProcessingEffectRemoved
| void postProcessingEffectRemoved(
Kuesa::Qt3D::AbstractPostProcessingEffect * fx
)
|
signal loadingDone
signal unloadingDone
Public Functions Documentation
function ViewConfiguration
| explicit ViewConfiguration(
Qt3DCore::QNode * parent =nullptr
)
|
function cameraName
| QString cameraName() const
|
function layerNames
| QStringList layerNames() const
|
function viewportRect
| QRectF viewportRect() const
|
function frustumCulling
| bool frustumCulling() const
|
function skinning
function backToFrontSorting
| bool backToFrontSorting() const
|
function zFilling
function particlesEnabled
| bool particlesEnabled() const
|
function toneMappingAlgorithm
| Kuesa::Qt3D::ToneMappingAndGammaCorrectionEffect::ToneMapping toneMappingAlgorithm() const
|
function usesStencilMask
| bool usesStencilMask() const
|
function exposure
function gamma
function clearColor
| QColor clearColor() const
|
| const std::vector< Kuesa::Qt3D::TransformTracker * > & transformTrackers() const
|
| void addTransformTracker(
Kuesa::Qt3D::TransformTracker * tracker
)
|
| void removeTransformTracker(
Kuesa::Qt3D::TransformTracker * tracker
)
|
| void clearTransformTrackers()
|
function placeholderTrackers
| const std::vector< Kuesa::Qt3D::PlaceholderTracker * > & placeholderTrackers() const
|
function addPlaceholderTracker
| void addPlaceholderTracker(
Kuesa::Qt3D::PlaceholderTracker * tracker
)
|
function removePlaceholderTracker
| void removePlaceholderTracker(
Kuesa::Qt3D::PlaceholderTracker * tracker
)
|
function clearPlaceholderTrackers
| void clearPlaceholderTrackers()
|
function postProcessingEffects
| const std::vector< Kuesa::Qt3D::AbstractPostProcessingEffect * > & postProcessingEffects() const
|
function addPostProcessingEffect
| void addPostProcessingEffect(
Kuesa::Qt3D::AbstractPostProcessingEffect * effect
)
|
function removePostProcessingEffect
| void removePostProcessingEffect(
Kuesa::Qt3D::AbstractPostProcessingEffect * effect
)
|
function clearPostProcessingEffects
| void clearPostProcessingEffects()
|
Public Property Documentation
property cameraName
The name of the camera asset that should be used to view the scene. If the name references a valid camera, the camera will automatically be set on the ForwardRenderer frameGraph and other internal assets such as TransformTracker .
property layerNames
The list of KDAB_layers layer names to be selected for rendering. This allows selecting only a sub part of a glTF 2 model to only render parts that are linked to a specific layer.
property viewportRect
Holds the viewport rectangle from within which the rendering will occur. Rectangle is in normalized coordinates.
property frustumCulling
Holds whether frustum culling is enabled or not. Enabled by default.
property skinning
property backToFrontSorting
Holds whether back to front sorting to render objects in back-to-front order is enabled. This is required for proper alpha blending rendering. Enabled by default.
property zFilling
Holds whether multi-pass zFilling support is enabled. Disabled by default.
property particlesEnabled
Holds whether particles support is enabled. Disabled by default.
property toneMappingAlgorithm
| Kuesa::Qt3D::ToneMappingAndGammaCorrectionEffect::ToneMapping toneMappingAlgorithm;
|
Tone mapping specifies how we perform color conversion from HDR (high dynamic range) content to LDR (low dynamic range) content which our monitor displays.
\default ToneMappingAndGammaCorrectionEffect::None
property usesStencilMask
Enables/disables stencil buffers. If true, stencil operations be used during the render phase to modify the stencil buffer. The resulting stencil buffer can later be used to apply post process effect to only part of the scene
\default False
property exposure
Exposure correction factor used before the linear to sRGB conversion. \default 0
property gamma
Holds the gamma value to use for gamma correction that brings linear colors to sRGB colors. \default 2.2
property clearColor
Holds the color used to clear the screen at the start of each frame.
Updated on 2023-07-03 at 11:02:02 +0000