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
- WindowsScroll.cs
- CodeDirectionExpression.cs
- Rectangle.cs
- EmptyImpersonationContext.cs
- listitem.cs
- SqlExpressionNullability.cs
- XsltException.cs
- Brush.cs
- ScrollEvent.cs
- SamlNameIdentifierClaimResource.cs
- TrustSection.cs
- NullExtension.cs
- TargetInvocationException.cs
- Rules.cs
- ViewStateModeByIdAttribute.cs
- AtomPub10ServiceDocumentFormatter.cs
- RectKeyFrameCollection.cs
- AnnotationResource.cs
- OleDbPermission.cs
- RowUpdatedEventArgs.cs
- WebPageTraceListener.cs
- SqlPersistenceWorkflowInstanceDescription.cs
- TraceXPathNavigator.cs
- SqlDeflator.cs
- VirtualPathProvider.cs
- ContainerActivationHelper.cs
- SimpleRecyclingCache.cs
- IdleTimeoutMonitor.cs
- ManipulationDevice.cs
- OutputCacheSettingsSection.cs
- CryptoConfig.cs
- IndexedString.cs
- MonthChangedEventArgs.cs
- ToolBarButtonClickEvent.cs
- ExceptionNotification.cs
- XmlException.cs
- SoapFormatExtensions.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- HWStack.cs
- DocumentViewerBaseAutomationPeer.cs
- SectionRecord.cs
- SQLMoneyStorage.cs
- Decorator.cs
- ImageAttributes.cs
- PreservationFileWriter.cs
- SortFieldComparer.cs
- SharedPerformanceCounter.cs
- ParameterModifier.cs
- PackageFilter.cs
- _RequestCacheProtocol.cs
- DesignerWidgets.cs
- EdmProviderManifest.cs
- WindowsClientElement.cs
- TickBar.cs
- DataTableNameHandler.cs
- RouteParser.cs
- ValueType.cs
- WorkflowServiceNamespace.cs
- SubMenuStyleCollection.cs
- DataTemplateSelector.cs
- GroupItem.cs
- LabelLiteral.cs
- FloatSumAggregationOperator.cs
- ProcessHostConfigUtils.cs
- DataTransferEventArgs.cs
- LoginName.cs
- CultureNotFoundException.cs
- TakeOrSkipWhileQueryOperator.cs
- EmbeddedMailObjectsCollection.cs
- PopupRoot.cs
- DataSetUtil.cs
- ReceiveContextCollection.cs
- Confirm.cs
- EqualityArray.cs
- EntityClientCacheEntry.cs
- DeclarationUpdate.cs
- XmlSchemaSimpleContentRestriction.cs
- TrackingParameters.cs
- TypedRowGenerator.cs
- FloaterParaClient.cs
- LocatorBase.cs
- SQLDecimalStorage.cs
- LOSFormatter.cs
- GridViewRowCollection.cs
- AssemblyName.cs
- RecognizedPhrase.cs
- dtdvalidator.cs
- EditorAttribute.cs
- SelectionItemProviderWrapper.cs
- PolyLineSegment.cs
- CasesDictionary.cs
- TryExpression.cs
- HistoryEventArgs.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- GridViewDeleteEventArgs.cs
- sqlser.cs
- SamlDoNotCacheCondition.cs
- WindowsTooltip.cs
- AbandonedMutexException.cs
- AnonymousIdentificationModule.cs