Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- RIPEMD160Managed.cs
- BindUriHelper.cs
- ComponentSerializationService.cs
- EmbeddedObject.cs
- ColorConvertedBitmap.cs
- SponsorHelper.cs
- SizeChangedInfo.cs
- BitmapCodecInfoInternal.cs
- DetailsViewUpdateEventArgs.cs
- XPathAncestorQuery.cs
- PtsPage.cs
- ComponentResourceKeyConverter.cs
- GenericIdentity.cs
- Label.cs
- KeyGestureValueSerializer.cs
- StringAnimationBase.cs
- BuildProvider.cs
- GenericPrincipal.cs
- externdll.cs
- Soap11ServerProtocol.cs
- ICspAsymmetricAlgorithm.cs
- Normalization.cs
- ContextMenuStrip.cs
- WeakReferenceList.cs
- FieldNameLookup.cs
- ExtendedTransformFactory.cs
- MachineKeyConverter.cs
- EntityObject.cs
- ObjectQueryExecutionPlan.cs
- XmlJsonWriter.cs
- DependencyPropertyValueSerializer.cs
- CollectionViewGroup.cs
- _CacheStreams.cs
- Vector.cs
- JsonDeserializer.cs
- ToolBar.cs
- ActivityDesignerAccessibleObject.cs
- CompilerGlobalScopeAttribute.cs
- CultureInfoConverter.cs
- CompressionTransform.cs
- DataGridViewComboBoxColumn.cs
- TypeViewSchema.cs
- ProxyAssemblyNotLoadedException.cs
- XmlSchemaCompilationSettings.cs
- ObjectFullSpanRewriter.cs
- BitmapDecoder.cs
- DataStorage.cs
- PingReply.cs
- ObjectDataProvider.cs
- Or.cs
- DataServiceConfiguration.cs
- StringFreezingAttribute.cs
- XmlSchemaValidationException.cs
- ExpressionVisitor.cs
- Rights.cs
- WebPartConnectionsConnectVerb.cs
- TableSectionStyle.cs
- EndpointConfigContainer.cs
- XmlElementCollection.cs
- XmlEncoding.cs
- RenderDataDrawingContext.cs
- TextViewSelectionProcessor.cs
- DataGridViewColumnCollection.cs
- CapabilitiesAssignment.cs
- XmlSchemaSimpleType.cs
- LinkButton.cs
- DeobfuscatingStream.cs
- SequentialActivityDesigner.cs
- EntityProviderServices.cs
- altserialization.cs
- PrintDialogException.cs
- BaseValidator.cs
- XpsFixedDocumentReaderWriter.cs
- ProgressiveCrcCalculatingStream.cs
- FormViewInsertEventArgs.cs
- PageTheme.cs
- Error.cs
- SoapExtensionReflector.cs
- MethodBody.cs
- MetadataPropertyCollection.cs
- IisTraceListener.cs
- HitTestDrawingContextWalker.cs
- DBSqlParserColumn.cs
- DefaultParameterValueAttribute.cs
- GenericIdentity.cs
- Graphics.cs
- PropertyItemInternal.cs
- HtmlContainerControl.cs
- CallbackHandler.cs
- ModuleBuilder.cs
- TextBoxAutomationPeer.cs
- SizeLimitedCache.cs
- CapabilitiesUse.cs
- CqlBlock.cs
- SourceFileBuildProvider.cs
- ProxyHelper.cs
- ResourceAttributes.cs
- Compiler.cs
- SimpleRecyclingCache.cs
- EntityDataSourceColumn.cs