Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / System / Windows / Media3D / Light.cs / 1 / Light.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: 3D light implementation. // // See spec at http://avalon/medialayer/Specifications/Avalon3D%20API%20Spec.mht // // History: // 06/18/2003 : t-gregr - 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. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: 3D light implementation. // // See spec at http://avalon/medialayer/Specifications/Avalon3D%20API%20Spec.mht // // History: // 06/18/2003 : t-gregr - 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
- Resources.Designer.cs
- WindowsClaimSet.cs
- EncodingStreamWrapper.cs
- WSSecurityTokenSerializer.cs
- CompileXomlTask.cs
- CompositeFontFamily.cs
- MachineKeySection.cs
- WinFormsSpinner.cs
- WinEventWrap.cs
- URIFormatException.cs
- InvokeProviderWrapper.cs
- CanonicalizationDriver.cs
- StoreItemCollection.cs
- ImpersonationContext.cs
- CodePageUtils.cs
- EnumerableRowCollection.cs
- StorageMappingItemCollection.cs
- ListSortDescriptionCollection.cs
- SortDescription.cs
- Aggregates.cs
- IdentityManager.cs
- UniqueConstraint.cs
- CodeIdentifier.cs
- MailWebEventProvider.cs
- _NegotiateClient.cs
- FrameworkContentElement.cs
- DataViewSettingCollection.cs
- PolyBezierSegment.cs
- TemplateBindingExpressionConverter.cs
- EndOfStreamException.cs
- Globals.cs
- ComponentConverter.cs
- RegexWorker.cs
- EditorPartCollection.cs
- SizeConverter.cs
- GeometryDrawing.cs
- UnauthorizedAccessException.cs
- WebExceptionStatus.cs
- OdbcUtils.cs
- ControlIdConverter.cs
- Int32Rect.cs
- TokenBasedSet.cs
- URIFormatException.cs
- PackagePart.cs
- ExpressionsCollectionEditor.cs
- CqlLexer.cs
- ListViewDeleteEventArgs.cs
- TcpTransportManager.cs
- MobileListItemCollection.cs
- SqlDependencyUtils.cs
- loginstatus.cs
- Operand.cs
- SqlIdentifier.cs
- filewebrequest.cs
- GACMembershipCondition.cs
- DataGridCell.cs
- RichTextBoxConstants.cs
- SHA384Managed.cs
- QilPatternFactory.cs
- MasterPageBuildProvider.cs
- WindowInteractionStateTracker.cs
- EventMappingSettings.cs
- SqlCaseSimplifier.cs
- BuildDependencySet.cs
- ParserContext.cs
- DynamicScriptObject.cs
- SerialPinChanges.cs
- DataGridViewTextBoxEditingControl.cs
- SvcMapFileLoader.cs
- ICspAsymmetricAlgorithm.cs
- ICspAsymmetricAlgorithm.cs
- TableHeaderCell.cs
- FixedFindEngine.cs
- Form.cs
- HostedHttpContext.cs
- GenericXmlSecurityToken.cs
- DataGridViewColumn.cs
- ServiceReference.cs
- ExpandCollapsePattern.cs
- InheritanceUI.cs
- ToolStripRenderEventArgs.cs
- PrintController.cs
- _KerberosClient.cs
- StreamGeometry.cs
- KeyBinding.cs
- SafeCryptoHandles.cs
- SynchronizedDispatch.cs
- SchemaImporter.cs
- ItemCollection.cs
- TraceHandler.cs
- MoveSizeWinEventHandler.cs
- AdornerLayer.cs
- TypeDependencyAttribute.cs
- MemberInfoSerializationHolder.cs
- SelectionEditingBehavior.cs
- DesignerWithHeader.cs
- GeometryGroup.cs
- FontUnitConverter.cs
- DataGridRow.cs
- EventLogger.cs