- 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
Nested ClassesModifier and TypeClassDescriptionstatic enumJava wrapper for Qt enum Qt3DRender::QRayCasterHit::HitTypeNested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final QMetaObjectThis variable stores the meta-object for the class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionQRayCasterHit(QRayCasterHit other) QRayCasterHit(QRayCasterHit.HitType type, QNodeId id, float distance, QVector3D localIntersect, QVector3D worldIntersect, int primitiveIndex, int v1, int v2, int v3) protectedConstructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidassign(QRayCasterHit other) clone()final floatdistance()Returns the distance between the origin of the ray and the intersection pointfinal QEntityentity()Returns a pointer to the entity that was hitfinal QNodeIdentityId()Returns the id of the entity that was hitfinal floatKotlin property getter.final QEntityKotlin property getter.final QNodeIdKotlin property getter.final QVector3DKotlin property getter.final intKotlin property getter.final QRayCasterHit.HitTypegetType()Kotlin property getter.final intKotlin property getter.final intKotlin property getter.final intKotlin property getter.final QVector3DKotlin property getter.final QVector3DReturns the coordinates of the intersection point in the entity's coordinate systemfinal intReturns the index of the picked primitivefinal StringtoString()final QRayCasterHit.HitTypetype()Returns the type of the hitfinal intReturns the index of the first vertex of the picked primitivefinal intReturns the index of the second vertex of the picked primitivefinal intReturns the index of the third vertex of the picked primitivefinal QVector3DReturns 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
-