- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Details of a hit when casting a ray through a model
Java wrapper for Qt's class Qt3DRender::QRayCasterHit
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enum Qt3DRender::QRayCasterHit::HitTypeNested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Field Summary
Modifier and TypeFieldDescriptionstatic final QMetaObject
This variable stores the meta-object for the class. -
Constructor Summary
ModifierConstructorDescriptionQRayCasterHit
(QRayCasterHit other) QRayCasterHit
(QRayCasterHit.HitType type, QNodeId id, float distance, QVector3D localIntersect, QVector3D worldIntersect, int primitiveIndex, int v1, int v2, int v3) protected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal void
assign
(QRayCasterHit other) clone()
final float
distance()
Returns the distance between the origin of the ray and the intersection pointfinal QEntity
entity()
Returns a pointer to the entity that was hitfinal QNodeId
entityId()
Returns the id of the entity that was hitfinal float
Kotlin property getter.final QEntity
Kotlin property getter.final QNodeId
Kotlin property getter.final QVector3D
Kotlin property getter.final int
Kotlin property getter.final QRayCasterHit.HitType
getType()
Kotlin property getter.final int
Kotlin property getter.final int
Kotlin property getter.final int
Kotlin property getter.final QVector3D
Kotlin property getter.final QVector3D
Returns the coordinates of the intersection point in the entity's coordinate systemfinal int
Returns the index of the picked primitivefinal String
toString()
final QRayCasterHit.HitType
type()
Returns the type of the hitfinal int
Returns the index of the first vertex of the picked primitivefinal int
Returns the index of the second vertex of the picked primitivefinal int
Returns the index of the third vertex of the picked primitivefinal QVector3D
Returns the coordinates of the intersection point in the model's coordinate systemMethods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
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
-
getDistance
Kotlin property getter. In Java use
distance()
instead. -
distance
Returns the distance between the origin of the ray and the intersection point
-
getEntity
Kotlin property getter. In Java use
entity()
instead. -
entity
Returns a pointer to the entity that was hit
-
getEntityId
Kotlin property getter. In Java use
entityId()
instead. -
entityId
Returns the id of the entity that was hit
-
getLocalIntersection
Kotlin property getter. In Java use
localIntersection()
instead. -
localIntersection
Returns the coordinates of the intersection point in the entity's coordinate system
-
assign
-
getPrimitiveIndex
Kotlin property getter. In Java use
primitiveIndex()
instead. -
primitiveIndex
Returns the index of the picked primitive
-
toString
-
getType
Kotlin property getter. In Java use
type()
instead. -
type
Returns the type of the hit
-
getVertex1Index
Kotlin property getter. In Java use
vertex1Index()
instead. -
vertex1Index
Returns the index of the first vertex of the picked primitive
-
getVertex2Index
Kotlin property getter. In Java use
vertex2Index()
instead. -
vertex2Index
Returns the index of the second vertex of the picked primitive
-
getVertex3Index
Kotlin property getter. In Java use
vertex3Index()
instead. -
vertex3Index
Returns the index of the third vertex of the picked primitive
-
getWorldIntersection
Kotlin property getter. In Java use
worldIntersection()
instead. -
worldIntersection
Returns the coordinates of the intersection point in the model's coordinate system
-
clone
-