Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- QueryRewriter.cs
- GradientStop.cs
- HandleRef.cs
- SafeRightsManagementQueryHandle.cs
- FileFormatException.cs
- SqlFormatter.cs
- TypeToken.cs
- ConnectionOrientedTransportBindingElement.cs
- EventSourceCreationData.cs
- XmlExpressionDumper.cs
- SrgsGrammar.cs
- WebPartVerbsEventArgs.cs
- CipherData.cs
- _UriSyntax.cs
- TreeViewAutomationPeer.cs
- DataContractSerializer.cs
- ManipulationStartingEventArgs.cs
- ResourceDefaultValueAttribute.cs
- DataPointer.cs
- FormView.cs
- ListControl.cs
- TextSelectionHighlightLayer.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- WebServiceParameterData.cs
- RecordManager.cs
- CreateUserWizard.cs
- DataTemplate.cs
- DataPagerFieldCommandEventArgs.cs
- infer.cs
- HasCopySemanticsAttribute.cs
- TablePatternIdentifiers.cs
- NameValueFileSectionHandler.cs
- PerformanceCounterPermissionEntry.cs
- EasingKeyFrames.cs
- PriorityBindingExpression.cs
- SecurityContext.cs
- MailDefinition.cs
- PointHitTestResult.cs
- BindingValueChangedEventArgs.cs
- ExtendedPropertyCollection.cs
- XmlDocumentType.cs
- SqlBuffer.cs
- EncodingInfo.cs
- XmlDataCollection.cs
- SourceFilter.cs
- XmlAnyElementAttributes.cs
- ChannelAcceptor.cs
- DBSqlParserTableCollection.cs
- InternalConfigHost.cs
- XmlSerializerSection.cs
- LineSegment.cs
- DbXmlEnabledProviderManifest.cs
- PenThread.cs
- WinInetCache.cs
- FolderBrowserDialog.cs
- ClientConfigurationSystem.cs
- BufferedResponseStream.cs
- XmlSchemaSimpleTypeRestriction.cs
- UpdatePanelTriggerCollection.cs
- SettingsSavedEventArgs.cs
- Stopwatch.cs
- dataprotectionpermissionattribute.cs
- PaperSource.cs
- AssemblyBuilderData.cs
- GPRECTF.cs
- AuthStoreRoleProvider.cs
- JournalNavigationScope.cs
- PopOutPanel.cs
- Rect.cs
- Slider.cs
- DefaultPropertyAttribute.cs
- BinaryObjectInfo.cs
- DbConnectionPoolGroup.cs
- TaskScheduler.cs
- FontClient.cs
- FrameworkTextComposition.cs
- WebBrowserDocumentCompletedEventHandler.cs
- DbParameterCollectionHelper.cs
- CustomError.cs
- PersonalizationStateQuery.cs
- Mappings.cs
- WebRequestModuleElementCollection.cs
- DataGridRowHeader.cs
- CodePageUtils.cs
- LocationSectionRecord.cs
- OleTxTransaction.cs
- ResourceProviderFactory.cs
- ClientUtils.cs
- WorkingDirectoryEditor.cs
- CounterCreationData.cs
- InvalidEnumArgumentException.cs
- HandledMouseEvent.cs
- SchemaElement.cs
- PageCatalogPart.cs
- AsyncSerializedWorker.cs
- MenuScrollingVisibilityConverter.cs
- LambdaCompiler.Expressions.cs
- DataGridComboBoxColumn.cs
- ObjectDataSourceWizardForm.cs
- RegistryPermission.cs