Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media3D / Ray3DHitTestResult.cs / 1305600 / Ray3DHitTestResult.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // History: // 06/22/2005 : [....] - Integrated from RayHitTestResult. // //--------------------------------------------------------------------------- using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; namespace System.Windows.Media.Media3D { ////// The HitTestResult of a Visual3D.HitTest(...) where the parameter /// was a RayHitTestParameter. /// /// NOTE: This might have originated as a PointHitTest on a 2D Visual /// which was extended into 3D. /// public abstract class RayHitTestResult : HitTestResult { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors // Prevent 3rd parties from extending this abstract base class. internal RayHitTestResult(Visual3D visualHit, Model3D modelHit) : base (visualHit) { _modelHit = modelHit; } #endregion Constructors //------------------------------------------------------ // // Public Methods // //----------------------------------------------------- ////// Re-expose Visual property strongly typed to Visual3D. /// public new Visual3D VisualHit { get { return (Visual3D) base.VisualHit; } } ////// The Model3D intersected by the ray. /// public Model3D ModelHit { get { return _modelHit; } } ////// This is a point in 3-space at which the ray intersected /// the geometry of the hit Model3D. This point is in the /// local coordinate system of the Model3D. /// public abstract Point3D PointHit { get; } ////// This is the distance between the ray's origin and the /// point hit. /// public abstract double DistanceToRayOrigin { get; } //------------------------------------------------------ // // Public Properties // //------------------------------------------------------ //----------------------------------------------------- // // Public Events // //------------------------------------------------------ //----------------------------------------------------- // // Internal Methods // //----------------------------------------------------- internal abstract void SetDistanceToRayOrigin(double distance); internal static int CompareByDistanceToRayOrigin(RayHitTestResult x, RayHitTestResult y) { return Math.Sign(x.DistanceToRayOrigin - y.DistanceToRayOrigin); } //----------------------------------------------------- // // Private Fields // //------------------------------------------------------ #region Private Fields private readonly Model3D _modelHit; #endregion Private Fields } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CacheEntry.cs
- TextEffect.cs
- MediaScriptCommandRoutedEventArgs.cs
- FileSystemEventArgs.cs
- TimeEnumHelper.cs
- HtmlString.cs
- WebPartZoneAutoFormat.cs
- safelinkcollection.cs
- GridViewColumn.cs
- StaticExtension.cs
- WindowsIPAddress.cs
- MethodBody.cs
- SparseMemoryStream.cs
- HijriCalendar.cs
- AccessDataSourceView.cs
- prefixendpointaddressmessagefilter.cs
- _FtpControlStream.cs
- Timer.cs
- ObjectQuery_EntitySqlExtensions.cs
- CodeExporter.cs
- HtmlLink.cs
- BooleanFacetDescriptionElement.cs
- InternalConfigSettingsFactory.cs
- DeviceContext.cs
- SHA384.cs
- AsnEncodedData.cs
- AutoGeneratedField.cs
- DBBindings.cs
- XmlTextReaderImplHelpers.cs
- VirtualizingStackPanel.cs
- EventLogPermissionEntryCollection.cs
- PasswordRecoveryDesigner.cs
- CodeCatchClauseCollection.cs
- X509PeerCertificateElement.cs
- RadioButtonFlatAdapter.cs
- SymLanguageType.cs
- HttpStreamMessage.cs
- SchemaTableOptionalColumn.cs
- Axis.cs
- DetailsViewPageEventArgs.cs
- IEnumerable.cs
- ChannelDispatcher.cs
- MbpInfo.cs
- MessageQueueAccessControlEntry.cs
- EmbeddedMailObjectsCollection.cs
- CopyOfAction.cs
- TraceContext.cs
- XPathParser.cs
- ToggleProviderWrapper.cs
- GridViewAutomationPeer.cs
- DataGridView.cs
- HtmlTableRow.cs
- Point3DCollection.cs
- _SingleItemRequestCache.cs
- ServiceOperationParameter.cs
- ParserStack.cs
- ImpersonationContext.cs
- SqlParameter.cs
- WorkflowInstance.cs
- TransformedBitmap.cs
- HierarchicalDataBoundControl.cs
- StateRuntime.cs
- OuterGlowBitmapEffect.cs
- MultiSelector.cs
- OracleColumn.cs
- CompiledQuery.cs
- TimelineGroup.cs
- XmlNullResolver.cs
- UnsafePeerToPeerMethods.cs
- FolderBrowserDialog.cs
- HotSpot.cs
- Ops.cs
- TriState.cs
- RegistryExceptionHelper.cs
- PreviewKeyDownEventArgs.cs
- UICuesEvent.cs
- SmiMetaDataProperty.cs
- DesignerCommandSet.cs
- WebPartManagerInternals.cs
- LambdaCompiler.Binary.cs
- ParseNumbers.cs
- RectAnimationClockResource.cs
- FormViewInsertedEventArgs.cs
- FieldToken.cs
- HttpGetClientProtocol.cs
- SecurityTokenException.cs
- StringInfo.cs
- COSERVERINFO.cs
- ConstantSlot.cs
- ToolboxItem.cs
- SchemaEntity.cs
- SystemIPGlobalStatistics.cs
- CheckBox.cs
- DynamicQueryStringParameter.cs
- DoubleLink.cs
- DataGridViewCellLinkedList.cs
- ProcessStartInfo.cs
- HotSpotCollection.cs
- OleDbReferenceCollection.cs
- GridViewRowCollection.cs