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
QSSGGlobalRenderNodeData Class Reference

#include <qssgrenderdata_p.h>

Collaboration diagram for QSSGGlobalRenderNodeData:

Classes

struct  InstanceTransforms
struct  LayerNodeSection

Public Types

using VersionType = QSSGRenderNodeVersionType
using LayerNodeView = QSSGDataView<QSSGRenderNode *>
using GlobalTransformStore = std::vector<QMatrix4x4>
using GlobalOpacityStore = std::vector<float>
using InstanceTransformStore = std::vector<InstanceTransforms>
using NodeStore = std::vector<QSSGRenderNode *>
using LayerNodeViewStore = std::vector<LayerNodeSection>
using NormalMatrixStore = std::vector<QMatrix3x3>
using MeshStore = std::vector<QSSGRenderMesh *>
using MaterialList = QVector<QSSGRenderGraphObject *>
using MaterialStore = std::vector<MaterialList>

Public Member Functions

 QSSGGlobalRenderNodeData (QSSGRenderRoot *root)
 ~QSSGGlobalRenderNodeData ()
void reindex ()
void invalidate ()
VersionType version () const
size_t nodeCount () const
size_t storageSize () const
QMatrix4x4 getGlobalTransform (QSSGRenderNodeHandle h, const QMatrix4x4 &defaultValue) const
QMatrix4x4 getGlobalTransform (QSSGRenderNodeHandle h) const
QMatrix4x4 getGlobalTransform (const QSSGRenderNode &node) const
float getGlobalOpacity (QSSGRenderNodeHandle h, float defaultValue=1.0f) const
float getGlobalOpacity (const QSSGRenderNode &node) const
InstanceTransforms getInstanceTransforms (QSSGRenderNodeHandle h) const
InstanceTransforms getInstanceTransforms (const QSSGRenderNode &node) const
LayerNodeView getLayerNodeView (QSSGRenderLayerHandle h) const
LayerNodeView getLayerNodeView (const QSSGRenderLayer &layer) const

Public Attributes

GlobalTransformStore globalTransforms { }
GlobalOpacityStore globalOpacities { }
InstanceTransformStore instanceTransforms { }
NodeStore nodes { }
LayerNodeViewStore layerNodes { }
NormalMatrixStore normalMatrices { }
MeshStore meshes { }
MaterialStore materials { }

Friends

class ::tst_NodeIndexing

Detailed Description

Definition at line 41 of file qssgrenderdata_p.h.

Member Typedef Documentation

◆ GlobalOpacityStore

Definition at line 62 of file qssgrenderdata_p.h.

◆ GlobalTransformStore

Definition at line 61 of file qssgrenderdata_p.h.

◆ InstanceTransformStore

◆ LayerNodeView

◆ LayerNodeViewStore

Definition at line 65 of file qssgrenderdata_p.h.

◆ MaterialList

◆ MaterialStore

Definition at line 70 of file qssgrenderdata_p.h.

◆ MeshStore

Definition at line 68 of file qssgrenderdata_p.h.

◆ NodeStore

Definition at line 64 of file qssgrenderdata_p.h.

◆ NormalMatrixStore

Definition at line 67 of file qssgrenderdata_p.h.

◆ VersionType

Constructor & Destructor Documentation

◆ QSSGGlobalRenderNodeData()

QSSGGlobalRenderNodeData::QSSGGlobalRenderNodeData ( QSSGRenderRoot * root)
explicit

Definition at line 250 of file qssgrenderdata.cpp.

◆ ~QSSGGlobalRenderNodeData()

QSSGGlobalRenderNodeData::~QSSGGlobalRenderNodeData ( )

Definition at line 261 of file qssgrenderdata.cpp.

Member Function Documentation

◆ getGlobalOpacity() [1/2]

float QSSGGlobalRenderNodeData::getGlobalOpacity ( const QSSGRenderNode & node) const
nodiscard

Definition at line 347 of file qssgrenderdata.cpp.

◆ getGlobalOpacity() [2/2]

float QSSGGlobalRenderNodeData::getGlobalOpacity ( QSSGRenderNodeHandle h,
float defaultValue = 1.0f ) const
nodiscard

Definition at line 335 of file qssgrenderdata.cpp.

