// Find entities where poseVar equals Pose()
Query.where { has(TestComponent.id) }
.filter { by(TestComponent.poseVar).isEqualTo(Pose()) }
// Find entities where poseVar's postition X is greater than 0.5f
Query.where { has(TestComponent.id) }
.filter { by(TestComponent.poseVar).byPositionX().greaterThan(0.5f) }
// Find entities where poseVar's orientation W is between 0.0f and 1.0f
Query.where { has(TestComponent.id)}
.filter { by(TestComponent.poseVar).byOrientationW().greaterThanOrEqualTo(0.0f) and
by(TestComponent.poseVar).byOrientationW().lessThanOrEqualTo(1.0f) }
class ByPoseFilterOperation(val attrId: Int, var propId: Int = 0, val filterBuilder: FilterBuilder)
ByPoseFilterOperation
(
attrId
,
propId
,
filterBuilder
)
:
ByPoseFilterOperation |
Signature
constructor(attrId: Int, propId: Int = 0, filterBuilder: FilterBuilder) Parameters
attrId:
Int
propId:
Int
filterBuilder:
FilterBuilder Returns |
attrId
:
Int
[Get] |
Signature
val attrId: Int |
filterBuilder
:
FilterBuilder [Get] |
Signature
val filterBuilder: FilterBuilder |
propId
:
Int
[Get][Set] |
Signature
var propId: Int |
byOrientationW
()
:
ByPoseFilterOperation |
Sets the filter to operate on the W component of the Pose's orientation quaternion.
Signature
fun byOrientationW(): ByPoseFilterOperation Returns
This filter operation configured to filter on the orientation's W component.
|
byOrientationX
()
:
ByPoseFilterOperation |
Sets the filter to operate on the X component of the Pose's orientation quaternion.
Signature
fun byOrientationX(): ByPoseFilterOperation Returns
This filter operation configured to filter on the orientation's X component.
|
byOrientationY
()
:
ByPoseFilterOperation |
Sets the filter to operate on the Y component of the Pose's orientation quaternion.
Signature
fun byOrientationY(): ByPoseFilterOperation Returns
This filter operation configured to filter on the orientation's Y component.
|
byOrientationZ
()
:
ByPoseFilterOperation |
Sets the filter to operate on the Z component of the Pose's orientation quaternion.
Signature
fun byOrientationZ(): ByPoseFilterOperation Returns
This filter operation configured to filter on the orientation's Z component.
|
byPositionX
()
:
ByPoseFilterOperation |
Sets the filter to operate on the X component of the Pose's position.
Signature
fun byPositionX(): ByPoseFilterOperation Returns
This filter operation configured to filter on the position's X component.
|
byPositionY
()
:
ByPoseFilterOperation |
Sets the filter to operate on the Y component of the Pose's position.
Signature
fun byPositionY(): ByPoseFilterOperation Returns
This filter operation configured to filter on the position's Y component.
|
byPositionZ
()
:
ByPoseFilterOperation |
Sets the filter to operate on the Z component of the Pose's position.
Signature
fun byPositionZ(): ByPoseFilterOperation Returns
This filter operation configured to filter on the position's Z component.
|
greaterThan
(
value
)
:
ByPoseFilterNode |
Creates a filter node representing a greater than condition with the given float value. This compares only the component specified by propId (position X/Y/Z or orientation W/X/Y/Z). By default, the filter operates on the position's X component.
Signature
fun greaterThan(value: Float): ByPoseFilterNode Parameters
value:
Float
|
greaterThanOrEqualTo
(
value
)
:
ByPoseFilterNode |
Creates a filter node representing a greater than or equal to condition with the given float value. This compares only the component specified by propId (position X/Y/Z or orientation W/X/Y/Z). By default, the filter operates on the position's X component.
Signature
fun greaterThanOrEqualTo(value: Float): ByPoseFilterNode Parameters
value:
Float
|
isEqualTo
(
value
)
:
ByPoseFilterNode |
Creates a filter node representing an equality condition with the given Pose value. This compares all position (x, y, z) and orientation (w, x, y, z) components of the pose.
Signature
fun isEqualTo(value: Pose): ByPoseFilterNode Parameters
value:
Pose |
isEqualTo
(
value
)
:
ByPoseFilterNode |
Creates a filter node representing an equality condition with the given float value. This compares only the component specified by propId (position X/Y/Z or orientation W/X/Y/Z). By default, the filter operates on the position's X component.
Signature
fun isEqualTo(value: Float): ByPoseFilterNode Parameters
value:
Float
|
lessThan
(
value
)
:
ByPoseFilterNode |
Creates a filter node representing a less than condition with the given float value. This compares only the component specified by propId (position X/Y/Z or orientation W/X/Y/Z). By default, the filter operates on the position's X component.
Signature
fun lessThan(value: Float): ByPoseFilterNode Parameters
value:
Float
|
lessThanOrEqualTo
(
value
)
:
ByPoseFilterNode |
Creates a filter node representing a less than or equal to condition with the given float value. This compares only the component specified by propId (position X/Y/Z or orientation W/X/Y/Z). By default, the filter operates on the position's X component.
Signature
fun lessThanOrEqualTo(value: Float): ByPoseFilterNode Parameters
value:
Float
|