Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QSSGRenderDataHelpers Class Reference

#include <qssgrenderdata_p.h>

Collaboration diagram for QSSGRenderDataHelpers:

Public Types

enum class  Strategy { Initial , Update }
enum  GlobalStateResult : quint8 { None , ActiveChanged = 0x1 , PickableChanged = 0x2 }
using GlobalStateResultT = std::underlying_type_t<GlobalStateResult>

Static Public Member Functions

template<Strategy strategy>
static bool calcGlobalNodeData (QSSGRenderNode *node, const quint32 version, QSSGGlobalRenderNodeData::GlobalTransformStore &globalTransforms, QSSGGlobalRenderNodeData::GlobalOpacityStore &globalOpacities)
 calcGlobalNodeData
static bool calcInstanceTransforms (QSSGRenderNode *node, const quint32 version, QSSGGlobalRenderNodeData::GlobalTransformStore &globalTransforms, QSSGGlobalRenderNodeData::InstanceTransformStore &instanceTransforms)
 calcInstanceTransforms
static GlobalStateResult updateGlobalNodeState (QSSGRenderNode *node, const quint32 version)
 updateGlobalNodeState

Detailed Description

Definition at line 114 of file qssgrenderdata_p.h.

Member Typedef Documentation

◆ GlobalStateResultT

Definition at line 131 of file qssgrenderdata_p.h.

Member Enumeration Documentation

◆ GlobalStateResult

Enumerator
None 
ActiveChanged 
PickableChanged 

Definition at line 124 of file qssgrenderdata_p.h.

◆ Strategy

Enumerator
Initial 
Update 

Definition at line 118 of file qssgrenderdata_p.h.

Member Function Documentation

◆ calcGlobalNodeData()

template<Strategy strategy>
bool QSSGRenderDataHelpers::calcGlobalNodeData ( QSSGRenderNode * node,
const quint32 version,
QSSGGlobalRenderNodeData::GlobalTransformStore & globalTransforms,
QSSGGlobalRenderNodeData::GlobalOpacityStore & globalOpacities )
inlinestatic

calcGlobalNodeData

Parameters
nodeThe node to calculate the global data for.
versionThe version of the node current node tree.
globalTransformsThe global transforms store.
globalOpacitiesThe global opacities store.
Returns
true if the data was updated, false otherwise.

The function is used to calculate the global node data for the given node. It will use the given strategy to determine if it should calculate the initial values or update the existing values based on the node's dirty state.

NOTE: This function assumes the output data is already allocated and can be directly indexed!!!

Definition at line 149 of file qssgrenderdata_p.h.

References Initial.

◆ calcInstanceTransforms()

bool QSSGRenderDataHelpers::calcInstanceTransforms ( QSSGRenderNode * node,
const quint32 version,
QSSGGlobalRenderNodeData::GlobalTransformStore & globalTransforms,
QSSGGlobalRenderNodeData::InstanceTransformStore & instanceTransforms )
static

calcInstanceTransforms

Parameters
nodeThe node to calculate the instance transforms for.
versionThe version of the node current node tree.
globalTransformsThe global transforms store.
instanceTransformsThe instance transforms store.
Returns
true if the data was updated, false otherwise.

The function is used to calculate the instance transforms for the given node.

NOTE: This function assumes the output data is already allocated and can be directly indexed!!!

Definition at line 176 of file qssgrenderdata.cpp.

◆ updateGlobalNodeState()

QSSGRenderDataHelpers::GlobalStateResult QSSGRenderDataHelpers::updateGlobalNodeState ( QSSGRenderNode * node,
const quint32 version )
static

updateGlobalNodeState

Parameters
nodeThe node to update the global state for.
versionThe version of the node current node tree.
Returns
The result of the update.

The function is used to update the global state flagsfor the given node, meaning the global active and pickable state of the node.

Definition at line 144 of file qssgrenderdata.cpp.

References None.


The documentation for this class was generated from the following files: