- 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 String
toString()
SeeQt3DRender::QRayCasterHit::
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()See
Qt3DRender::QRayCasterHit::
QRayCasterHit() -
QRayCasterHit
See
Qt3DRender::QRayCasterHit::
QRayCasterHit(Qt3DRender::QRayCasterHit) - Parameters:
other
-
-
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) - Parameters:
type
-id
-distance
-localIntersect
-worldIntersect
-primitiveIndex
-v1
-v2
-v3
-
-
-
Method Details
-
distance
Returns the distance between the origin of the ray and the intersection point
- Returns:
-
entity
Returns a pointer to the entity that was hit
- Returns:
-
entityId
Returns the id of the entity that was hit
- Returns:
-
localIntersection
Returns the coordinates of the intersection point in the entity's coordinate system
- Returns:
-
assign
See
Qt3DRender::QRayCasterHit::
operator=(Qt3DRender::QRayCasterHit) - Parameters:
other
-
-
primitiveIndex
Returns the index of the picked primitive
- Returns:
-
toString
See
Qt3DRender::QRayCasterHit::
toString() -
type
Returns the type of the hit
- Returns:
-
vertex1Index
Returns the index of the first vertex of the picked primitive
- Returns:
-
vertex2Index
Returns the index of the second vertex of the picked primitive
- Returns:
-
vertex3Index
Returns the index of the third vertex of the picked primitive
- Returns:
-
worldIntersection
Returns the coordinates of the intersection point in the model's coordinate system
- Returns:
-
clone
Creates and returns a copy of this object.
See
Qt3DRender::QRayCasterHit::
QRayCasterHit(Qt3DRender::QRayCasterHit)
-