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
- ServiceObjectContainer.cs
- CompositeControl.cs
- AxDesigner.cs
- SimpleType.cs
- TabPage.cs
- ScopelessEnumAttribute.cs
- DataRecord.cs
- ImmutableCollection.cs
- TransportReplyChannelAcceptor.cs
- PropertyMapper.cs
- SafeJobHandle.cs
- AtomServiceDocumentSerializer.cs
- DataServiceQueryOfT.cs
- PackageRelationshipCollection.cs
- BaseInfoTable.cs
- DiagnosticTraceSource.cs
- WriteableBitmap.cs
- BufferedReadStream.cs
- _NetworkingPerfCounters.cs
- OracleEncoding.cs
- SecurityProtocolFactory.cs
- DataGridViewRowsRemovedEventArgs.cs
- ToolStripItemCollection.cs
- HitTestParameters3D.cs
- SmtpCommands.cs
- BaseHashHelper.cs
- OracleConnectionStringBuilder.cs
- shaperfactoryquerycacheentry.cs
- XPathDocumentIterator.cs
- GenericRootAutomationPeer.cs
- Bits.cs
- FileEnumerator.cs
- TableColumnCollectionInternal.cs
- ADConnectionHelper.cs
- SqlTriggerAttribute.cs
- ContextMenuStrip.cs
- _LocalDataStore.cs
- Expression.cs
- IconHelper.cs
- TemplatePartAttribute.cs
- TrackingConditionCollection.cs
- StyleBamlTreeBuilder.cs
- MimePart.cs
- SQLDecimal.cs
- ConstructorNeedsTagAttribute.cs
- IRCollection.cs
- SqlNodeTypeOperators.cs
- ResourceContainer.cs
- Vector3D.cs
- CompilationSection.cs
- FormViewModeEventArgs.cs
- FloatUtil.cs
- TemplatedWizardStep.cs
- Validator.cs
- ActiveDocumentEvent.cs
- PeerEndPoint.cs
- StrokeNodeOperations.cs
- HtmlDocument.cs
- FileInfo.cs
- DefaultValueMapping.cs
- ContentPosition.cs
- WebPartVerbsEventArgs.cs
- XmlTextReaderImpl.cs
- FormatterServices.cs
- MsmqHostedTransportManager.cs
- UIAgentRequest.cs
- ProjectionPath.cs
- SystemIcmpV6Statistics.cs
- TableLayoutStyle.cs
- storepermission.cs
- PathStreamGeometryContext.cs
- CommentEmitter.cs
- CompensatableTransactionScopeActivityDesigner.cs
- DiffuseMaterial.cs
- PolyLineSegment.cs
- IgnorePropertiesAttribute.cs
- NumberAction.cs
- InputLanguageCollection.cs
- UrlMapping.cs
- XmlCharCheckingReader.cs
- GeneralTransform.cs
- BaseTemplateCodeDomTreeGenerator.cs
- _Win32.cs
- GreenMethods.cs
- DelegatingChannelListener.cs
- XmlFormatExtensionPrefixAttribute.cs
- ButtonBaseAutomationPeer.cs
- Setter.cs
- NotConverter.cs
- Normalization.cs
- SourceFileBuildProvider.cs
- HeaderedItemsControl.cs
- SecondaryViewProvider.cs
- CodeSnippetStatement.cs
- CodeCompileUnit.cs
- BCLDebug.cs
- TickBar.cs
- TakeOrSkipWhileQueryOperator.cs
- IconConverter.cs
- QueryableDataSource.cs