diff options
| author | Sheikh Dawood Abdul Ajees <[email protected]> | 2018-11-27 13:02:50 -0600 |
|---|---|---|
| committer | Sheikh Dawood Abdul Ajees <[email protected]> | 2018-11-27 13:02:50 -0600 |
| commit | 78cab22a61786a23f2ee1ad7c5dcbec0024befca (patch) | |
| tree | 27cb86e3add785670ddfdbfc901f1654d74d1cb2 /PhysX_3.4/Documentation/PhysXAPI/files/PxQueryReport_8h-source.html | |
| parent | PhysX 3.4, APEX 1.4 patch release @24990349 (diff) | |
| download | physx-3.4-78cab22a61786a23f2ee1ad7c5dcbec0024befca.tar.xz physx-3.4-78cab22a61786a23f2ee1ad7c5dcbec0024befca.zip | |
PhysX 3.4, APEX 1.4 patch release @25256367
Diffstat (limited to 'PhysX_3.4/Documentation/PhysXAPI/files/PxQueryReport_8h-source.html')
| -rw-r--r-- | PhysX_3.4/Documentation/PhysXAPI/files/PxQueryReport_8h-source.html | 225 |
1 files changed, 112 insertions, 113 deletions
diff --git a/PhysX_3.4/Documentation/PhysXAPI/files/PxQueryReport_8h-source.html b/PhysX_3.4/Documentation/PhysXAPI/files/PxQueryReport_8h-source.html index c16f2a8e..3ec9d8dd 100644 --- a/PhysX_3.4/Documentation/PhysXAPI/files/PxQueryReport_8h-source.html +++ b/PhysX_3.4/Documentation/PhysXAPI/files/PxQueryReport_8h-source.html @@ -120,126 +120,125 @@ <a name="l00150"></a>00150 <span class="comment">// the following fields are set in accordance with the #PxHitFlags</span> <a name="l00151"></a><a class="code" href="structPxLocationHit.html#7a253cb291ae5850342dada5b4dfce34">00151</a> PxHitFlags flags; <a name="l00152"></a><a class="code" href="structPxLocationHit.html#b7481e53d2f35a8249ae862d337fe5ac">00152</a> <a class="code" href="classPxVec3.html" title="3 Element vector class.">PxVec3</a> position; -<a name="l00153"></a>00153 -<a name="l00154"></a><a class="code" href="structPxLocationHit.html#0e4815489090f4faced5e91f6f6cd336">00154</a> <a class="code" href="classPxVec3.html" title="3 Element vector class.">PxVec3</a> normal; -<a name="l00155"></a>00155 -<a name="l00160"></a><a class="code" href="structPxLocationHit.html#daccd7aa233279818ecdf50356ed0c76">00160</a> <a class="code" href="namespacephysx.html#b4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a> distance; -<a name="l00161"></a>00161 }; +<a name="l00153"></a><a class="code" href="structPxLocationHit.html#0e4815489090f4faced5e91f6f6cd336">00153</a> <a class="code" href="classPxVec3.html" title="3 Element vector class.">PxVec3</a> normal; +<a name="l00154"></a>00154 +<a name="l00159"></a><a class="code" href="structPxLocationHit.html#daccd7aa233279818ecdf50356ed0c76">00159</a> <a class="code" href="namespacephysx.html#b4cf332bdb6e8b183e40b6973acc1e9b">PxF32</a> distance; +<a name="l00160"></a>00160 }; +<a name="l00161"></a>00161 <a name="l00162"></a>00162 -<a name="l00163"></a>00163 -<a name="l00175"></a><a class="code" href="structPxRaycastHit.html">00175</a> <span class="keyword">struct </span><a class="code" href="structPxRaycastHit.html" title="Stores results of raycast queries.">PxRaycastHit</a> : <span class="keyword">public</span> <a class="code" href="structPxLocationHit.html" title="Scene query hit information for raycasts and sweeps returning hit position and normal...">PxLocationHit</a> -<a name="l00176"></a>00176 { -<a name="l00177"></a><a class="code" href="structPxRaycastHit.html#5e1097c8e1265bf67cd92ea6c39122c0">00177</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="structPxRaycastHit.html#5e1097c8e1265bf67cd92ea6c39122c0">PxRaycastHit</a>() : u(0.0f), v(0.0f) {} -<a name="l00178"></a>00178 -<a name="l00179"></a>00179 <span class="comment">// the following fields are set in accordance with the #PxHitFlags</span> -<a name="l00180"></a>00180 -<a name="l00181"></a><a class="code" href="structPxRaycastHit.html#43a429012ce502bac4636be3e5540f29">00181</a> <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> u, v; -<a name="l00182"></a>00182 <span class="preprocessor">#if !PX_P64_FAMILY</span> -<a name="l00183"></a><a class="code" href="structPxRaycastHit.html#251f56ec3d168a814467301f61a120c7">00183</a> <span class="preprocessor"></span> <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> padTo16Bytes[3]; -<a name="l00184"></a>00184 <span class="preprocessor">#endif</span> -<a name="l00185"></a>00185 <span class="preprocessor"></span>}; +<a name="l00174"></a><a class="code" href="structPxRaycastHit.html">00174</a> <span class="keyword">struct </span><a class="code" href="structPxRaycastHit.html" title="Stores results of raycast queries.">PxRaycastHit</a> : <span class="keyword">public</span> <a class="code" href="structPxLocationHit.html" title="Scene query hit information for raycasts and sweeps returning hit position and normal...">PxLocationHit</a> +<a name="l00175"></a>00175 { +<a name="l00176"></a><a class="code" href="structPxRaycastHit.html#5e1097c8e1265bf67cd92ea6c39122c0">00176</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="structPxRaycastHit.html#5e1097c8e1265bf67cd92ea6c39122c0">PxRaycastHit</a>() : u(0.0f), v(0.0f) {} +<a name="l00177"></a>00177 +<a name="l00178"></a>00178 <span class="comment">// the following fields are set in accordance with the #PxHitFlags</span> +<a name="l00179"></a>00179 +<a name="l00180"></a><a class="code" href="structPxRaycastHit.html#43a429012ce502bac4636be3e5540f29">00180</a> <a class="code" href="namespacephysx.html#727d2d8426e2a21ebbc522fa65c3f97a">PxReal</a> u, v; +<a name="l00181"></a>00181 <span class="preprocessor">#if !PX_P64_FAMILY</span> +<a name="l00182"></a><a class="code" href="structPxRaycastHit.html#251f56ec3d168a814467301f61a120c7">00182</a> <span class="preprocessor"></span> <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> padTo16Bytes[3]; +<a name="l00183"></a>00183 <span class="preprocessor">#endif</span> +<a name="l00184"></a>00184 <span class="preprocessor"></span>}; +<a name="l00185"></a>00185 <a name="l00186"></a>00186 -<a name="l00187"></a>00187 -<a name="l00193"></a><a class="code" href="structPxOverlapHit.html#27b1ad19e9c07c2d6463707b6f18b684">00193</a> <span class="keyword">struct </span><a class="code" href="structPxOverlapHit.html" title="Stores results of overlap queries.">PxOverlapHit</a>: <span class="keyword">public</span> <a class="code" href="structPxQueryHit.html" title="Scene query hit information.">PxQueryHit</a> { <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> padTo16Bytes; }; +<a name="l00192"></a><a class="code" href="structPxOverlapHit.html#27b1ad19e9c07c2d6463707b6f18b684">00192</a> <span class="keyword">struct </span><a class="code" href="structPxOverlapHit.html" title="Stores results of overlap queries.">PxOverlapHit</a>: <span class="keyword">public</span> <a class="code" href="structPxQueryHit.html" title="Scene query hit information.">PxQueryHit</a> { <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> padTo16Bytes; }; +<a name="l00193"></a>00193 <a name="l00194"></a>00194 -<a name="l00195"></a>00195 -<a name="l00201"></a><a class="code" href="structPxSweepHit.html">00201</a> <span class="keyword">struct </span><a class="code" href="structPxSweepHit.html" title="Stores results of sweep queries.">PxSweepHit</a> : <span class="keyword">public</span> <a class="code" href="structPxLocationHit.html" title="Scene query hit information for raycasts and sweeps returning hit position and normal...">PxLocationHit</a> -<a name="l00202"></a>00202 { -<a name="l00203"></a><a class="code" href="structPxSweepHit.html#7a872b4eff912e5e37e1ee8d551547ac">00203</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="structPxSweepHit.html#7a872b4eff912e5e37e1ee8d551547ac">PxSweepHit</a>() {} -<a name="l00204"></a>00204 -<a name="l00205"></a><a class="code" href="structPxSweepHit.html#4bf1a7791ef7aa0d5030fdd2756a607f">00205</a> <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> padTo16Bytes; -<a name="l00206"></a>00206 }; +<a name="l00200"></a><a class="code" href="structPxSweepHit.html">00200</a> <span class="keyword">struct </span><a class="code" href="structPxSweepHit.html" title="Stores results of sweep queries.">PxSweepHit</a> : <span class="keyword">public</span> <a class="code" href="structPxLocationHit.html" title="Scene query hit information for raycasts and sweeps returning hit position and normal...">PxLocationHit</a> +<a name="l00201"></a>00201 { +<a name="l00202"></a><a class="code" href="structPxSweepHit.html#7a872b4eff912e5e37e1ee8d551547ac">00202</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="structPxSweepHit.html#7a872b4eff912e5e37e1ee8d551547ac">PxSweepHit</a>() {} +<a name="l00203"></a>00203 +<a name="l00204"></a><a class="code" href="structPxSweepHit.html#4bf1a7791ef7aa0d5030fdd2756a607f">00204</a> <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> padTo16Bytes; +<a name="l00205"></a>00205 }; +<a name="l00206"></a>00206 <a name="l00207"></a>00207 -<a name="l00208"></a>00208 -<a name="l00217"></a><a class="code" href="group__scenequery.html#g4d0184965c0a910f5c96cb69c0690f5c">00217</a> <span class="keyword">typedef</span> <span class="keywordtype">bool</span> <a class="code" href="group__scenequery.html#g4d0184965c0a910f5c96cb69c0690f5c" title="Describes query behavior after returning a partial query result via a callback.">PxAgain</a>; +<a name="l00216"></a><a class="code" href="group__scenequery.html#g4d0184965c0a910f5c96cb69c0690f5c">00216</a> <span class="keyword">typedef</span> <span class="keywordtype">bool</span> <a class="code" href="group__scenequery.html#g4d0184965c0a910f5c96cb69c0690f5c" title="Describes query behavior after returning a partial query result via a callback.">PxAgain</a>; +<a name="l00217"></a>00217 <a name="l00218"></a>00218 -<a name="l00219"></a>00219 -<a name="l00233"></a>00233 <span class="keyword">template</span><<span class="keyword">typename</span> HitType> -<a name="l00234"></a><a class="code" href="structPxHitCallback.html">00234</a> <span class="keyword">struct </span><a class="code" href="structPxHitCallback.html" title="This callback class facilitates reporting scene query hits (intersections) to the...">PxHitCallback</a> -<a name="l00235"></a>00235 { -<a name="l00236"></a><a class="code" href="structPxHitCallback.html#63b2851eaf99b190fc468e00e8d1e55d">00236</a> HitType block; -<a name="l00237"></a><a class="code" href="structPxHitCallback.html#c20c6d1c2dd520d771da9b63f7f4f363">00237</a> <span class="keywordtype">bool</span> hasBlock; -<a name="l00238"></a>00238 -<a name="l00239"></a><a class="code" href="structPxHitCallback.html#a3fa478af9db3e043a540fca72a2f468">00239</a> HitType* touches; -<a name="l00240"></a>00240 -<a name="l00245"></a><a class="code" href="structPxHitCallback.html#0e64f72a5edf7c442ce81e3e4a8c61d1">00245</a> <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> maxNbTouches; -<a name="l00246"></a>00246 -<a name="l00250"></a><a class="code" href="structPxHitCallback.html#549f6828e98c9aeaee9012defa100f74">00250</a> <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> nbTouches; -<a name="l00251"></a>00251 -<a name="l00263"></a><a class="code" href="structPxHitCallback.html#062cff2cdd2dfe1f63d0549758ea2627">00263</a> <a class="code" href="structPxHitCallback.html" title="This callback class facilitates reporting scene query hits (intersections) to the...">PxHitCallback</a>(HitType* aTouches, <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> aMaxNbTouches) -<a name="l00264"></a>00264 : hasBlock(false), touches(aTouches), maxNbTouches(aMaxNbTouches), nbTouches(0) -<a name="l00265"></a>00265 {} -<a name="l00266"></a>00266 -<a name="l00287"></a>00287 <span class="keyword">virtual</span> <a class="code" href="group__scenequery.html#g4d0184965c0a910f5c96cb69c0690f5c" title="Describes query behavior after returning a partial query result via a callback.">PxAgain</a> processTouches(<span class="keyword">const</span> HitType* buffer, <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> nbHits) = 0; -<a name="l00288"></a>00288 -<a name="l00289"></a><a class="code" href="structPxHitCallback.html#86b66684b448ec43083edf3aa1983234">00289</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="structPxHitCallback.html#86b66684b448ec43083edf3aa1983234" title="Query finalization callback, called after the last processTouches callback.">finalizeQuery</a>() {} -<a name="l00290"></a>00290 -<a name="l00291"></a><a class="code" href="structPxHitCallback.html#7fbb5959c9fcc98834745644422210c3">00291</a> <span class="keyword">virtual</span> <a class="code" href="structPxHitCallback.html#7fbb5959c9fcc98834745644422210c3">~PxHitCallback</a>() {} -<a name="l00292"></a>00292 -<a name="l00294"></a><a class="code" href="structPxHitCallback.html#8ff687b42ac0273e730c714bf66dae49">00294</a> <a class="code" href="group__foundation.html#g6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <span class="keywordtype">bool</span> <a class="code" href="structPxHitCallback.html#8ff687b42ac0273e730c714bf66dae49" title="Returns true if any blocking or touching hits were encountered during a query.">hasAnyHits</a>() { <span class="keywordflow">return</span> (hasBlock || (nbTouches > 0)); } -<a name="l00295"></a>00295 }; +<a name="l00232"></a>00232 <span class="keyword">template</span><<span class="keyword">typename</span> HitType> +<a name="l00233"></a><a class="code" href="structPxHitCallback.html">00233</a> <span class="keyword">struct </span><a class="code" href="structPxHitCallback.html" title="This callback class facilitates reporting scene query hits (intersections) to the...">PxHitCallback</a> +<a name="l00234"></a>00234 { +<a name="l00235"></a><a class="code" href="structPxHitCallback.html#63b2851eaf99b190fc468e00e8d1e55d">00235</a> HitType block; +<a name="l00236"></a><a class="code" href="structPxHitCallback.html#c20c6d1c2dd520d771da9b63f7f4f363">00236</a> <span class="keywordtype">bool</span> hasBlock; +<a name="l00237"></a>00237 +<a name="l00238"></a><a class="code" href="structPxHitCallback.html#a3fa478af9db3e043a540fca72a2f468">00238</a> HitType* touches; +<a name="l00239"></a>00239 +<a name="l00244"></a><a class="code" href="structPxHitCallback.html#0e64f72a5edf7c442ce81e3e4a8c61d1">00244</a> <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> maxNbTouches; +<a name="l00245"></a>00245 +<a name="l00249"></a><a class="code" href="structPxHitCallback.html#549f6828e98c9aeaee9012defa100f74">00249</a> <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> nbTouches; +<a name="l00250"></a>00250 +<a name="l00262"></a><a class="code" href="structPxHitCallback.html#062cff2cdd2dfe1f63d0549758ea2627">00262</a> <a class="code" href="structPxHitCallback.html" title="This callback class facilitates reporting scene query hits (intersections) to the...">PxHitCallback</a>(HitType* aTouches, <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> aMaxNbTouches) +<a name="l00263"></a>00263 : hasBlock(false), touches(aTouches), maxNbTouches(aMaxNbTouches), nbTouches(0) +<a name="l00264"></a>00264 {} +<a name="l00265"></a>00265 +<a name="l00286"></a>00286 <span class="keyword">virtual</span> <a class="code" href="group__scenequery.html#g4d0184965c0a910f5c96cb69c0690f5c" title="Describes query behavior after returning a partial query result via a callback.">PxAgain</a> processTouches(<span class="keyword">const</span> HitType* buffer, <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> nbHits) = 0; +<a name="l00287"></a>00287 +<a name="l00288"></a><a class="code" href="structPxHitCallback.html#86b66684b448ec43083edf3aa1983234">00288</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="structPxHitCallback.html#86b66684b448ec43083edf3aa1983234" title="Query finalization callback, called after the last processTouches callback.">finalizeQuery</a>() {} +<a name="l00289"></a>00289 +<a name="l00290"></a><a class="code" href="structPxHitCallback.html#7fbb5959c9fcc98834745644422210c3">00290</a> <span class="keyword">virtual</span> <a class="code" href="structPxHitCallback.html#7fbb5959c9fcc98834745644422210c3">~PxHitCallback</a>() {} +<a name="l00291"></a>00291 +<a name="l00293"></a><a class="code" href="structPxHitCallback.html#8ff687b42ac0273e730c714bf66dae49">00293</a> <a class="code" href="group__foundation.html#g6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <span class="keywordtype">bool</span> <a class="code" href="structPxHitCallback.html#8ff687b42ac0273e730c714bf66dae49" title="Returns true if any blocking or touching hits were encountered during a query.">hasAnyHits</a>() { <span class="keywordflow">return</span> (hasBlock || (nbTouches > 0)); } +<a name="l00294"></a>00294 }; +<a name="l00295"></a>00295 <a name="l00296"></a>00296 -<a name="l00297"></a>00297 -<a name="l00311"></a>00311 <span class="keyword">template</span><<span class="keyword">typename</span> HitType> -<a name="l00312"></a><a class="code" href="structPxHitBuffer.html">00312</a> <span class="keyword">struct </span><a class="code" href="structPxHitBuffer.html" title="Returns scene query hits (intersections) to the user in a preallocated buffer.">PxHitBuffer</a> : <span class="keyword">public</span> <a class="code" href="structPxHitCallback.html" title="This callback class facilitates reporting scene query hits (intersections) to the...">PxHitCallback</a><HitType> -<a name="l00313"></a>00313 { -<a name="l00324"></a><a class="code" href="structPxHitBuffer.html#89bcec685c76c5cdc0662eb52b67d699">00324</a> <a class="code" href="structPxHitBuffer.html#89bcec685c76c5cdc0662eb52b67d699" title="Initializes the buffer with user memory.">PxHitBuffer</a>(HitType* aTouches = NULL, <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> aMaxNbTouches = 0) : <a class="code" href="structPxHitCallback.html" title="This callback class facilitates reporting scene query hits (intersections) to the...">PxHitCallback</a><HitType>(aTouches, aMaxNbTouches) {} -<a name="l00325"></a>00325 -<a name="l00327"></a><a class="code" href="structPxHitBuffer.html#cc1a660048a41387c74d362719669a3f">00327</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> <a class="code" href="structPxHitBuffer.html#cc1a660048a41387c74d362719669a3f" title="Computes the number of any hits in this result, blocking or touching.">getNbAnyHits</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> getNbTouches() + <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a>(this->hasBlock); } -<a name="l00329"></a><a class="code" href="structPxHitBuffer.html#03c5d03b908348194193456ae29be988">00329</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keyword">const</span> HitType& <a class="code" href="structPxHitBuffer.html#03c5d03b908348194193456ae29be988" title="Convenience iterator used to access any hits in this result, blocking or touching...">getAnyHit</a>(<span class="keyword">const</span> <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> index)<span class="keyword"> const </span>{ <a class="code" href="group__foundation.html#g4a83a657390b324a460f14684e5accee">PX_ASSERT</a>(index < getNbTouches() + <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a>(this->hasBlock)); -<a name="l00330"></a>00330 <span class="keywordflow">return</span> index < getNbTouches() ? getTouches()[index] : this->block; } -<a name="l00331"></a>00331 -<a name="l00332"></a><a class="code" href="structPxHitBuffer.html#8bf58cc81ca6587e1d9974f2864dacb2">00332</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> <a class="code" href="structPxHitBuffer.html#8bf58cc81ca6587e1d9974f2864dacb2">getNbTouches</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> this->nbTouches; } -<a name="l00333"></a><a class="code" href="structPxHitBuffer.html#ab32a62e05389a4cc2c3baa2db0b3500">00333</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keyword">const</span> HitType* <a class="code" href="structPxHitBuffer.html#ab32a62e05389a4cc2c3baa2db0b3500">getTouches</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> this->touches; } -<a name="l00334"></a><a class="code" href="structPxHitBuffer.html#92b117a1958a0cdcbb4aec3bc1fa1f64">00334</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keyword">const</span> HitType& <a class="code" href="structPxHitBuffer.html#92b117a1958a0cdcbb4aec3bc1fa1f64">getTouch</a>(<span class="keyword">const</span> <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> index)<span class="keyword"> const </span>{ <a class="code" href="group__foundation.html#g4a83a657390b324a460f14684e5accee">PX_ASSERT</a>(index < getNbTouches()); <span class="keywordflow">return</span> getTouches()[index]; } -<a name="l00335"></a><a class="code" href="structPxHitBuffer.html#6cd9ee7153cc87849af8b365fa558ee1">00335</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> <a class="code" href="structPxHitBuffer.html#6cd9ee7153cc87849af8b365fa558ee1">getMaxNbTouches</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> this->maxNbTouches; } -<a name="l00336"></a>00336 -<a name="l00337"></a><a class="code" href="structPxHitBuffer.html#f3810ae6d94b93028e7a7d813f820cb4">00337</a> <span class="keyword">virtual</span> <a class="code" href="structPxHitBuffer.html#f3810ae6d94b93028e7a7d813f820cb4">~PxHitBuffer</a>() {} -<a name="l00338"></a>00338 -<a name="l00339"></a>00339 <span class="keyword">protected</span>: -<a name="l00340"></a>00340 <span class="comment">// stops after the first callback</span> -<a name="l00341"></a><a class="code" href="structPxHitBuffer.html#f60ac2d3405c5af467f767f812f3f01d">00341</a> <span class="keyword">virtual</span> <a class="code" href="group__scenequery.html#g4d0184965c0a910f5c96cb69c0690f5c" title="Describes query behavior after returning a partial query result via a callback.">PxAgain</a> <a class="code" href="structPxHitBuffer.html#f60ac2d3405c5af467f767f812f3f01d" title="virtual callback function used to communicate query results to the user.">processTouches</a>(<span class="keyword">const</span> HitType* buffer, <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> nbHits) { <a class="code" href="group__foundation.html#g3b618390d8743c532c4131cb931df43a">PX_UNUSED</a>(buffer); <a class="code" href="group__foundation.html#g3b618390d8743c532c4131cb931df43a">PX_UNUSED</a>(nbHits); <span class="keywordflow">return</span> <span class="keyword">false</span>; } -<a name="l00342"></a>00342 }; +<a name="l00310"></a>00310 <span class="keyword">template</span><<span class="keyword">typename</span> HitType> +<a name="l00311"></a><a class="code" href="structPxHitBuffer.html">00311</a> <span class="keyword">struct </span><a class="code" href="structPxHitBuffer.html" title="Returns scene query hits (intersections) to the user in a preallocated buffer.">PxHitBuffer</a> : <span class="keyword">public</span> <a class="code" href="structPxHitCallback.html" title="This callback class facilitates reporting scene query hits (intersections) to the...">PxHitCallback</a><HitType> +<a name="l00312"></a>00312 { +<a name="l00323"></a><a class="code" href="structPxHitBuffer.html#89bcec685c76c5cdc0662eb52b67d699">00323</a> <a class="code" href="structPxHitBuffer.html#89bcec685c76c5cdc0662eb52b67d699" title="Initializes the buffer with user memory.">PxHitBuffer</a>(HitType* aTouches = NULL, <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> aMaxNbTouches = 0) : <a class="code" href="structPxHitCallback.html" title="This callback class facilitates reporting scene query hits (intersections) to the...">PxHitCallback</a><HitType>(aTouches, aMaxNbTouches) {} +<a name="l00324"></a>00324 +<a name="l00326"></a><a class="code" href="structPxHitBuffer.html#cc1a660048a41387c74d362719669a3f">00326</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> <a class="code" href="structPxHitBuffer.html#cc1a660048a41387c74d362719669a3f" title="Computes the number of any hits in this result, blocking or touching.">getNbAnyHits</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> getNbTouches() + <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a>(this->hasBlock); } +<a name="l00328"></a><a class="code" href="structPxHitBuffer.html#03c5d03b908348194193456ae29be988">00328</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keyword">const</span> HitType& <a class="code" href="structPxHitBuffer.html#03c5d03b908348194193456ae29be988" title="Convenience iterator used to access any hits in this result, blocking or touching...">getAnyHit</a>(<span class="keyword">const</span> <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> index)<span class="keyword"> const </span>{ <a class="code" href="group__foundation.html#g4a83a657390b324a460f14684e5accee">PX_ASSERT</a>(index < getNbTouches() + <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a>(this->hasBlock)); +<a name="l00329"></a>00329 <span class="keywordflow">return</span> index < getNbTouches() ? getTouches()[index] : this->block; } +<a name="l00330"></a>00330 +<a name="l00331"></a><a class="code" href="structPxHitBuffer.html#8bf58cc81ca6587e1d9974f2864dacb2">00331</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> <a class="code" href="structPxHitBuffer.html#8bf58cc81ca6587e1d9974f2864dacb2">getNbTouches</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> this->nbTouches; } +<a name="l00332"></a><a class="code" href="structPxHitBuffer.html#ab32a62e05389a4cc2c3baa2db0b3500">00332</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keyword">const</span> HitType* <a class="code" href="structPxHitBuffer.html#ab32a62e05389a4cc2c3baa2db0b3500">getTouches</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> this->touches; } +<a name="l00333"></a><a class="code" href="structPxHitBuffer.html#92b117a1958a0cdcbb4aec3bc1fa1f64">00333</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keyword">const</span> HitType& <a class="code" href="structPxHitBuffer.html#92b117a1958a0cdcbb4aec3bc1fa1f64">getTouch</a>(<span class="keyword">const</span> <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> index)<span class="keyword"> const </span>{ <a class="code" href="group__foundation.html#g4a83a657390b324a460f14684e5accee">PX_ASSERT</a>(index < getNbTouches()); <span class="keywordflow">return</span> getTouches()[index]; } +<a name="l00334"></a><a class="code" href="structPxHitBuffer.html#6cd9ee7153cc87849af8b365fa558ee1">00334</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> <a class="code" href="structPxHitBuffer.html#6cd9ee7153cc87849af8b365fa558ee1">getMaxNbTouches</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> this->maxNbTouches; } +<a name="l00335"></a>00335 +<a name="l00336"></a><a class="code" href="structPxHitBuffer.html#f3810ae6d94b93028e7a7d813f820cb4">00336</a> <span class="keyword">virtual</span> <a class="code" href="structPxHitBuffer.html#f3810ae6d94b93028e7a7d813f820cb4">~PxHitBuffer</a>() {} +<a name="l00337"></a>00337 +<a name="l00338"></a>00338 <span class="keyword">protected</span>: +<a name="l00339"></a>00339 <span class="comment">// stops after the first callback</span> +<a name="l00340"></a><a class="code" href="structPxHitBuffer.html#f60ac2d3405c5af467f767f812f3f01d">00340</a> <span class="keyword">virtual</span> <a class="code" href="group__scenequery.html#g4d0184965c0a910f5c96cb69c0690f5c" title="Describes query behavior after returning a partial query result via a callback.">PxAgain</a> <a class="code" href="structPxHitBuffer.html#f60ac2d3405c5af467f767f812f3f01d" title="virtual callback function used to communicate query results to the user.">processTouches</a>(<span class="keyword">const</span> HitType* buffer, <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> nbHits) { <a class="code" href="group__foundation.html#g3b618390d8743c532c4131cb931df43a">PX_UNUSED</a>(buffer); <a class="code" href="group__foundation.html#g3b618390d8743c532c4131cb931df43a">PX_UNUSED</a>(nbHits); <span class="keywordflow">return</span> <span class="keyword">false</span>; } +<a name="l00341"></a>00341 }; +<a name="l00342"></a>00342 <a name="l00343"></a>00343 -<a name="l00344"></a>00344 -<a name="l00346"></a><a class="code" href="group__scenequery.html#g4dbe8142d799492bd8e7c5ec70bfac41">00346</a> <span class="keyword">typedef</span> <a class="code" href="structPxHitCallback.html">PxHitCallback<PxRaycastHit></a> <a class="code" href="structPxHitCallback.html">PxRaycastCallback</a>; -<a name="l00347"></a>00347 -<a name="l00349"></a><a class="code" href="group__scenequery.html#g9baa3a8cad31bbb8ef666fe01b3afeb7">00349</a> <span class="keyword">typedef</span> <a class="code" href="structPxHitCallback.html">PxHitCallback<PxOverlapHit></a> <a class="code" href="structPxHitCallback.html">PxOverlapCallback</a>; -<a name="l00350"></a>00350 -<a name="l00352"></a><a class="code" href="group__scenequery.html#g6f93f556cef747d50f643499928dd865">00352</a> <span class="keyword">typedef</span> <a class="code" href="structPxHitCallback.html">PxHitCallback<PxSweepHit></a> <a class="code" href="structPxHitCallback.html">PxSweepCallback</a>; -<a name="l00353"></a>00353 -<a name="l00355"></a><a class="code" href="group__scenequery.html#gb21a68ce9e5a18aa742111920b75a84c">00355</a> <span class="keyword">typedef</span> <a class="code" href="structPxHitBuffer.html">PxHitBuffer<PxRaycastHit></a> <a class="code" href="structPxHitBuffer.html">PxRaycastBuffer</a>; -<a name="l00356"></a>00356 -<a name="l00358"></a><a class="code" href="group__scenequery.html#g54a708942a891f3321c2427d5c160750">00358</a> <span class="keyword">typedef</span> <a class="code" href="structPxHitBuffer.html">PxHitBuffer<PxOverlapHit></a> <a class="code" href="structPxHitBuffer.html">PxOverlapBuffer</a>; -<a name="l00359"></a>00359 -<a name="l00361"></a><a class="code" href="group__scenequery.html#gecfed2b83a930b922b3d95e22ff30665">00361</a> <span class="keyword">typedef</span> <a class="code" href="structPxHitBuffer.html">PxHitBuffer<PxSweepHit></a> <a class="code" href="structPxHitBuffer.html">PxSweepBuffer</a>; -<a name="l00362"></a>00362 -<a name="l00364"></a>00364 <span class="keyword">template</span> <<span class="keywordtype">int</span> N> -<a name="l00365"></a><a class="code" href="structPxRaycastBufferN.html">00365</a> <span class="keyword">struct </span><a class="code" href="structPxRaycastBufferN.html" title="Returns touching raycast hits to the user in a fixed size array embedded in the buffer...">PxRaycastBufferN</a> : <span class="keyword">public</span> <a class="code" href="structPxHitBuffer.html" title="Returns scene query hits (intersections) to the user in a preallocated buffer.">PxHitBuffer</a><PxRaycastHit> -<a name="l00366"></a>00366 { -<a name="l00367"></a><a class="code" href="structPxRaycastBufferN.html#5b3d65b24c0fe8377e0ed2f6ca604537">00367</a> <a class="code" href="structPxRaycastHit.html" title="Stores results of raycast queries.">PxRaycastHit</a> hits[N]; -<a name="l00368"></a><a class="code" href="structPxRaycastBufferN.html#75c64893a9241f9e962c4f144345698f">00368</a> <a class="code" href="structPxRaycastBufferN.html#75c64893a9241f9e962c4f144345698f">PxRaycastBufferN</a>() : <a class="code" href="structPxHitBuffer.html" title="Returns scene query hits (intersections) to the user in a preallocated buffer.">PxHitBuffer</a><<a class="code" href="structPxRaycastHit.html" title="Stores results of raycast queries.">PxRaycastHit</a>>(hits, N) {} -<a name="l00369"></a>00369 }; -<a name="l00370"></a>00370 -<a name="l00372"></a>00372 <span class="keyword">template</span> <<span class="keywordtype">int</span> N> -<a name="l00373"></a><a class="code" href="structPxOverlapBufferN.html">00373</a> <span class="keyword">struct </span><a class="code" href="structPxOverlapBufferN.html" title="Returns touching overlap hits to the user in a fixed size array embedded in the buffer...">PxOverlapBufferN</a> : <span class="keyword">public</span> <a class="code" href="structPxHitBuffer.html" title="Returns scene query hits (intersections) to the user in a preallocated buffer.">PxHitBuffer</a><PxOverlapHit> -<a name="l00374"></a>00374 { -<a name="l00375"></a><a class="code" href="structPxOverlapBufferN.html#35f94542f30624e2f77c24060815f6da">00375</a> <a class="code" href="structPxOverlapHit.html" title="Stores results of overlap queries.">PxOverlapHit</a> hits[N]; -<a name="l00376"></a><a class="code" href="structPxOverlapBufferN.html#0b62aca23f26fef278dcbac1cb729291">00376</a> <a class="code" href="structPxOverlapBufferN.html#0b62aca23f26fef278dcbac1cb729291">PxOverlapBufferN</a>() : <a class="code" href="structPxHitBuffer.html" title="Returns scene query hits (intersections) to the user in a preallocated buffer.">PxHitBuffer</a><<a class="code" href="structPxOverlapHit.html" title="Stores results of overlap queries.">PxOverlapHit</a>>(hits, N) {} -<a name="l00377"></a>00377 }; -<a name="l00378"></a>00378 -<a name="l00380"></a>00380 <span class="keyword">template</span> <<span class="keywordtype">int</span> N> -<a name="l00381"></a><a class="code" href="structPxSweepBufferN.html">00381</a> <span class="keyword">struct </span><a class="code" href="structPxSweepBufferN.html" title="Returns touching sweep hits to the user in a fixed size array embedded in the buffer...">PxSweepBufferN</a> : <span class="keyword">public</span> <a class="code" href="structPxHitBuffer.html" title="Returns scene query hits (intersections) to the user in a preallocated buffer.">PxHitBuffer</a><PxSweepHit> -<a name="l00382"></a>00382 { -<a name="l00383"></a><a class="code" href="structPxSweepBufferN.html#ce8e98273056b9c23dd4337c7024544f">00383</a> <a class="code" href="structPxSweepHit.html" title="Stores results of sweep queries.">PxSweepHit</a> hits[N]; -<a name="l00384"></a><a class="code" href="structPxSweepBufferN.html#b8be2772b4fe811563efc01824201a61">00384</a> <a class="code" href="structPxSweepBufferN.html#b8be2772b4fe811563efc01824201a61">PxSweepBufferN</a>() : <a class="code" href="structPxHitBuffer.html" title="Returns scene query hits (intersections) to the user in a preallocated buffer.">PxHitBuffer</a><<a class="code" href="structPxSweepHit.html" title="Stores results of sweep queries.">PxSweepHit</a>>(hits, N) {} -<a name="l00385"></a>00385 }; -<a name="l00386"></a>00386 -<a name="l00387"></a>00387 <span class="preprocessor">#if !PX_DOXYGEN</span> -<a name="l00388"></a>00388 <span class="preprocessor"></span>} <span class="comment">// namespace physx</span> -<a name="l00389"></a>00389 <span class="preprocessor">#endif</span> -<a name="l00390"></a>00390 <span class="preprocessor"></span> -<a name="l00392"></a>00392 <span class="preprocessor">#endif</span> +<a name="l00345"></a><a class="code" href="group__scenequery.html#g4dbe8142d799492bd8e7c5ec70bfac41">00345</a> <span class="keyword">typedef</span> <a class="code" href="structPxHitCallback.html">PxHitCallback<PxRaycastHit></a> <a class="code" href="structPxHitCallback.html">PxRaycastCallback</a>; +<a name="l00346"></a>00346 +<a name="l00348"></a><a class="code" href="group__scenequery.html#g9baa3a8cad31bbb8ef666fe01b3afeb7">00348</a> <span class="keyword">typedef</span> <a class="code" href="structPxHitCallback.html">PxHitCallback<PxOverlapHit></a> <a class="code" href="structPxHitCallback.html">PxOverlapCallback</a>; +<a name="l00349"></a>00349 +<a name="l00351"></a><a class="code" href="group__scenequery.html#g6f93f556cef747d50f643499928dd865">00351</a> <span class="keyword">typedef</span> <a class="code" href="structPxHitCallback.html">PxHitCallback<PxSweepHit></a> <a class="code" href="structPxHitCallback.html">PxSweepCallback</a>; +<a name="l00352"></a>00352 +<a name="l00354"></a><a class="code" href="group__scenequery.html#gb21a68ce9e5a18aa742111920b75a84c">00354</a> <span class="keyword">typedef</span> <a class="code" href="structPxHitBuffer.html">PxHitBuffer<PxRaycastHit></a> <a class="code" href="structPxHitBuffer.html">PxRaycastBuffer</a>; +<a name="l00355"></a>00355 +<a name="l00357"></a><a class="code" href="group__scenequery.html#g54a708942a891f3321c2427d5c160750">00357</a> <span class="keyword">typedef</span> <a class="code" href="structPxHitBuffer.html">PxHitBuffer<PxOverlapHit></a> <a class="code" href="structPxHitBuffer.html">PxOverlapBuffer</a>; +<a name="l00358"></a>00358 +<a name="l00360"></a><a class="code" href="group__scenequery.html#gecfed2b83a930b922b3d95e22ff30665">00360</a> <span class="keyword">typedef</span> <a class="code" href="structPxHitBuffer.html">PxHitBuffer<PxSweepHit></a> <a class="code" href="structPxHitBuffer.html">PxSweepBuffer</a>; +<a name="l00361"></a>00361 +<a name="l00363"></a>00363 <span class="keyword">template</span> <<span class="keywordtype">int</span> N> +<a name="l00364"></a><a class="code" href="structPxRaycastBufferN.html">00364</a> <span class="keyword">struct </span><a class="code" href="structPxRaycastBufferN.html" title="Returns touching raycast hits to the user in a fixed size array embedded in the buffer...">PxRaycastBufferN</a> : <span class="keyword">public</span> <a class="code" href="structPxHitBuffer.html" title="Returns scene query hits (intersections) to the user in a preallocated buffer.">PxHitBuffer</a><PxRaycastHit> +<a name="l00365"></a>00365 { +<a name="l00366"></a><a class="code" href="structPxRaycastBufferN.html#5b3d65b24c0fe8377e0ed2f6ca604537">00366</a> <a class="code" href="structPxRaycastHit.html" title="Stores results of raycast queries.">PxRaycastHit</a> hits[N]; +<a name="l00367"></a><a class="code" href="structPxRaycastBufferN.html#75c64893a9241f9e962c4f144345698f">00367</a> <a class="code" href="structPxRaycastBufferN.html#75c64893a9241f9e962c4f144345698f">PxRaycastBufferN</a>() : <a class="code" href="structPxHitBuffer.html" title="Returns scene query hits (intersections) to the user in a preallocated buffer.">PxHitBuffer</a><<a class="code" href="structPxRaycastHit.html" title="Stores results of raycast queries.">PxRaycastHit</a>>(hits, N) {} +<a name="l00368"></a>00368 }; +<a name="l00369"></a>00369 +<a name="l00371"></a>00371 <span class="keyword">template</span> <<span class="keywordtype">int</span> N> +<a name="l00372"></a><a class="code" href="structPxOverlapBufferN.html">00372</a> <span class="keyword">struct </span><a class="code" href="structPxOverlapBufferN.html" title="Returns touching overlap hits to the user in a fixed size array embedded in the buffer...">PxOverlapBufferN</a> : <span class="keyword">public</span> <a class="code" href="structPxHitBuffer.html" title="Returns scene query hits (intersections) to the user in a preallocated buffer.">PxHitBuffer</a><PxOverlapHit> +<a name="l00373"></a>00373 { +<a name="l00374"></a><a class="code" href="structPxOverlapBufferN.html#35f94542f30624e2f77c24060815f6da">00374</a> <a class="code" href="structPxOverlapHit.html" title="Stores results of overlap queries.">PxOverlapHit</a> hits[N]; +<a name="l00375"></a><a class="code" href="structPxOverlapBufferN.html#0b62aca23f26fef278dcbac1cb729291">00375</a> <a class="code" href="structPxOverlapBufferN.html#0b62aca23f26fef278dcbac1cb729291">PxOverlapBufferN</a>() : <a class="code" href="structPxHitBuffer.html" title="Returns scene query hits (intersections) to the user in a preallocated buffer.">PxHitBuffer</a><<a class="code" href="structPxOverlapHit.html" title="Stores results of overlap queries.">PxOverlapHit</a>>(hits, N) {} +<a name="l00376"></a>00376 }; +<a name="l00377"></a>00377 +<a name="l00379"></a>00379 <span class="keyword">template</span> <<span class="keywordtype">int</span> N> +<a name="l00380"></a><a class="code" href="structPxSweepBufferN.html">00380</a> <span class="keyword">struct </span><a class="code" href="structPxSweepBufferN.html" title="Returns touching sweep hits to the user in a fixed size array embedded in the buffer...">PxSweepBufferN</a> : <span class="keyword">public</span> <a class="code" href="structPxHitBuffer.html" title="Returns scene query hits (intersections) to the user in a preallocated buffer.">PxHitBuffer</a><PxSweepHit> +<a name="l00381"></a>00381 { +<a name="l00382"></a><a class="code" href="structPxSweepBufferN.html#ce8e98273056b9c23dd4337c7024544f">00382</a> <a class="code" href="structPxSweepHit.html" title="Stores results of sweep queries.">PxSweepHit</a> hits[N]; +<a name="l00383"></a><a class="code" href="structPxSweepBufferN.html#b8be2772b4fe811563efc01824201a61">00383</a> <a class="code" href="structPxSweepBufferN.html#b8be2772b4fe811563efc01824201a61">PxSweepBufferN</a>() : <a class="code" href="structPxHitBuffer.html" title="Returns scene query hits (intersections) to the user in a preallocated buffer.">PxHitBuffer</a><<a class="code" href="structPxSweepHit.html" title="Stores results of sweep queries.">PxSweepHit</a>>(hits, N) {} +<a name="l00384"></a>00384 }; +<a name="l00385"></a>00385 +<a name="l00386"></a>00386 <span class="preprocessor">#if !PX_DOXYGEN</span> +<a name="l00387"></a>00387 <span class="preprocessor"></span>} <span class="comment">// namespace physx</span> +<a name="l00388"></a>00388 <span class="preprocessor">#endif</span> +<a name="l00389"></a>00389 <span class="preprocessor"></span> +<a name="l00391"></a>00391 <span class="preprocessor">#endif</span> </pre></div></div> <hr style="width: 100%; height: 2px;"><br> |