Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Media3D / Geometry3D.cs / 2 / Geometry3D.cs
//---------------------------------------------------------------------------- // //// Copyright (c) Microsoft Corporation. All rights reserved. // // // History: // 6/10/2004 : [....] - Created // //--------------------------------------------------------------------------- using MS.Internal.Media3D; using System; using System.Diagnostics; using System.Windows.Media.Animation; using System.Windows.Media.Composition; namespace System.Windows.Media.Media3D { ////// This is the base class for all 3D geometry classes. A geometry has /// bounds and can be rendered with a GeometryModel3D. /// [Localizability(LocalizationCategory.None, Readability = Readability.Unreadable)] // cannot be read & localized as string public abstract partial class Geometry3D : Animatable, DUCE.IResource { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors // Prevent 3rd parties from extending this abstract base class. internal Geometry3D() {} #endregion Constructors //------------------------------------------------------ // // Public Methods // //----------------------------------------------------- #region Public Methods ////// Gets bounds for this Geometry3D. /// public abstract Rect3D Bounds { get; } #endregion Public Methods //------------------------------------------------------ // // Public Properties // //------------------------------------------------------ //----------------------------------------------------- // // Public Events // //------------------------------------------------------ //----------------------------------------------------- // // Internal Methods // //----------------------------------------------------- #region Internal Methods // NOTE: Geometry3D hit testing takes the rayParams in the outer space of the // Geometry3D. That is, RayHitTest() will apply this geometry's // transform to the ray for the caller. // // This is different than Visual hit testing which does not transform // the hit testing parameters by the Visual's transform. internal void RayHitTest(RayHitTestParameters rayParams, FaceType facesToHit) { Debug.Assert(facesToHit != FaceType.None, "Caller should make sure we're trying to hit something"); Rect3D bounds = Bounds; if (bounds.IsEmpty) { return; } // Point3D origin; Vector3D direction; rayParams.GetLocalLine(out origin, out direction); if (LineUtil.ComputeLineBoxIntersection(ref origin, ref direction, ref bounds, rayParams.IsRay)) { RayHitTestCore(rayParams, facesToHit); } // } internal abstract void RayHitTestCore(RayHitTestParameters rayParams, FaceType hitTestableFaces); #endregion Internal Methods } } // 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
- AppDomainGrammarProxy.cs
- Bits.cs
- TimeZone.cs
- DbDataRecord.cs
- NotImplementedException.cs
- WebServiceEnumData.cs
- FontResourceCache.cs
- Transactions.cs
- XmlQueryRuntime.cs
- PolicyStatement.cs
- PiiTraceSource.cs
- HideDisabledControlAdapter.cs
- DataTableCollection.cs
- XmlSchemaIdentityConstraint.cs
- FileStream.cs
- DependencyPropertyKind.cs
- HierarchicalDataSourceControl.cs
- DataGridCellInfo.cs
- WaitHandle.cs
- CheckBoxList.cs
- QuaternionAnimationBase.cs
- HashRepartitionEnumerator.cs
- BypassElementCollection.cs
- RuleSettings.cs
- DataFormats.cs
- CodeTypeOfExpression.cs
- BamlWriter.cs
- KeyInfo.cs
- ComboBox.cs
- TextRangeAdaptor.cs
- IndentedWriter.cs
- ObjectReaderCompiler.cs
- SqlMethodTransformer.cs
- SqlDataSourceCustomCommandEditor.cs
- TileBrush.cs
- XamlSerializationHelper.cs
- SqlDataSourceEnumerator.cs
- EventTrigger.cs
- PerformanceCounterCategory.cs
- WizardStepBase.cs
- WebControl.cs
- CollectionViewSource.cs
- Debug.cs
- Viewport3DAutomationPeer.cs
- DesignUtil.cs
- LinkedList.cs
- ReferenceTypeElement.cs
- Processor.cs
- EmptyEnumerator.cs
- CompressStream.cs
- XdrBuilder.cs
- VerticalAlignConverter.cs
- ThicknessAnimationUsingKeyFrames.cs
- JsonEnumDataContract.cs
- Int64Animation.cs
- ListViewItem.cs
- Crc32.cs
- UITypeEditor.cs
- ProfileSettings.cs
- FormsAuthenticationUser.cs
- PointValueSerializer.cs
- Symbol.cs
- XmlKeywords.cs
- ViewManagerAttribute.cs
- Quaternion.cs
- InvalidCastException.cs
- Command.cs
- HwndMouseInputProvider.cs
- Thickness.cs
- XslAst.cs
- FieldAccessException.cs
- OleDbConnectionInternal.cs
- KeyGesture.cs
- DynamicValidator.cs
- SID.cs
- GroupLabel.cs
- SrgsElementFactory.cs
- XmlReturnWriter.cs
- EncryptedPackageFilter.cs
- IncrementalHitTester.cs
- ThreadExceptionDialog.cs
- JulianCalendar.cs
- TimeSpanConverter.cs
- EncryptedKey.cs
- ListBoxDesigner.cs
- QilSortKey.cs
- RootProfilePropertySettingsCollection.cs
- SqlExpander.cs
- ObjectStateManager.cs
- DataRecordInfo.cs
- StoragePropertyMapping.cs
- WebPartConnectionCollection.cs
- HtmlInputHidden.cs
- ViewKeyConstraint.cs
- ToolStripScrollButton.cs
- Errors.cs
- OptimisticConcurrencyException.cs
- XmlElementCollection.cs
- SelfIssuedAuthAsymmetricKey.cs
- QuerySubExprEliminator.cs