Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Media3D / Light.cs / 1 / Light.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: 3D light implementation. // // See spec at [....]/medialayer/Specifications/Avalon3D%20API%20Spec.mht // // History: // 06/18/2003 : [....] - Created // //--------------------------------------------------------------------------- using System; using System.Diagnostics; using System.Windows.Media; using MS.Internal.Media3D; namespace System.Windows.Media.Media3D { ////// Lights are Model3D's. These include Ambient, Positional, Directional and Spot lights. /// They're very much modeled on the Direct3D lighting set, but have the additional /// property of being part of a modeling hierarchy, and are thus subject to coordinate /// space transformations. /// public abstract partial class Light : Model3D { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors // Prevent 3rd parties from extending this abstract base class. internal Light() {} #endregion Constructors //------------------------------------------------------ // // Public Methods // //----------------------------------------------------- //------------------------------------------------------ // // Public Properties // //------------------------------------------------------ #region Public Properties internal override void RayHitTestCore(RayHitTestParameters rayParams) { // Lights are considered to be part of the model graph, but they // have no geometry and therefore can not be hit tested. } internal override Rect3D CalculateSubgraphBoundsInnerSpace() { // Lights are considered to be part of the model graph, but they // have no geometry and therefore no bounds. return Rect3D.Empty; } #endregion Public Properties #region Internal Methods internal override void PreCompute() { Debug.Assert(_flags[DirtyForPreComputeFlag]); _flags[DirtyForPreComputeFlag] = false; } ////// Realization support. Lights do not care for realizations. /// internal override void MarkVisibleRealizations( RealizationContext rc) { Debug.Assert(_flags[RequiresRealizationFlag]); return; } #endregion } } // 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
- VersionedStream.cs
- httpstaticobjectscollection.cs
- UIElement3D.cs
- QueuePropertyVariants.cs
- WindowsListViewScroll.cs
- AbstractSvcMapFileLoader.cs
- SecurityContext.cs
- HtmlDocument.cs
- X509UI.cs
- XmlSchemaResource.cs
- CookielessHelper.cs
- MULTI_QI.cs
- DataSourceCache.cs
- XPathArrayIterator.cs
- BadImageFormatException.cs
- SocketException.cs
- NativeRecognizer.cs
- SQLString.cs
- ItemsChangedEventArgs.cs
- OlePropertyStructs.cs
- TimelineClockCollection.cs
- WebConfigurationManager.cs
- AstTree.cs
- CodeComment.cs
- EventSource.cs
- ADMembershipProvider.cs
- _BasicClient.cs
- WorkflowControlClient.cs
- GridViewRowEventArgs.cs
- TrustSection.cs
- BitConverter.cs
- Wizard.cs
- DisposableCollectionWrapper.cs
- ViewStateException.cs
- contentDescriptor.cs
- VBCodeProvider.cs
- TextBoxView.cs
- EntityParameter.cs
- DelayedRegex.cs
- FtpWebRequest.cs
- HttpBrowserCapabilitiesBase.cs
- SolidColorBrush.cs
- EmptyEnumerable.cs
- OleDbRowUpdatedEvent.cs
- EventDriven.cs
- GeometryDrawing.cs
- UIPropertyMetadata.cs
- BrowserDefinitionCollection.cs
- Errors.cs
- CorrelationTokenTypeConvertor.cs
- WinEventHandler.cs
- ProxyWebPartConnectionCollection.cs
- Types.cs
- SerializationSectionGroup.cs
- JavaScriptString.cs
- ChangePasswordAutoFormat.cs
- DivideByZeroException.cs
- SqlTypesSchemaImporter.cs
- BuildProviderCollection.cs
- TextTreeRootNode.cs
- EdmPropertyAttribute.cs
- KnownBoxes.cs
- UnsafeNativeMethods.cs
- BufferedWebEventProvider.cs
- WebPartEditVerb.cs
- ListCommandEventArgs.cs
- BlobPersonalizationState.cs
- TaskSchedulerException.cs
- PointValueSerializer.cs
- HtmlProps.cs
- ExpressionEditorAttribute.cs
- ImageSource.cs
- SerializationException.cs
- Decimal.cs
- WpfSharedBamlSchemaContext.cs
- ColumnHeader.cs
- ToolStripManager.cs
- LogicalTreeHelper.cs
- QueryOpcode.cs
- DbDataReader.cs
- PerformanceCountersElement.cs
- DigitShape.cs
- SuppressMergeCheckAttribute.cs
- DataPagerFieldItem.cs
- Translator.cs
- StringSorter.cs
- CharacterBufferReference.cs
- MemoryRecordBuffer.cs
- XmlReader.cs
- HWStack.cs
- ServiceRouteHandler.cs
- DefaultBindingPropertyAttribute.cs
- DynamicQueryableWrapper.cs
- AxHost.cs
- Hex.cs
- SQLDecimal.cs
- ListParaClient.cs
- ReferenceEqualityComparer.cs
- BitmapData.cs
- FieldAccessException.cs