public static void HitTest (Visual3D visual, HitTestFilterCallback filter, HitTestResultCallback results, HitTestParameters3D parameters)
		{
			throw new NotImplementedException ();
		}
Exemple #2
0
        /// <summary>
        /// Initiate a hit test using delegates.
        /// </summary>
        internal void HitTest(
            HitTestFilterCallback filterCallback,
            HitTestResultCallback resultCallback,
            HitTestParameters3D hitTestParameters)
        {
            if (resultCallback == null)
            {
                throw new ArgumentNullException("resultCallback");
            }

            if (hitTestParameters == null)
            {
                throw new ArgumentNullException("hitTestParameters");
            }

            VerifyAPIReadWrite();

            RayHitTestParameters rayParams = hitTestParameters as RayHitTestParameters;

            if (rayParams != null)
            {
                // In case the user is reusing the same RayHitTestParameters
                rayParams.ClearResults();

                HitTestResultBehavior result = RayHitTest(filterCallback, rayParams);

                rayParams.RaiseCallback(resultCallback, filterCallback, result);
            }
            else
            {
                // This should never happen, users can not extend the abstract HitTestParameters3D class.
                Invariant.Assert(false,
                    String.Format(System.Globalization.CultureInfo.InvariantCulture, 
                        "'{0}' HitTestParameters3D are not supported on {1}.",
                        hitTestParameters.GetType().Name, this.GetType().Name));
            }
        }
 /// <summary>
 /// Initiate a hit test using delegates.
 /// </summary>
 public static void HitTest(
     Visual3D reference,
     HitTestFilterCallback filterCallback,
     HitTestResultCallback resultCallback,
     HitTestParameters3D hitTestParameters)
 {
     CheckVisualReferenceArgument(reference);
     reference.HitTest(filterCallback, resultCallback, hitTestParameters);
 }