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
- ServiceModelEnhancedConfigurationElementCollection.cs
- FileLevelControlBuilderAttribute.cs
- BamlLocalizer.cs
- CoreSwitches.cs
- ModelFactory.cs
- WebPartDisplayModeCancelEventArgs.cs
- EntityChangedParams.cs
- RestHandler.cs
- TrackPointCollection.cs
- ExpressionBindingCollection.cs
- LocalIdKeyIdentifierClause.cs
- MissingSatelliteAssemblyException.cs
- BinaryFormatterWriter.cs
- ProvidePropertyAttribute.cs
- FixedDSBuilder.cs
- DbXmlEnabledProviderManifest.cs
- ResourceExpressionBuilder.cs
- Cell.cs
- keycontainerpermission.cs
- SwitchLevelAttribute.cs
- PinnedBufferMemoryStream.cs
- SharedUtils.cs
- XmlSchemaExporter.cs
- InvalidOleVariantTypeException.cs
- StorageAssociationTypeMapping.cs
- ClientEventManager.cs
- Oci.cs
- EventRecordWrittenEventArgs.cs
- KeySpline.cs
- FixedPage.cs
- DataControlLinkButton.cs
- Object.cs
- Animatable.cs
- SwitchLevelAttribute.cs
- ToolStripSeparator.cs
- ChainOfDependencies.cs
- ClientConfigurationHost.cs
- EventLogger.cs
- FunctionImportMapping.cs
- ExtensionWindowHeader.cs
- WorkflowQueue.cs
- SafeCryptContextHandle.cs
- ProfileGroupSettingsCollection.cs
- RC2.cs
- WebZone.cs
- PageContentCollection.cs
- UrlAuthFailedErrorFormatter.cs
- WhitespaceRuleReader.cs
- XmlQuerySequence.cs
- AttributeEmitter.cs
- CodeGeneratorOptions.cs
- IDReferencePropertyAttribute.cs
- DataTemplateSelector.cs
- SQLDecimalStorage.cs
- SimpleHandlerFactory.cs
- WebServiceBindingAttribute.cs
- DocumentStream.cs
- EntityKey.cs
- ErrorFormatter.cs
- CombinedGeometry.cs
- HtmlContainerControl.cs
- X509DefaultServiceCertificateElement.cs
- XamlInterfaces.cs
- FormsAuthenticationUser.cs
- XmlHierarchicalEnumerable.cs
- DrawingContext.cs
- LinqDataSourceHelper.cs
- DbUpdateCommandTree.cs
- OleDbParameter.cs
- BitmapCache.cs
- SettingsProviderCollection.cs
- StringValidatorAttribute.cs
- PropertyValueUIItem.cs
- InertiaExpansionBehavior.cs
- TabletDeviceInfo.cs
- EnumValAlphaComparer.cs
- ColorConverter.cs
- ObjectDataSourceDisposingEventArgs.cs
- SHA1.cs
- HiddenFieldDesigner.cs
- BaseCodePageEncoding.cs
- SimpleExpression.cs
- BinaryFormatterWriter.cs
- IResourceProvider.cs
- DataGridView.cs
- Transactions.cs
- AvtEvent.cs
- SerializableAttribute.cs
- PermissionToken.cs
- XPathDocument.cs
- WebPageTraceListener.cs
- WaitHandleCannotBeOpenedException.cs
- MultipleViewPattern.cs
- RadioButtonRenderer.cs
- OuterGlowBitmapEffect.cs
- UdpTransportSettings.cs
- QueryTreeBuilder.cs
- SqlRetyper.cs
- DirectoryGroupQuery.cs
- DocComment.cs