Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- XamlFigureLengthSerializer.cs
- ClientScriptManagerWrapper.cs
- FactoryMaker.cs
- GraphicsState.cs
- SmiConnection.cs
- MulticastNotSupportedException.cs
- SystemKeyConverter.cs
- HiddenField.cs
- XmlElement.cs
- SoapHeaders.cs
- SimpleTextLine.cs
- SelectedGridItemChangedEvent.cs
- Vector3DCollectionConverter.cs
- ForceCopyBuildProvider.cs
- Stroke.cs
- _SafeNetHandles.cs
- IPGlobalProperties.cs
- SyndicationFeedFormatter.cs
- MultitargetingHelpers.cs
- DataObjectCopyingEventArgs.cs
- ObjectPropertyMapping.cs
- ActivityCompletionCallbackWrapper.cs
- DelegatedStream.cs
- PropertyConverter.cs
- DesignerSerializationOptionsAttribute.cs
- RuntimeResourceSet.cs
- TemplatedAdorner.cs
- ExecutionProperties.cs
- querybuilder.cs
- ServerTooBusyException.cs
- RMPublishingDialog.cs
- Grid.cs
- XamlDesignerSerializationManager.cs
- XamlFigureLengthSerializer.cs
- Comparer.cs
- HtmlImage.cs
- PreviewPrintController.cs
- AxisAngleRotation3D.cs
- Documentation.cs
- Constant.cs
- Base64Encoder.cs
- DynamicDocumentPaginator.cs
- FieldMetadata.cs
- UIElementAutomationPeer.cs
- CodeRegionDirective.cs
- AbandonedMutexException.cs
- SkinBuilder.cs
- EntityModelSchemaGenerator.cs
- CodeThrowExceptionStatement.cs
- MatrixConverter.cs
- MonthChangedEventArgs.cs
- ServiceHostingEnvironment.cs
- SyndicationDeserializer.cs
- DataGridBoundColumn.cs
- CodeArrayCreateExpression.cs
- RawTextInputReport.cs
- CultureSpecificStringDictionary.cs
- NameObjectCollectionBase.cs
- MatrixAnimationBase.cs
- DataPagerFieldItem.cs
- rsa.cs
- HtmlContainerControl.cs
- BamlLocalizer.cs
- CodeObjectCreateExpression.cs
- RoleManagerEventArgs.cs
- FormViewInsertEventArgs.cs
- Property.cs
- ObjectContextServiceProvider.cs
- ContextDataSourceContextData.cs
- AssociatedControlConverter.cs
- FontWeightConverter.cs
- Base64WriteStateInfo.cs
- VisualBrush.cs
- ContainerSelectorBehavior.cs
- XmlSchemaObjectCollection.cs
- DataMemberConverter.cs
- DiscoveryReferences.cs
- OLEDB_Enum.cs
- HostSecurityManager.cs
- CodeSnippetExpression.cs
- EnumCodeDomSerializer.cs
- DBDataPermission.cs
- SlotInfo.cs
- PartialCachingControl.cs
- altserialization.cs
- MetadataProperty.cs
- LongSumAggregationOperator.cs
- CacheHelper.cs
- FrameworkReadOnlyPropertyMetadata.cs
- IItemContainerGenerator.cs
- UnmanagedHandle.cs
- Encoder.cs
- HtmlWindow.cs
- ComponentCollection.cs
- EntitySet.cs
- SqlCacheDependencyDatabaseCollection.cs
- BindingBase.cs
- ParameterDataSourceExpression.cs
- Point3DCollectionConverter.cs
- StateItem.cs