Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Media3D / Ray3DHitTestResult.cs / 1 / 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
- ForeignKeyConstraint.cs
- Win32SafeHandles.cs
- wmiprovider.cs
- EventEntry.cs
- KerberosSecurityTokenAuthenticator.cs
- DependencyObject.cs
- WebColorConverter.cs
- NativeObjectSecurity.cs
- SafeCancelMibChangeNotify.cs
- PersistenceTask.cs
- LoginUtil.cs
- StylusPointProperties.cs
- CodeTypeReference.cs
- loginstatus.cs
- OleDbEnumerator.cs
- FontFamilyConverter.cs
- x509store.cs
- Nodes.cs
- PathSegmentCollection.cs
- RegexStringValidator.cs
- SqlDataReader.cs
- HiddenField.cs
- Missing.cs
- ADRoleFactory.cs
- QuaternionConverter.cs
- LambdaExpression.cs
- FactoryMaker.cs
- CustomValidator.cs
- TagPrefixAttribute.cs
- FloaterParagraph.cs
- NonClientArea.cs
- MessagePartProtectionMode.cs
- IndependentAnimationStorage.cs
- FixedPageAutomationPeer.cs
- DataGridViewButtonColumn.cs
- XmlAttributeCollection.cs
- Maps.cs
- ZipIOCentralDirectoryFileHeader.cs
- PeerName.cs
- PropertyTabChangedEvent.cs
- HtmlInputControl.cs
- HandlerFactoryWrapper.cs
- XmlNodeChangedEventArgs.cs
- LayoutEngine.cs
- CustomCategoryAttribute.cs
- ObjectListFieldCollection.cs
- XmlElement.cs
- DrawingContextDrawingContextWalker.cs
- WCFBuildProvider.cs
- ClientBuildManagerCallback.cs
- FillErrorEventArgs.cs
- XmlReaderSettings.cs
- XmlSchemaSimpleType.cs
- ChangePassword.cs
- PartialList.cs
- LinqDataSourceUpdateEventArgs.cs
- MonthChangedEventArgs.cs
- ErrorTolerantObjectWriter.cs
- SeverityFilter.cs
- SmtpNetworkElement.cs
- HttpClientCertificate.cs
- Region.cs
- MetafileHeader.cs
- WebPartConnectionsConnectVerb.cs
- PlacementWorkspace.cs
- ToolStripRenderer.cs
- GridViewRowPresenter.cs
- XamlClipboardData.cs
- ReadOnlyDictionary.cs
- FixedPosition.cs
- EntityDataSourceWrapper.cs
- ISAPIWorkerRequest.cs
- XmlNode.cs
- StateMachineDesignerPaint.cs
- MDIControlStrip.cs
- ListControl.cs
- BrowsableAttribute.cs
- MasterPageCodeDomTreeGenerator.cs
- Control.cs
- CodeCommentStatement.cs
- PathFigure.cs
- DataContext.cs
- XmlChoiceIdentifierAttribute.cs
- StrokeSerializer.cs
- OleDbRowUpdatingEvent.cs
- XAMLParseException.cs
- AnimationClockResource.cs
- UnauthorizedAccessException.cs
- TextLineBreak.cs
- ProviderCommandInfoUtils.cs
- XPathSingletonIterator.cs
- PanelStyle.cs
- EnumBuilder.cs
- WebPartConnectionsDisconnectVerb.cs
- TextAction.cs
- NavigationCommands.cs
- ImageAutomationPeer.cs
- DiscreteKeyFrames.cs
- PropertyTabChangedEvent.cs
- AggregateException.cs