java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.qt3d.render.QRayCasterHit
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Details of a hit when casting a ray through a model
Java wrapper for Qt 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 TypeMethodDescriptionclone()
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 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
-
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
-
toString
-
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
-