java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.qt3d.render.QRayCasterHit
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
public class QRayCasterHit extends QtObject implements Cloneable
Details of a hit when casting a ray through a model
Java wrapper for Qt class Qt3DRender::QRayCasterHit
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QRayCasterHit.HitType
Java wrapper for Qt enum Qt3DRender::QRayCasterHit::HitType -
Field Summary
Fields Modifier and Type Field Description static QMetaObject
staticMetaObject
This variable stores the meta-object for the class. -
Constructor Summary
Constructors Modifier Constructor Description QRayCasterHit()
QRayCasterHit(QRayCasterHit other)
QRayCasterHit(QRayCasterHit.HitType type, QNodeId id, float distance, QVector3D localIntersect, QVector3D worldIntersect, int primitiveIndex, int v1, int v2, int v3)
protected
QRayCasterHit(QtObject.QPrivateConstructor p)
Constructor for internal use only. -
Method Summary
Modifier and Type Method Description QRayCasterHit
clone()
float
distance()
Returns the distance between the origin of the ray and the intersection pointQEntity
entity()
Returns a pointer to the entity that was hitQNodeId
entityId()
Returns the id of the entity that was hitQVector3D
localIntersection()
Returns the coordinates of the intersection point in the entity's coordinate systemint
primitiveIndex()
Returns the index of the picked primitiveQRayCasterHit.HitType
type()
Returns the type of the hitint
vertex1Index()
Returns the index of the first vertex of the picked primitiveint
vertex2Index()
Returns the index of the second vertex of the picked primitiveint
vertex3Index()
Returns the index of the third vertex of the picked primitiveQVector3D
worldIntersection()
Returns the coordinates of the intersection point in the model's coordinate system
-
Field Details
-
staticMetaObject
This variable stores the meta-object for the class.
-
-
Constructor Details
-
QRayCasterHit
public QRayCasterHit() -
QRayCasterHit
public QRayCasterHit(QRayCasterHit.HitType type, QNodeId id, float distance, QVector3D localIntersect, QVector3D worldIntersect, int primitiveIndex, int v1, int v2, int v3) -
QRayCasterHit
-
QRayCasterHit
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
distance
Returns the distance between the origin of the ray and the intersection point
-
entity
Returns a pointer to the entity that was hit
-
entityId
Returns the id of the entity that was hit
-
localIntersection
Returns the coordinates of the intersection point in the entity's coordinate system
-
primitiveIndex
Returns the index of the picked primitive
-
type
Returns the type of the hit
-
vertex1Index
Returns the index of the first vertex of the picked primitive
-
vertex2Index
Returns the index of the second vertex of the picked primitive
-
vertex3Index
Returns the index of the third vertex of the picked primitive
-
worldIntersection
Returns the coordinates of the intersection point in the model's coordinate system
-
clone
-