Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / System / Windows / Media3D / SpotLight.cs / 1 / SpotLight.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: 3D spot light implementation. // // See spec at http://avalon/medialayer/Specifications/Avalon3D%20API%20Spec.mht // // History: // 06/18/2003 : t-gregr - Created // //--------------------------------------------------------------------------- using System; using System.Windows.Media; using System.Windows.Media.Composition; using MS.Internal; using System.ComponentModel.Design.Serialization; using System.Windows.Markup; namespace System.Windows.Media.Media3D { ////// The SpotLight derives from PointLightBase as it has a position, range, and attenuation, /// but also adds in a direction and parameters to control the "cone" of the light. /// In order to control the "cone", outerConeAngle (beyond which nothing is illuminated), /// and innerConeAngle (within which everything is fully illuminated) must be specified. /// Lighting between the outside of the inner cone and the outer cone falls off linearly. /// public sealed partial class SpotLight : PointLightBase { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors ////// Constructor. /// /// Diffuse color of the new light. /// Position of the new light. /// Direction of the new light. /// Outer cone angle of the new light. /// Inner cone angle of the new light. public SpotLight(Color diffuseColor, Point3D position, Vector3D direction, double outerConeAngle, double innerConeAngle) : this() { // Set PointLightBase properties Color = diffuseColor; Position = position; // Set SpotLight properties Direction = direction; OuterConeAngle = outerConeAngle; InnerConeAngle = innerConeAngle; } ////// Builds a default spotlight shining onto the origin from the (0,0,-1) /// public SpotLight() {} #endregion Constructors //------------------------------------------------------ // // Public Methods // //----------------------------------------------------- //------------------------------------------------------ // // Public Properties // //------------------------------------------------------ //----------------------------------------------------- // // Public Events // //------------------------------------------------------ //----------------------------------------------------- // // Private Fields // //----------------------------------------------------- } } // 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 spot light implementation. // // See spec at http://avalon/medialayer/Specifications/Avalon3D%20API%20Spec.mht // // History: // 06/18/2003 : t-gregr - Created // //--------------------------------------------------------------------------- using System; using System.Windows.Media; using System.Windows.Media.Composition; using MS.Internal; using System.ComponentModel.Design.Serialization; using System.Windows.Markup; namespace System.Windows.Media.Media3D { ////// The SpotLight derives from PointLightBase as it has a position, range, and attenuation, /// but also adds in a direction and parameters to control the "cone" of the light. /// In order to control the "cone", outerConeAngle (beyond which nothing is illuminated), /// and innerConeAngle (within which everything is fully illuminated) must be specified. /// Lighting between the outside of the inner cone and the outer cone falls off linearly. /// public sealed partial class SpotLight : PointLightBase { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors ////// Constructor. /// /// Diffuse color of the new light. /// Position of the new light. /// Direction of the new light. /// Outer cone angle of the new light. /// Inner cone angle of the new light. public SpotLight(Color diffuseColor, Point3D position, Vector3D direction, double outerConeAngle, double innerConeAngle) : this() { // Set PointLightBase properties Color = diffuseColor; Position = position; // Set SpotLight properties Direction = direction; OuterConeAngle = outerConeAngle; InnerConeAngle = innerConeAngle; } ////// Builds a default spotlight shining onto the origin from the (0,0,-1) /// public SpotLight() {} #endregion Constructors //------------------------------------------------------ // // Public Methods // //----------------------------------------------------- //------------------------------------------------------ // // Public Properties // //------------------------------------------------------ //----------------------------------------------------- // // Public Events // //------------------------------------------------------ //----------------------------------------------------- // // Private Fields // //----------------------------------------------------- } } // 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
- CachedBitmap.cs
- CqlQuery.cs
- DataSourceControl.cs
- HotCommands.cs
- CornerRadius.cs
- SqlConnectionPoolGroupProviderInfo.cs
- FixedSOMPageConstructor.cs
- CompositeFontFamily.cs
- CultureSpecificStringDictionary.cs
- Constants.cs
- MenuItem.cs
- CodeNamespaceImportCollection.cs
- SafeCoTaskMem.cs
- ToolStripItemRenderEventArgs.cs
- ColumnWidthChangingEvent.cs
- CodeStatement.cs
- VirtualDirectoryMappingCollection.cs
- AncestorChangedEventArgs.cs
- ResourceDescriptionAttribute.cs
- TemplateBindingExpressionConverter.cs
- DataService.cs
- EdmValidator.cs
- LineBreak.cs
- HttpModuleActionCollection.cs
- PrintDialog.cs
- MailDefinition.cs
- OutputScopeManager.cs
- UrlRoutingModule.cs
- Convert.cs
- SignatureToken.cs
- SerTrace.cs
- ConditionalBranch.cs
- ButtonRenderer.cs
- ClientSettingsStore.cs
- IsolatedStorageFilePermission.cs
- TypeSystemHelpers.cs
- FileUtil.cs
- XmlIterators.cs
- MemoryRecordBuffer.cs
- ShaderEffect.cs
- _Connection.cs
- SiblingIterators.cs
- ZipIORawDataFileBlock.cs
- InvalidDataException.cs
- RegexParser.cs
- RuntimeConfig.cs
- DesignerLoader.cs
- BufferBuilder.cs
- VirtualPathProvider.cs
- NameValueFileSectionHandler.cs
- ObjectQueryExecutionPlan.cs
- ToolBar.cs
- NetworkCredential.cs
- HuffmanTree.cs
- WindowsFont.cs
- CqlIdentifiers.cs
- LicenseContext.cs
- DiscoveryClientDocuments.cs
- CommentEmitter.cs
- VideoDrawing.cs
- ToolStripRenderer.cs
- CollectionDataContractAttribute.cs
- PixelShader.cs
- TypeSchema.cs
- NetSectionGroup.cs
- ParallelEnumerableWrapper.cs
- ValidatedControlConverter.cs
- DbConnectionOptions.cs
- XPathDocument.cs
- WindowsStartMenu.cs
- RegularExpressionValidator.cs
- AnonymousIdentificationModule.cs
- DataRowView.cs
- TypefaceCollection.cs
- RectKeyFrameCollection.cs
- ValueUnavailableException.cs
- CommandHelper.cs
- DesignerVerb.cs
- InteropAutomationProvider.cs
- JsonWriterDelegator.cs
- EventLogReader.cs
- UnsafeNativeMethods.cs
- SyndicationContent.cs
- IDQuery.cs
- EdmPropertyAttribute.cs
- WebHttpEndpoint.cs
- ToolStripDropDown.cs
- SR.cs
- EnumerableRowCollectionExtensions.cs
- ReflectionPermission.cs
- CredentialCache.cs
- CanExecuteRoutedEventArgs.cs
- FileFormatException.cs
- XmlChildNodes.cs
- TraceProvider.cs
- ColumnResizeUndoUnit.cs
- DesignerTransaction.cs
- TemplatedMailWebEventProvider.cs
- DBCommand.cs
- ProxyElement.cs