mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
Picks and RayPick API JSdoc updates per Pointers API JSDoc
This commit is contained in:
parent
f2cf3bd05c
commit
e109c8f6d3
3 changed files with 31 additions and 25 deletions
|
@ -55,7 +55,7 @@ PickFilter getPickFilter(unsigned int filter) {
|
|||
}
|
||||
|
||||
/**jsdoc
|
||||
* A set of properties that can be passed to {@link Picks.createPick} when creating a new ray pick.
|
||||
* The properties of a ray pick.
|
||||
*
|
||||
* @typedef {object} Picks.RayPickProperties
|
||||
* @property {boolean} [enabled=false] - <code>true</code> if this pick should start enabled, <code>false</code> if it should
|
||||
|
@ -138,7 +138,7 @@ unsigned int PickScriptingInterface::createRayPick(const QVariant& properties) {
|
|||
}
|
||||
|
||||
/**jsdoc
|
||||
* A set of properties that can be passed to {@link Picks.createPick} when creating a new stylus pick.
|
||||
* The properties of a stylus pick.
|
||||
*
|
||||
* @typedef {object} Picks.StylusPickProperties
|
||||
* @property {number} [hand=-1] <code>0</code> for the left hand, <code>1</code> for the right hand, invalid (<code>-1</code>)
|
||||
|
@ -189,7 +189,7 @@ unsigned int PickScriptingInterface::createStylusPick(const QVariant& properties
|
|||
|
||||
// NOTE: Laser pointer still uses scaleWithAvatar. Until scaleWithAvatar is also deprecated for pointers, scaleWithAvatar should not be removed from the pick API.
|
||||
/**jsdoc
|
||||
* A set of properties that can be passed to {@link Picks.createPick} when creating a new parabola pick.
|
||||
* The properties of a parabola pick.
|
||||
*
|
||||
* @typedef {object} Picks.ParabolaPickProperties
|
||||
* @property {boolean} [enabled=false] - <code>true</code> if this pick should start enabled, <code>false</code> if it should
|
||||
|
@ -297,7 +297,7 @@ unsigned int PickScriptingInterface::createParabolaPick(const QVariant& properti
|
|||
|
||||
|
||||
/**jsdoc
|
||||
* A set of properties that can be passed to {@link Picks.createPick} when creating a new collision pick.
|
||||
* The properties or a collision pick.
|
||||
*
|
||||
* @typedef {object} Picks.CollisionPickProperties
|
||||
* @property {boolean} [enabled=false] - <code>true</code> if this pick should start enabled, <code>false</code> if it should
|
||||
|
|
|
@ -194,7 +194,8 @@ public:
|
|||
Q_INVOKABLE QVariantMap getPrevPickResult(unsigned int uid);
|
||||
|
||||
/**jsdoc
|
||||
* Sets whether or not to use precision picking, i.e., whether to pick against precise meshes or coarse meshes.
|
||||
* Sets whether or not a pick should use precision picking, i.e., whether it should pick against precise meshes or coarse
|
||||
* meshes.
|
||||
* This has the same effect as using the <code>PICK_PRECISE</code> or <code>PICK_COARSE</code> filter flags.
|
||||
* @function Picks.setPrecisionPicking
|
||||
* @param {number} id - The ID of the pick.
|
||||
|
@ -203,7 +204,7 @@ public:
|
|||
Q_INVOKABLE void setPrecisionPicking(unsigned int uid, bool precisionPicking);
|
||||
|
||||
/**jsdoc
|
||||
* Sets a list of entity and avatar IDs to ignore during intersection.
|
||||
* Sets a list of entity and avatar IDs that a pick should ignore during intersection.
|
||||
* <p><strong>Note:</strong> Not used by stylus picks.</p>
|
||||
* @function Picks.setIgnoreItems
|
||||
* @param {number} id - The ID of the pick.
|
||||
|
@ -212,8 +213,9 @@ public:
|
|||
Q_INVOKABLE void setIgnoreItems(unsigned int uid, const QScriptValue& ignoreItems);
|
||||
|
||||
/**jsdoc
|
||||
* Sets a list of entity IDs and/or avatar IDs to include during intersection, instead of intersecting with everything.
|
||||
* <p><strong>Note:</strong> Stylus picks only intersect with objects in their include list.</p>
|
||||
* Sets a list of entity and avatar IDs that a pick should include during intersection, instead of intersecting with
|
||||
* everything.
|
||||
* <p><strong>Note:</strong> Stylus picks only intersect with items in their include list.</p>
|
||||
* @function Picks.setIncludeItems
|
||||
* @param {number} id - The ID of the pick.
|
||||
* @param {Uuid[]} includeItems - The list of IDs to include.
|
||||
|
@ -221,9 +223,9 @@ public:
|
|||
Q_INVOKABLE void setIncludeItems(unsigned int uid, const QScriptValue& includeItems);
|
||||
|
||||
/**jsdoc
|
||||
* Checks if a pick is associated with the left hand: a ray or parabola pick with joint set to
|
||||
* <code>"_CONTROLLER_LEFTHAND"</code> or <code>"_CAMERA_RELATIVE_CONTROLLER_LEFTHAND"</code>, or a stylus pick with hand
|
||||
* set to <code>0</code>.
|
||||
* Checks if a pick is associated with the left hand: a ray or parabola pick with <code>joint</code> property set to
|
||||
* <code>"_CONTROLLER_LEFTHAND"</code> or <code>"_CAMERA_RELATIVE_CONTROLLER_LEFTHAND"</code>, or a stylus pick with
|
||||
* <code>hand</code> property set to <code>0</code>.
|
||||
* @function Picks.isLeftHand
|
||||
* @param {number} id - The ID of the pick.
|
||||
* @returns {boolean} <code>true</code> if the pick is associated with the left hand, <code>false</code> if it isn't.
|
||||
|
@ -231,9 +233,9 @@ public:
|
|||
Q_INVOKABLE bool isLeftHand(unsigned int uid);
|
||||
|
||||
/**jsdoc
|
||||
* Checks if a pick is associated with the right hand: a ray or parabola pick with joint set to
|
||||
* <code>"_CONTROLLER_RIGHTHAND"</code> or <code>"_CAMERA_RELATIVE_CONTROLLER_RIGHTHAND"</code>, or a stylus pick with hand
|
||||
* set to <code>1</code>.
|
||||
* Checks if a pick is associated with the right hand: a ray or parabola pick with <code>joint</code> property set to
|
||||
* <code>"_CONTROLLER_RIGHTHAND"</code> or <code>"_CAMERA_RELATIVE_CONTROLLER_RIGHTHAND"</code>, or a stylus pick with
|
||||
* <code>hand</code> property set to <code>1</code>.
|
||||
* @function Picks.isRightHand
|
||||
* @param {number} id - The ID of the pick.
|
||||
* @returns {boolean} <code>true</code> if the pick is associated with the right hand, <code>false</code> if it isn't.
|
||||
|
@ -241,7 +243,8 @@ public:
|
|||
Q_INVOKABLE bool isRightHand(unsigned int uid);
|
||||
|
||||
/**jsdoc
|
||||
* Checks if a pick is associated with the system mouse: a ray or parabola pick with joint set to <code>"Mouse"</code>.
|
||||
* Checks if a pick is associated with the system mouse: a ray or parabola pick with <code>joint</code> property set to
|
||||
* <code>"Mouse"</code>.
|
||||
* @function Picks.isMouse
|
||||
* @param {number} id - The ID of the pick.
|
||||
* @returns {boolean} <code>true</code> if the pick is associated with the system mouse, <code>false</code> if it isn't.
|
||||
|
|
|
@ -107,7 +107,8 @@ public:
|
|||
|
||||
|
||||
/**jsdoc
|
||||
* Sets whether or not to use precision picking, i.e., whether to pick against precise meshes or coarse meshes.
|
||||
* Sets whether or not a ray pick should use precision picking, i.e., whether it should pick against precise meshes or
|
||||
* coarse meshes.
|
||||
* @function RayPick.setPrecisionPicking
|
||||
* @param {number} id - The ID of the ray pick.
|
||||
* @param {boolean} precisionPicking - <code>true</code> to use precision picking, <code>false</code> to use coarse picking.
|
||||
|
@ -115,7 +116,7 @@ public:
|
|||
Q_INVOKABLE void setPrecisionPicking(unsigned int uid, bool precisionPicking);
|
||||
|
||||
/**jsdoc
|
||||
* Sets a list of entity and avatar IDs to ignore during intersection.
|
||||
* Sets a list of entity and avatar IDs that a ray pick should ignore during intersection.
|
||||
* @function RayPick.setIgnoreItems
|
||||
* @param {number} id - The ID of the ray pick.
|
||||
* @param {Uuid[]} ignoreItems - The list of IDs to ignore.
|
||||
|
@ -123,7 +124,8 @@ public:
|
|||
Q_INVOKABLE void setIgnoreItems(unsigned int uid, const QScriptValue& ignoreEntities);
|
||||
|
||||
/**jsdoc
|
||||
* Sets a list of entity IDs and/or avatar IDs to include during intersection, instead of intersecting with everything.
|
||||
* Sets a list of entity and avatar IDs that a ray pick should include during intersection, instead of intersecting with
|
||||
* everything.
|
||||
* @function RayPick.setIncludeItems
|
||||
* @param {number} id - The ID of the ray pick.
|
||||
* @param {Uuid[]} includeItems - The list of IDs to include.
|
||||
|
@ -132,9 +134,9 @@ public:
|
|||
|
||||
|
||||
/**jsdoc
|
||||
* Checks if a pick is associated with the left hand: a ray or parabola pick with joint set to
|
||||
* <code>"_CONTROLLER_LEFTHAND"</code> or <code>"_CAMERA_RELATIVE_CONTROLLER_LEFTHAND"</code>, or a stylus pick with hand
|
||||
* set to <code>0</code>.
|
||||
* Checks if a pick is associated with the left hand: a ray or parabola pick with <code>joint</code> property set to
|
||||
* <code>"_CONTROLLER_LEFTHAND"</code> or <code>"_CAMERA_RELATIVE_CONTROLLER_LEFTHAND"</code>, or a stylus pick with
|
||||
* <code>hand</code> property set to <code>0</code>.
|
||||
* @function RayPick.isLeftHand
|
||||
* @param {number} id - The ID of the ray pick.
|
||||
* @returns {boolean} <code>true</code> if the pick is associated with the left hand, <code>false</code> if it isn't.
|
||||
|
@ -142,9 +144,9 @@ public:
|
|||
Q_INVOKABLE bool isLeftHand(unsigned int uid);
|
||||
|
||||
/**jsdoc
|
||||
* Checks if a pick is associated with the right hand: a ray or parabola pick with joint set to
|
||||
* <code>"_CONTROLLER_RIGHTHAND"</code> or <code>"_CAMERA_RELATIVE_CONTROLLER_RIGHTHAND"</code>, or a stylus pick with hand
|
||||
* set to <code>1</code>.
|
||||
* Checks if a pick is associated with the right hand: a ray or parabola pick with <code>joint</code> property set to
|
||||
* <code>"_CONTROLLER_RIGHTHAND"</code> or <code>"_CAMERA_RELATIVE_CONTROLLER_RIGHTHAND"</code>, or a stylus pick with
|
||||
* <code>hand</code> property set to <code>1</code>.
|
||||
* @function RayPick.isRightHand
|
||||
* @param {number} id - The ID of the ray pick.
|
||||
* @returns {boolean} <code>true</code> if the pick is associated with the right hand, <code>false</code> if it isn't.
|
||||
|
@ -152,7 +154,8 @@ public:
|
|||
Q_INVOKABLE bool isRightHand(unsigned int uid);
|
||||
|
||||
/**jsdoc
|
||||
* Checks if a pick is associated with the system mouse: a ray or parabola pick with joint set to <code>"Mouse"</code>.
|
||||
* Checks if a pick is associated with the system mouse: a ray or parabola pick with <code>joint</code> property set to
|
||||
* <code>"Mouse"</code>.
|
||||
* @function RayPick.isMouse
|
||||
* @param {number} id - The ID of the ray pick.
|
||||
* @returns {boolean} <code>true</code> if the pick is associated with the system mouse, <code>false</code> if it isn't.
|
||||
|
|
Loading…
Reference in a new issue