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
- ScopedKnownTypes.cs
- TextEditor.cs
- Geometry.cs
- StateBag.cs
- StyleXamlParser.cs
- AttachedPropertyBrowsableAttribute.cs
- SplitContainer.cs
- SocketPermission.cs
- safemediahandle.cs
- ActivityDesignerResources.cs
- SpeechSynthesizer.cs
- AppearanceEditorPart.cs
- WorkItem.cs
- ListenerElementsCollection.cs
- DataGridViewComboBoxCell.cs
- CustomGrammar.cs
- DependencyPropertyKey.cs
- BinaryConverter.cs
- Header.cs
- EntityDataSourceMemberPath.cs
- VisualTreeUtils.cs
- CallbackException.cs
- ParsedAttributeCollection.cs
- MethodInfo.cs
- TraceSource.cs
- ConfigurationManagerInternal.cs
- WindowsRichEditRange.cs
- SqlProviderServices.cs
- UniqueIdentifierService.cs
- XmlNodeChangedEventManager.cs
- FileSystemEnumerable.cs
- ViewService.cs
- FreezableCollection.cs
- panel.cs
- returneventsaver.cs
- WpfWebRequestHelper.cs
- Subordinate.cs
- ApplicationGesture.cs
- ByteAnimationBase.cs
- ActivationService.cs
- CompositeScriptReference.cs
- TimeSpanValidatorAttribute.cs
- BrushConverter.cs
- UInt32.cs
- XmlSchemaComplexContentExtension.cs
- DynamicDataResources.Designer.cs
- HttpResponseHeader.cs
- RegistryKey.cs
- DataGridViewCell.cs
- BitmapEffectGeneralTransform.cs
- SelectionRange.cs
- SpecialNameAttribute.cs
- FastEncoderWindow.cs
- PersonalizationProviderHelper.cs
- DesignerVerb.cs
- TextTreeFixupNode.cs
- precedingsibling.cs
- COM2PropertyPageUITypeConverter.cs
- BlockExpression.cs
- TableLayoutPanel.cs
- Attributes.cs
- _UncName.cs
- PeerHelpers.cs
- HtmlGenericControl.cs
- FormsAuthenticationModule.cs
- ReadOnlyNameValueCollection.cs
- VariableDesigner.xaml.cs
- SqlDataSourceFilteringEventArgs.cs
- DataSourceProvider.cs
- DateTimePicker.cs
- EventSourceCreationData.cs
- SafeArrayTypeMismatchException.cs
- MetadataPropertyAttribute.cs
- PointLight.cs
- UriSection.cs
- CodePrimitiveExpression.cs
- XmlSchemaSet.cs
- MouseGesture.cs
- CodeMemberMethod.cs
- RecognizerInfo.cs
- QueryCorrelationInitializer.cs
- ApplicationServiceHelper.cs
- IUnknownConstantAttribute.cs
- nulltextcontainer.cs
- URLMembershipCondition.cs
- SoapServerMethod.cs
- querybuilder.cs
- SystemParameters.cs
- UnsettableComboBox.cs
- FontCacheUtil.cs
- _ConnectionGroup.cs
- XmlSchemaAppInfo.cs
- CollectionChangeEventArgs.cs
- Substitution.cs
- SubMenuStyleCollection.cs
- TableProviderWrapper.cs
- ObjectCloneHelper.cs
- VisualBrush.cs
- odbcmetadatafactory.cs
- TimeSpanMinutesOrInfiniteConverter.cs