Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qssgrenderpickresult.h
Go to the documentation of this file.
1
// Copyright (C) 2023 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
6
#
ifndef
QSSGRENDERPICKRESULT_H
7
#
define
QSSGRENDERPICKRESULT_H
8
9
//
10
// W A R N I N G
11
// -------------
12
//
13
// This file is part of the QtQuick3D API, with limited compatibility guarantees.
14
// Usage of this API may make your code source and binary incompatible with
15
// future versions of Qt.
16
//
17
18
#
include
<
QtQuick3DRuntimeRender
/
qtquick3druntimerenderexports
.
h
>
19
#
include
<
QtGui
/
qvectornd
.
h
>
20
#
include
<
limits
>
21
22
QT_BEGIN_NAMESPACE
23
24
class
QSSGRenderGraphObject;
25
26
class
QSSGRenderPickResult
27
{
28
public
:
29
const
QSSGRenderGraphObject *
m_hitObject
=
nullptr
;
30
float
m_distanceSq
=
std
::numeric_limits<
float
>::max();
31
// The local coordinates in X,Y UV space where the hit occurred
32
QVector2D
m_localUVCoords
;
33
// The position in world coordinates
34
QVector3D
m_scenePosition
;
35
// The position in local coordinates
36
QVector3D
m_localPosition
;
37
// The normal of the hit face
38
QVector3D
m_faceNormal
;
39
// The normal of the hit face in world coordinates
40
QVector3D
m_sceneNormal
;
41
// The subset index
42
int
m_subset
= 0;
43
int
m_instanceIndex
= -1;
44
};
45
46
Q_STATIC_ASSERT
(std::is_trivially_destructible_v<QSSGRenderPickResult>);
47
48
QT_END_NAMESPACE
49
50
#
endif
// QSSGRENDERPICKRESULT_H
QSSGRenderPickResult
Definition
qssgrenderpickresult.h:27
QSSGRenderPickResult::m_distanceSq
float m_distanceSq
Definition
qssgrenderpickresult.h:30
QSSGRenderPickResult::m_instanceIndex
int m_instanceIndex
Definition
qssgrenderpickresult.h:43
QSSGRenderPickResult::m_sceneNormal
QVector3D m_sceneNormal
Definition
qssgrenderpickresult.h:40
QSSGRenderPickResult::m_localPosition
QVector3D m_localPosition
Definition
qssgrenderpickresult.h:36
QSSGRenderPickResult::m_scenePosition
QVector3D m_scenePosition
Definition
qssgrenderpickresult.h:34
QSSGRenderPickResult::m_subset
int m_subset
Definition
qssgrenderpickresult.h:42
QSSGRenderPickResult::m_hitObject
const QSSGRenderGraphObject * m_hitObject
Definition
qssgrenderpickresult.h:29
QSSGRenderPickResult::m_localUVCoords
QVector2D m_localUVCoords
Definition
qssgrenderpickresult.h:32
QSSGRenderPickResult::m_faceNormal
QVector3D m_faceNormal
Definition
qssgrenderpickresult.h:38
std
[33]
Definition
src_corelib_tools_qhash.cpp:421
Q_STATIC_ASSERT
Q_STATIC_ASSERT(sizeof(SharedImageHeader) % 4==0)
qtquick3d
src
runtimerender
qssgrenderpickresult.h
Generated on
for Qt by
1.18.0