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>
using VersionType = QSSGRenderNodeVersionType

Static Public Member Functions

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

Detailed Description

Definition at line 128 of file qssgrenderdata_p.h.

Member Typedef Documentation

◆ GlobalStateResultT

Definition at line 145 of file qssgrenderdata_p.h.

◆ VersionType

Member Enumeration Documentation

◆ GlobalStateResult

Enumerator
None 
ActiveChanged 
PickableChanged 

Definition at line 138 of file qssgrenderdata_p.h.

◆ Strategy

Enumerator
Initial 
Update 

Definition at line 132 of file qssgrenderdata_p.h.

Member Function Documentation

◆ calcGlobalNodeData()

template<Strategy strategy>
bool QSSGRenderDataHelpers::calcGlobalNodeData ( QSSGRenderNode * node,
const VersionType 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 164 of file qssgrenderdata_p.h.

References Initial.

◆ calcInstanceTransforms()

bool QSSGRenderDataHelpers::calcInstanceTransforms ( QSSGRenderNode * node,
const VersionType 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 192 of file qssgrenderdata.cpp.

◆ updateGlobalNodeState()

QSSGRenderDataHelpers::GlobalStateResult QSSGRenderDataHelpers::updateGlobalNodeState ( QSSGRenderNode * node,
const VersionType 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 157 of file qssgrenderdata.cpp.

References None.


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