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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataControlLinkButton.cs
- TemplateXamlTreeBuilder.cs
- QueryStringParameter.cs
- PolicyException.cs
- TypeDescriptionProvider.cs
- WebHttpBehavior.cs
- ImageList.cs
- SqlDeflator.cs
- MenuTracker.cs
- AsymmetricKeyExchangeFormatter.cs
- ZipIOExtraFieldZip64Element.cs
- SrgsGrammarCompiler.cs
- PartitionedStream.cs
- OdbcStatementHandle.cs
- TreeNodeStyleCollection.cs
- Roles.cs
- ChtmlTextWriter.cs
- ContainerControl.cs
- ChangeConflicts.cs
- X509SecurityTokenAuthenticator.cs
- RegexReplacement.cs
- streamingZipPartStream.cs
- TrailingSpaceComparer.cs
- CookielessHelper.cs
- RepeaterItemEventArgs.cs
- NavigatorOutput.cs
- MediaContextNotificationWindow.cs
- ForeignKeyFactory.cs
- ButtonStandardAdapter.cs
- IndexerNameAttribute.cs
- InstanceNotReadyException.cs
- _ContextAwareResult.cs
- ComplusTypeValidator.cs
- DesignerValidationSummaryAdapter.cs
- FormatSettings.cs
- SystemFonts.cs
- GenericIdentity.cs
- BindingsCollection.cs
- SiteMapProvider.cs
- COM2TypeInfoProcessor.cs
- AdditionalEntityFunctions.cs
- ExpressionPrefixAttribute.cs
- BooleanFunctions.cs
- EventLogEntryCollection.cs
- GridViewDesigner.cs
- HandlerBase.cs
- PermissionSetEnumerator.cs
- CaseInsensitiveHashCodeProvider.cs
- XmlSchemaAnyAttribute.cs
- WebConvert.cs
- MetadataUtilsSmi.cs
- DeferredRunTextReference.cs
- SafeArchiveContext.cs
- documentsequencetextpointer.cs
- BorderGapMaskConverter.cs
- SimpleBitVector32.cs
- TextElementCollection.cs
- SpellerStatusTable.cs
- NavigatorInput.cs
- Table.cs
- MimeObjectFactory.cs
- SpeechRecognitionEngine.cs
- DisposableCollectionWrapper.cs
- DeploymentSectionCache.cs
- HtmlDocument.cs
- ListBoxChrome.cs
- FocusWithinProperty.cs
- DataListItem.cs
- SettingsPropertyWrongTypeException.cs
- XPathAncestorQuery.cs
- NodeFunctions.cs
- StylusOverProperty.cs
- DeviceContext.cs
- OdbcConnectionStringbuilder.cs
- QuadraticBezierSegment.cs
- WindowsListView.cs
- X509CertificateTrustedIssuerElement.cs
- HtmlContainerControl.cs
- VisualBrush.cs
- ServiceModelSecurityTokenRequirement.cs
- ErrorEventArgs.cs
- SqlUtils.cs
- templategroup.cs
- TranslateTransform3D.cs
- Base64Encoder.cs
- XamlClipboardData.cs
- MapPathBasedVirtualPathProvider.cs
- DataGridViewCellLinkedList.cs
- EventMappingSettingsCollection.cs
- BevelBitmapEffect.cs
- CellPartitioner.cs
- PropVariant.cs
- Freezable.cs
- EntityWithChangeTrackerStrategy.cs
- SymmetricAlgorithm.cs
- ColumnClickEvent.cs
- ZipIOLocalFileBlock.cs
- LogicalMethodInfo.cs
- LocalizableAttribute.cs
- HandleExceptionArgs.cs