Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media3D / SpotLight.cs / 1305600 / 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
- Match.cs
- RemotingServices.cs
- XmlDocumentFragment.cs
- TextRangeProviderWrapper.cs
- WizardForm.cs
- VectorValueSerializer.cs
- MonitorWrapper.cs
- DataKey.cs
- ExportOptions.cs
- MultiView.cs
- DataGridRowsPresenter.cs
- TemplateBindingExtension.cs
- InvalidCommandTreeException.cs
- RemoteWebConfigurationHostStream.cs
- MetadataCache.cs
- SendingRequestEventArgs.cs
- EntryIndex.cs
- ErrorProvider.cs
- SkipStoryboardToFill.cs
- EmptyEnumerator.cs
- FieldToken.cs
- InternalDispatchObject.cs
- ZipIOLocalFileHeader.cs
- ResourceBinder.cs
- TemplatePartAttribute.cs
- ConfigurationStrings.cs
- ApplicationManager.cs
- RenderDataDrawingContext.cs
- CheckBoxRenderer.cs
- TTSVoice.cs
- MetadataArtifactLoader.cs
- CharacterBufferReference.cs
- WebPartEditorCancelVerb.cs
- ImageAutomationPeer.cs
- GeometryCombineModeValidation.cs
- KoreanLunisolarCalendar.cs
- LowerCaseStringConverter.cs
- UnsafeNativeMethods.cs
- TemplateField.cs
- DocumentPageTextView.cs
- ConfigXmlDocument.cs
- ArcSegment.cs
- ForEachAction.cs
- GCHandleCookieTable.cs
- PeerContact.cs
- Point3DCollectionConverter.cs
- WebReferencesBuildProvider.cs
- CreateUserWizardStep.cs
- _SingleItemRequestCache.cs
- prefixendpointaddressmessagefiltertable.cs
- ClusterSafeNativeMethods.cs
- TypeSystemProvider.cs
- DoubleLink.cs
- FixedFlowMap.cs
- HtmlButton.cs
- ProtocolImporter.cs
- SafeCertificateStore.cs
- GenericArgumentsUpdater.cs
- propertyentry.cs
- AsyncDataRequest.cs
- DependsOnAttribute.cs
- ApplicationManager.cs
- MsmqIntegrationChannelFactory.cs
- CreateUserWizardDesigner.cs
- StructuralComparisons.cs
- MasterPageParser.cs
- ParsedAttributeCollection.cs
- AdapterDictionary.cs
- ToolTipService.cs
- CodeAttachEventStatement.cs
- ToolStripAdornerWindowService.cs
- SharedDp.cs
- SoapAttributes.cs
- InternalConfigRoot.cs
- DoubleAnimationClockResource.cs
- SupportsEventValidationAttribute.cs
- Misc.cs
- SQLInt16Storage.cs
- ParameterCollection.cs
- CodeDomConfigurationHandler.cs
- WebBrowserDesigner.cs
- SolidColorBrush.cs
- CounterCreationDataConverter.cs
- SignedXml.cs
- MultipartIdentifier.cs
- HwndSourceKeyboardInputSite.cs
- Point3D.cs
- WindowsListViewGroup.cs
- UserControlParser.cs
- ScrollChrome.cs
- ClientData.cs
- RegisteredDisposeScript.cs
- DesignerView.cs
- StoryFragments.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- QilTypeChecker.cs
- MappingException.cs
- IsolatedStorageFilePermission.cs
- HelpKeywordAttribute.cs
- CacheHelper.cs