java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.qt3d.render.QRayCasterHit
- All Implemented Interfaces:
io.qt.QtObjectInterface,Cloneable
Details of a hit when casting a ray through a model
Java wrapper for Qt 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
io.qt.QtObject.QPrivateConstructor -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.qt.core.QMetaObjectThis variable stores the meta-object for the class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionQRayCasterHit(QRayCasterHit other) QRayCasterHit(QRayCasterHit.HitType type, io.qt.qt3d.core.QNodeId id, float distance, io.qt.gui.QVector3D localIntersect, io.qt.gui.QVector3D worldIntersect, int primitiveIndex, int v1, int v2, int v3) protectedQRayCasterHit(io.qt.QtObject.QPrivateConstructor p) Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionclone()final floatdistance()Returns the distance between the origin of the ray and the intersection pointfinal io.qt.qt3d.core.QEntityentity()Returns a pointer to the entity that was hitfinal io.qt.qt3d.core.QNodeIdentityId()Returns the id of the entity that was hitfinal io.qt.gui.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 io.qt.gui.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
public static final io.qt.core.QMetaObject staticMetaObjectThis variable stores the meta-object for the class.
-
-
Constructor Details
-
QRayCasterHit
public QRayCasterHit() -
QRayCasterHit
public QRayCasterHit(QRayCasterHit.HitType type, io.qt.qt3d.core.QNodeId id, float distance, io.qt.gui.QVector3D localIntersect, io.qt.gui.QVector3D worldIntersect, int primitiveIndex, int v1, int v2, int v3) -
QRayCasterHit
-
QRayCasterHit
protected QRayCasterHit(io.qt.QtObject.QPrivateConstructor p) Constructor for internal use only.- Parameters:
p- expected to benull.
-
-
Method Details
-
distance
@QtUninvokable public final float distance()Returns the distance between the origin of the ray and the intersection point
-
entity
@QtUninvokable public final io.qt.qt3d.core.QEntity entity()Returns a pointer to the entity that was hit
-
entityId
@QtUninvokable public final io.qt.qt3d.core.QNodeId entityId()Returns the id of the entity that was hit
-
localIntersection
@QtUninvokable public final io.qt.gui.QVector3D localIntersection()Returns the coordinates of the intersection point in the entity's coordinate system
-
primitiveIndex
@QtUninvokable public final int primitiveIndex()Returns the index of the picked primitive
-
toString
-
type
Returns the type of the hit
-
vertex1Index
@QtUninvokable public final int vertex1Index()Returns the index of the first vertex of the picked primitive
-
vertex2Index
@QtUninvokable public final int vertex2Index()Returns the index of the second vertex of the picked primitive
-
vertex3Index
@QtUninvokable public final int vertex3Index()Returns the index of the third vertex of the picked primitive
-
worldIntersection
@QtUninvokable public final io.qt.gui.QVector3D worldIntersection()Returns the coordinates of the intersection point in the model's coordinate system
-
clone
-