◆ getGlobalTransform() [1/3]

QMatrix4x4 QSSGGlobalRenderNodeData::getGlobalTransform ( const QSSGRenderNode & node) const
nodiscard

Definition at line 330 of file qssgrenderdata.cpp.

◆ getGlobalTransform() [2/3]

QMatrix4x4 QSSGGlobalRenderNodeData::getGlobalTransform ( QSSGRenderNodeHandle h) const
nodiscard

Definition at line 325 of file qssgrenderdata.cpp.

◆ getGlobalTransform() [3/3]

QMatrix4x4 QSSGGlobalRenderNodeData::getGlobalTransform ( QSSGRenderNodeHandle h,
const QMatrix4x4 & defaultValue ) const
nodiscard

Definition at line 310 of file qssgrenderdata.cpp.

◆ getInstanceTransforms() [1/2]

QSSGGlobalRenderNodeData::InstanceTransforms QSSGGlobalRenderNodeData::getInstanceTransforms ( const QSSGRenderNode & node) const
nodiscard

Definition at line 419 of file qssgrenderdata.cpp.

◆ getInstanceTransforms() [2/2]

QSSGGlobalRenderNodeData::InstanceTransforms QSSGGlobalRenderNodeData::getInstanceTransforms ( QSSGRenderNodeHandle h) const
nodiscard

Definition at line 424 of file qssgrenderdata.cpp.

◆ getLayerNodeView() [1/2]

QSSGGlobalRenderNodeData::LayerNodeView QSSGGlobalRenderNodeData::getLayerNodeView ( const QSSGRenderLayer & layer) const
nodiscard

Definition at line 374 of file qssgrenderdata.cpp.

◆ getLayerNodeView() [2/2]

QSSGGlobalRenderNodeData::LayerNodeView QSSGGlobalRenderNodeData::getLayerNodeView ( QSSGRenderLayerHandle h) const
nodiscard

Definition at line 360 of file qssgrenderdata.cpp.

◆ invalidate()

void QSSGGlobalRenderNodeData::invalidate ( )

Definition at line 305 of file qssgrenderdata.cpp.

◆ nodeCount()

size_t QSSGGlobalRenderNodeData::nodeCount ( ) const
inlinenodiscard

Definition at line 87 of file qssgrenderdata_p.h.

◆ reindex()

void QSSGGlobalRenderNodeData::reindex ( )

Definition at line 266 of file qssgrenderdata.cpp.

◆ storageSize()

size_t QSSGGlobalRenderNodeData::storageSize ( ) const
inlinenodiscard

Definition at line 88 of file qssgrenderdata_p.h.

◆ version()

VersionType QSSGGlobalRenderNodeData::version ( ) const
inlinenodiscard

Definition at line 82 of file qssgrenderdata_p.h.

◆ ::tst_NodeIndexing

friend class ::tst_NodeIndexing
friend

Definition at line 119 of file qssgrenderdata_p.h.

Member Data Documentation

◆ globalOpacities

GlobalOpacityStore QSSGGlobalRenderNodeData::globalOpacities { }

Definition at line 102 of file qssgrenderdata_p.h.

◆ globalTransforms

GlobalTransformStore QSSGGlobalRenderNodeData::globalTransforms { }

Definition at line 101 of file qssgrenderdata_p.h.

◆ instanceTransforms

InstanceTransformStore QSSGGlobalRenderNodeData::instanceTransforms { }

Definition at line 103 of file qssgrenderdata_p.h.

◆ layerNodes

LayerNodeViewStore QSSGGlobalRenderNodeData::layerNodes { }

Definition at line 105 of file qssgrenderdata_p.h.

◆ materials

MaterialStore QSSGGlobalRenderNodeData::materials { }

Definition at line 108 of file qssgrenderdata_p.h.

◆ meshes

MeshStore QSSGGlobalRenderNodeData::meshes { }

Definition at line 107 of file qssgrenderdata_p.h.

◆ nodes

NodeStore QSSGGlobalRenderNodeData::nodes { }

Definition at line 104 of file qssgrenderdata_p.h.

◆ normalMatrices

NormalMatrixStore QSSGGlobalRenderNodeData::normalMatrices { }

Definition at line 106 of file qssgrenderdata_p.h.


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