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
- StreamAsIStream.cs
- XPathEmptyIterator.cs
- PageBuildProvider.cs
- XamlBuildTaskServices.cs
- HtmlMeta.cs
- SpecialFolderEnumConverter.cs
- Message.cs
- Matrix3DValueSerializer.cs
- CustomLineCap.cs
- SerializationHelper.cs
- PageAdapter.cs
- TextEndOfSegment.cs
- DataColumnMapping.cs
- BuildProvider.cs
- smtpconnection.cs
- HttpConfigurationSystem.cs
- AssemblyBuilder.cs
- DrawingContextDrawingContextWalker.cs
- FontNameConverter.cs
- TableParagraph.cs
- SuppressIldasmAttribute.cs
- XmlSchemaAny.cs
- storepermission.cs
- ObjectDataSourceSelectingEventArgs.cs
- EntityDesignerBuildProvider.cs
- BitmapFrameEncode.cs
- RewritingPass.cs
- ProcessRequestArgs.cs
- Size3DValueSerializer.cs
- EmissiveMaterial.cs
- XmlHierarchicalDataSourceView.cs
- UInt32.cs
- ProcessingInstructionAction.cs
- DataRecordInternal.cs
- PointLightBase.cs
- LayoutManager.cs
- ExpressionBuilderContext.cs
- AssemblyAttributes.cs
- BoolExpr.cs
- TypeUtil.cs
- GridToolTip.cs
- ListViewCommandEventArgs.cs
- SessionParameter.cs
- ExtenderProvidedPropertyAttribute.cs
- COM2ExtendedTypeConverter.cs
- ImmutableCollection.cs
- FormViewPageEventArgs.cs
- FormattedText.cs
- Win32SafeHandles.cs
- ComplexPropertyEntry.cs
- XamlClipboardData.cs
- DataControlReferenceCollection.cs
- PropertyItem.cs
- AbstractExpressions.cs
- Visitor.cs
- LostFocusEventManager.cs
- X509RecipientCertificateServiceElement.cs
- ZipPackage.cs
- CodePropertyReferenceExpression.cs
- BooleanFunctions.cs
- OleDbRowUpdatedEvent.cs
- BaseTransportHeaders.cs
- SqlNodeTypeOperators.cs
- XmlSchemaAttribute.cs
- InputBindingCollection.cs
- DrawingServices.cs
- SspiHelper.cs
- StringToken.cs
- Bidi.cs
- RemotingServices.cs
- ImageDrawing.cs
- ViewGenResults.cs
- EncoderFallback.cs
- DataColumn.cs
- TdsParserSessionPool.cs
- AutoResizedEvent.cs
- NavigationCommands.cs
- ConfigXmlComment.cs
- CalendarDateRangeChangingEventArgs.cs
- HelpEvent.cs
- HtmlElementCollection.cs
- GroupBoxAutomationPeer.cs
- ValueUtilsSmi.cs
- wmiprovider.cs
- TextAutomationPeer.cs
- XPathArrayIterator.cs
- BinaryFormatterWriter.cs
- DesignerWidgets.cs
- TemplatePropertyEntry.cs
- TextFormatterContext.cs
- ObjectViewListener.cs
- lengthconverter.cs
- Int16Animation.cs
- IApplicationTrustManager.cs
- SiteMapPath.cs
- LayoutManager.cs
- LogicalTreeHelper.cs
- XmlNodeComparer.cs
- ExceptionHandlersDesigner.cs
- FileCodeGroup.cs