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
- SymmetricKey.cs
- Package.cs
- SqlTransaction.cs
- CheckBox.cs
- NameScope.cs
- ThumbButtonInfoCollection.cs
- CommandExpr.cs
- ClaimComparer.cs
- PolyBezierSegment.cs
- ReadOnlyDataSource.cs
- SqlDataSourceConfigureFilterForm.cs
- TypefaceMap.cs
- ImageBrush.cs
- EditingCoordinator.cs
- SqlServer2KCompatibilityAnnotation.cs
- FormattedTextSymbols.cs
- CallbackDebugElement.cs
- OdbcRowUpdatingEvent.cs
- XmlDictionaryString.cs
- ResourceCategoryAttribute.cs
- SkewTransform.cs
- CryptoApi.cs
- XamlUtilities.cs
- BasePropertyDescriptor.cs
- MonthChangedEventArgs.cs
- LogicalMethodInfo.cs
- MultiBinding.cs
- invalidudtexception.cs
- XmlAttributes.cs
- InkPresenterAutomationPeer.cs
- CopyNodeSetAction.cs
- EditorBrowsableAttribute.cs
- DesignerTransactionCloseEvent.cs
- SecurityTokenSpecification.cs
- MetabaseSettings.cs
- MainMenu.cs
- GeneralTransformGroup.cs
- WrapperEqualityComparer.cs
- DataGridViewTextBoxCell.cs
- FollowerQueueCreator.cs
- HtmlInputPassword.cs
- BitmapEffectInputData.cs
- GlyphRun.cs
- GridViewSelectEventArgs.cs
- ListBoxItem.cs
- ExeContext.cs
- ParserOptions.cs
- ClientTargetCollection.cs
- X509Extension.cs
- ApplicationSettingsBase.cs
- ChangePassword.cs
- FileInfo.cs
- ScrollEventArgs.cs
- HostingMessageProperty.cs
- SmtpCommands.cs
- QueryCursorEventArgs.cs
- Single.cs
- UnknownBitmapEncoder.cs
- DiscoveryClientRequestChannel.cs
- MsmqIntegrationProcessProtocolHandler.cs
- AppSettingsSection.cs
- Comparer.cs
- MLangCodePageEncoding.cs
- XmlSchemaSimpleTypeRestriction.cs
- Internal.cs
- ConnectionManagementSection.cs
- WebServiceMethodData.cs
- WebEvents.cs
- XPathException.cs
- XmlSchemaAttribute.cs
- PageAdapter.cs
- SpeechUI.cs
- MessageQueueConverter.cs
- RequestTimeoutManager.cs
- UnsafeNativeMethods.cs
- AnnotationHighlightLayer.cs
- ModelItemKeyValuePair.cs
- Positioning.cs
- SystemResources.cs
- TemplateParser.cs
- BinarySecretSecurityToken.cs
- WebControlsSection.cs
- Crc32Helper.cs
- RenderData.cs
- RoleGroup.cs
- TypeExtensionConverter.cs
- PassportPrincipal.cs
- InertiaRotationBehavior.cs
- XmlUtf8RawTextWriter.cs
- DuplicateWaitObjectException.cs
- SHA1Managed.cs
- ImportCatalogPart.cs
- WinOEToolBoxItem.cs
- EventTrigger.cs
- MarkupCompilePass2.cs
- ListControlConvertEventArgs.cs
- Selection.cs
- ToolStripOverflow.cs
- MessageHeaderT.cs
- ControlCachePolicy.cs