- 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 enumQt3DRender::QRayCasterHit::HitType
-
Field Summary
Modifier and TypeFieldDescriptionstatic final QMetaObject
This variable stores the meta-object for the class. -
Constructor Summary
ConstructorDescriptionSeeQt3DRender::QRayCasterHit::
QRayCasterHit() QRayCasterHit
(QRayCasterHit other) SeeQt3DRender::QRayCasterHit::
QRayCasterHit(Qt3DRender::QRayCasterHit) QRayCasterHit
(QRayCasterHit.HitType type, QNodeId id, float distance, QVector3D localIntersect, QVector3D worldIntersect, int primitiveIndex, int v1, int v2, int v3) SeeQt3DRender::QRayCasterHit::
QRayCasterHit(Qt3DRender::QRayCasterHit::HitType, Qt3DCore::QNodeId, float, QVector3D, QVector3D, uint, uint, uint, uint) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
assign
(QRayCasterHit other) SeeQt3DRender::QRayCasterHit::
operator=(Qt3DRender::QRayCasterHit) clone()
Creates and returns a copy of this object.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 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()See
Qt3DRender::QRayCasterHit::
QRayCasterHit() -
QRayCasterHit
See
Qt3DRender::QRayCasterHit::
QRayCasterHit(Qt3DRender::QRayCasterHit) -
QRayCasterHit
public QRayCasterHit(QRayCasterHit.HitType type, QNodeId id, float distance, QVector3D localIntersect, QVector3D worldIntersect, int primitiveIndex, int v1, int v2, int v3) See
Qt3DRender::QRayCasterHit::
QRayCasterHit(Qt3DRender::QRayCasterHit::HitType, Qt3DCore::QNodeId, float, QVector3D, QVector3D, uint, uint, uint, uint)
-
-
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
-
assign
See
Qt3DRender::QRayCasterHit::
operator=(Qt3DRender::QRayCasterHit) -
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
Creates and returns a copy of this object.
See
Qt3DRender::QRayCasterHit::
QRayCasterHit(Qt3DRender::QRayCasterHit)
-