Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / System / Windows / Media3D / SpotLight.cs / 1 / 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
- CriticalExceptions.cs
- XmlSchema.cs
- Walker.cs
- PersonalizationProvider.cs
- SoapSchemaMember.cs
- ListItemCollection.cs
- SchemaTableColumn.cs
- QuestionEventArgs.cs
- StatusBarPanelClickEvent.cs
- MobileControlPersister.cs
- ResourcesBuildProvider.cs
- DES.cs
- SyntaxCheck.cs
- RC2.cs
- PartialCachingControl.cs
- CatalogPartChrome.cs
- VirtualPath.cs
- DecimalAnimation.cs
- RefreshEventArgs.cs
- ThemeDirectoryCompiler.cs
- MessageTransmitTraceRecord.cs
- Debug.cs
- XmlFormatExtensionPointAttribute.cs
- CustomValidator.cs
- TemplateComponentConnector.cs
- SqlUserDefinedTypeAttribute.cs
- BinaryWriter.cs
- XmlTextReaderImpl.cs
- WizardForm.cs
- PartialCachingAttribute.cs
- DupHandleConnectionReader.cs
- ComplexTypeEmitter.cs
- CallSiteOps.cs
- ZipFileInfo.cs
- NumberFormatInfo.cs
- XmlAttributeOverrides.cs
- Asn1Utilities.cs
- XmlTextAttribute.cs
- WorkflowApplicationException.cs
- TrackingMemoryStreamFactory.cs
- DataGrid.cs
- ProvideValueServiceProvider.cs
- TableRowCollection.cs
- PermissionToken.cs
- _UncName.cs
- NativeMethods.cs
- MetabaseSettings.cs
- keycontainerpermission.cs
- CompModSwitches.cs
- DataGridItemEventArgs.cs
- NamedPipeProcessProtocolHandler.cs
- DbInsertCommandTree.cs
- TraceData.cs
- QuaternionConverter.cs
- Boolean.cs
- Rfc2898DeriveBytes.cs
- IISMapPath.cs
- OdbcConnectionStringbuilder.cs
- VectorCollection.cs
- CompilationSection.cs
- Command.cs
- Pen.cs
- TreeWalkHelper.cs
- ObjectListGeneralPage.cs
- SectionInput.cs
- Substitution.cs
- Query.cs
- XmlBindingWorker.cs
- InternalCache.cs
- MetaTable.cs
- SkinBuilder.cs
- OleDbPermission.cs
- ListViewDeleteEventArgs.cs
- QilValidationVisitor.cs
- ValidatedMobileControlConverter.cs
- ListViewCommandEventArgs.cs
- QueryOperator.cs
- UriSection.cs
- MultiView.cs
- SerialPinChanges.cs
- codemethodreferenceexpression.cs
- BitmapEffectCollection.cs
- EventDescriptorCollection.cs
- OrderingInfo.cs
- Bitmap.cs
- RepeaterItemCollection.cs
- ArgumentValidation.cs
- FlowLayout.cs
- BamlLocalizabilityResolver.cs
- RedirectionProxy.cs
- LiteralControl.cs
- Helpers.cs
- Queue.cs
- Encoder.cs
- BindableTemplateBuilder.cs
- HtmlForm.cs
- ReflectionUtil.cs
- SHA1CryptoServiceProvider.cs
- ToolTip.cs
- CodeSnippetStatement.cs