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 45 of file qssgrenderdata_p.h.

Member Typedef Documentation

◆ GlobalOpacityStore

Definition at line 66 of file qssgrenderdata_p.h.

◆ GlobalTransformStore

Definition at line 65 of file qssgrenderdata_p.h.

◆ InstanceTransformStore

◆ LayerNodeView

◆ LayerNodeViewStore

Definition at line 69 of file qssgrenderdata_p.h.

◆ MaterialList

◆ MaterialStore

Definition at line 74 of file qssgrenderdata_p.h.

◆ MeshStore

Definition at line 72 of file qssgrenderdata_p.h.

◆ NodeStore

Definition at line 68 of file qssgrenderdata_p.h.

◆ NormalMatrixStore

Definition at line 71 of file qssgrenderdata_p.h.

◆ VersionType

Constructor & Destructor Documentation

◆ QSSGGlobalRenderNodeData()

QSSGGlobalRenderNodeData::QSSGGlobalRenderNodeData ( QSSGRenderRoot * root)
explicit

Definition at line 249 of file qssgrenderdata.cpp.

◆ ~QSSGGlobalRenderNodeData()

QSSGGlobalRenderNodeData::~QSSGGlobalRenderNodeData ( )

Definition at line 260 of file qssgrenderdata.cpp.

Member Function Documentation

◆ getGlobalOpacity() [1/2]

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

Definition at line 346 of file qssgrenderdata.cpp.

◆ getGlobalOpacity() [2/2]

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

Definition at line 334 of file qssgrenderdata.cpp.

◆ getGlobalTransform() [1/3]

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

Definition at line 329 of file qssgrenderdata.cpp.

◆ getGlobalTransform() [2/3]

QMatrix4x4 QSSGGlobalRenderNodeData::getGlobalTransform ( QSSGRenderNodeHandle h) const
nodiscard

Definition at line 324 of file qssgrenderdata.cpp.

◆ getGlobalTransform() [3/3]

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

Definition at line 309 of file qssgrenderdata.cpp.

◆ getInstanceTransforms() [1/2]

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

Definition at line 418 of file qssgrenderdata.cpp.

◆ getInstanceTransforms() [2/2]

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

Definition at line 423 of file qssgrenderdata.cpp.

◆ getLayerNodeView() [1/2]

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

Definition at line 373 of file qssgrenderdata.cpp.

◆ getLayerNodeView() [2/2]

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

Definition at line 359 of file qssgrenderdata.cpp.

◆ invalidate()

void QSSGGlobalRenderNodeData::invalidate ( )

Definition at line 304 of file qssgrenderdata.cpp.

◆ nodeCount()

size_t QSSGGlobalRenderNodeData::nodeCount ( ) const
inlinenodiscard

Definition at line 91 of file qssgrenderdata_p.h.

◆ reindex()

void QSSGGlobalRenderNodeData::reindex ( )

Definition at line 265 of file qssgrenderdata.cpp.

◆ storageSize()

size_t QSSGGlobalRenderNodeData::storageSize ( ) const
inlinenodiscard

Definition at line 92 of file qssgrenderdata_p.h.

◆ version()

VersionType QSSGGlobalRenderNodeData::version ( ) const
inlinenodiscard

Definition at line 86 of file qssgrenderdata_p.h.

◆ ::tst_NodeIndexing

friend class ::tst_NodeIndexing
friend

Definition at line 123 of file qssgrenderdata_p.h.

Member Data Documentation

◆ globalOpacities

GlobalOpacityStore QSSGGlobalRenderNodeData::globalOpacities { }

Definition at line 106 of file qssgrenderdata_p.h.

◆ globalTransforms

GlobalTransformStore QSSGGlobalRenderNodeData::globalTransforms { }

Definition at line 105 of file qssgrenderdata_p.h.

◆ instanceTransforms

InstanceTransformStore QSSGGlobalRenderNodeData::instanceTransforms { }

Definition at line 107 of file qssgrenderdata_p.h.

◆ layerNodes

LayerNodeViewStore QSSGGlobalRenderNodeData::layerNodes { }

Definition at line 109 of file qssgrenderdata_p.h.

◆ materials

MaterialStore QSSGGlobalRenderNodeData::materials { }

Definition at line 112 of file qssgrenderdata_p.h.

◆ meshes

MeshStore QSSGGlobalRenderNodeData::meshes { }

Definition at line 111 of file qssgrenderdata_p.h.

◆ nodes

NodeStore QSSGGlobalRenderNodeData::nodes { }

Definition at line 108 of file qssgrenderdata_p.h.

◆ normalMatrices

NormalMatrixStore QSSGGlobalRenderNodeData::normalMatrices { }

Definition at line 110 of file qssgrenderdata_p.h.


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