Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Media3D / SpotLight.cs / 1 / SpotLight.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: 3D spot light implementation. // // See spec at [....]/medialayer/Specifications/Avalon3D%20API%20Spec.mht // // History: // 06/18/2003 : [....] - 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
- JsonFormatReaderGenerator.cs
- CapabilitiesSection.cs
- DataGridViewRowPostPaintEventArgs.cs
- ArraySegment.cs
- BitmapMetadata.cs
- DataContractSet.cs
- Point3DValueSerializer.cs
- RegistryHandle.cs
- WmlImageAdapter.cs
- DocobjHost.cs
- TileBrush.cs
- ISAPIWorkerRequest.cs
- BorderGapMaskConverter.cs
- MarkupCompiler.cs
- CryptoKeySecurity.cs
- TargetConverter.cs
- SchemaElementLookUpTableEnumerator.cs
- Simplifier.cs
- BulletedListEventArgs.cs
- FormsAuthentication.cs
- XmlSchemaAny.cs
- ChangeBlockUndoRecord.cs
- WhitespaceRule.cs
- OleDbInfoMessageEvent.cs
- UserControlDocumentDesigner.cs
- WindowsListViewItemCheckBox.cs
- SR.cs
- SafeFileMappingHandle.cs
- IsolatedStorageFileStream.cs
- PersonalizationProvider.cs
- COM2IDispatchConverter.cs
- DynamicRouteExpression.cs
- ExpressionEditorAttribute.cs
- PersonalizableTypeEntry.cs
- XmlLinkedNode.cs
- XPathScanner.cs
- DockingAttribute.cs
- PeerToPeerException.cs
- PrtCap_Base.cs
- WorkflowItemPresenter.cs
- InfoCardBinaryReader.cs
- SchemaSetCompiler.cs
- AddInBase.cs
- ClickablePoint.cs
- CodeCastExpression.cs
- XPathSelfQuery.cs
- KeyConstraint.cs
- DataGridTextBox.cs
- XmlQueryType.cs
- ControlCollection.cs
- TextDecorationUnitValidation.cs
- Instrumentation.cs
- WorkflowInstanceAbortedRecord.cs
- LeaseManager.cs
- WorkflowEnvironment.cs
- TTSVoice.cs
- DataMisalignedException.cs
- SystemPens.cs
- ECDiffieHellmanPublicKey.cs
- TimeSpanMinutesConverter.cs
- SchemaDeclBase.cs
- LoginName.cs
- CheckBox.cs
- ContentDesigner.cs
- CodeArrayCreateExpression.cs
- ImportedNamespaceContextItem.cs
- DataMemberListEditor.cs
- Binding.cs
- Faults.cs
- SqlEnums.cs
- DataViewManagerListItemTypeDescriptor.cs
- ProfileService.cs
- SettingsPropertyIsReadOnlyException.cs
- SR.cs
- NavigatorOutput.cs
- RuntimeConfig.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- ConnectionStringsExpressionEditor.cs
- WebHttpElement.cs
- InvalidProgramException.cs
- ObjectListComponentEditor.cs
- CorrelationToken.cs
- HandlerFactoryCache.cs
- EpmCustomContentSerializer.cs
- StringFunctions.cs
- SoapClientMessage.cs
- FocusTracker.cs
- XsdDuration.cs
- HatchBrush.cs
- NegationPusher.cs
- XsdDataContractImporter.cs
- ProtectedUri.cs
- XhtmlTextWriter.cs
- HttpWebRequestElement.cs
- TypeCodeDomSerializer.cs
- safex509handles.cs
- SecurityUtils.cs
- HtmlInputRadioButton.cs
- AsyncOperation.cs
- FactoryMaker.cs