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
- TransactionFormatter.cs
- CommonObjectSecurity.cs
- BitmapFrameDecode.cs
- SessionState.cs
- SimpleTableProvider.cs
- ApplicationServicesHostFactory.cs
- HttpStreamMessage.cs
- PostBackOptions.cs
- Bits.cs
- DataList.cs
- RemotingConfiguration.cs
- odbcmetadatacollectionnames.cs
- DiffuseMaterial.cs
- CollectionChangedEventManager.cs
- TextFormattingConverter.cs
- UIElement3DAutomationPeer.cs
- MaskedTextBox.cs
- ProxyManager.cs
- List.cs
- ApplicationFileParser.cs
- KeyTimeConverter.cs
- AmbientValueAttribute.cs
- Aggregates.cs
- AuthorizationRule.cs
- SystemSounds.cs
- SlipBehavior.cs
- TextFormatterContext.cs
- SurrogateEncoder.cs
- CellTreeNode.cs
- RelatedPropertyManager.cs
- UnicodeEncoding.cs
- DmlSqlGenerator.cs
- NoResizeHandleGlyph.cs
- GPRECTF.cs
- ProxyWebPartConnectionCollection.cs
- TabItemAutomationPeer.cs
- CryptoProvider.cs
- MailWriter.cs
- MobileControlDesigner.cs
- GroupDescription.cs
- EventDescriptorCollection.cs
- DecimalAnimation.cs
- FlagsAttribute.cs
- Quaternion.cs
- Nullable.cs
- EntityTypeEmitter.cs
- QuotedPrintableStream.cs
- MediaPlayerState.cs
- BezierSegment.cs
- FileReservationCollection.cs
- RoleExceptions.cs
- StateMachineSubscriptionManager.cs
- SrgsRuleRef.cs
- DataGridViewComboBoxEditingControl.cs
- CommunicationObjectAbortedException.cs
- TableRowCollection.cs
- ToolStripContentPanelRenderEventArgs.cs
- querybuilder.cs
- M3DUtil.cs
- TextFormatterContext.cs
- DesignerActionVerbItem.cs
- ExpressionVisitor.cs
- Tile.cs
- ActivityCodeDomSerializer.cs
- List.cs
- Brush.cs
- InputScopeAttribute.cs
- ConfigXmlComment.cs
- ConfigXmlWhitespace.cs
- FixedSOMPageConstructor.cs
- PagePropertiesChangingEventArgs.cs
- SurrogateChar.cs
- MatrixStack.cs
- Config.cs
- TraceData.cs
- SignedPkcs7.cs
- ThemeableAttribute.cs
- Content.cs
- EpmSyndicationContentDeSerializer.cs
- Material.cs
- GPRECT.cs
- DemultiplexingDispatchMessageFormatter.cs
- FilterableData.cs
- FormViewPageEventArgs.cs
- CodeDelegateCreateExpression.cs
- BaseDataList.cs
- CultureTableRecord.cs
- TextEndOfSegment.cs
- TriggerActionCollection.cs
- RegexCapture.cs
- SignerInfo.cs
- ActivityFunc.cs
- MaskedTextProvider.cs
- ProfilePropertySettingsCollection.cs
- DocumentViewerConstants.cs
- XhtmlConformanceSection.cs
- OrCondition.cs
- NameValueConfigurationElement.cs
- HtmlInputText.cs
- EntitySetBase.cs