Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- AttributeAction.cs
- HttpPostedFileBase.cs
- FontStyle.cs
- ClientBuildManagerCallback.cs
- PolyLineSegmentFigureLogic.cs
- ItemList.cs
- AddInAttribute.cs
- ProcessHostFactoryHelper.cs
- Attachment.cs
- Blend.cs
- _ShellExpression.cs
- HitTestParameters.cs
- SemanticAnalyzer.cs
- UpDownBaseDesigner.cs
- ThreadStartException.cs
- HierarchicalDataBoundControlAdapter.cs
- WinFormsUtils.cs
- NonVisualControlAttribute.cs
- FlagsAttribute.cs
- WarningException.cs
- BamlWriter.cs
- AllMembershipCondition.cs
- Menu.cs
- Stylus.cs
- WebSysDescriptionAttribute.cs
- CodeAttributeDeclarationCollection.cs
- WebPartConnectionsCloseVerb.cs
- ByteRangeDownloader.cs
- RequestUriProcessor.cs
- SortQueryOperator.cs
- GridItemPattern.cs
- MultiDataTrigger.cs
- BypassElementCollection.cs
- BitHelper.cs
- StringReader.cs
- Compiler.cs
- SemanticResolver.cs
- DoubleCollectionConverter.cs
- TypedReference.cs
- CodeAttributeDeclarationCollection.cs
- COM2PictureConverter.cs
- SoapIgnoreAttribute.cs
- XmlSchemaGroupRef.cs
- __Filters.cs
- HtmlPageAdapter.cs
- TextTreeInsertElementUndoUnit.cs
- util.cs
- KnownBoxes.cs
- SettingsPropertyIsReadOnlyException.cs
- KeyValuePair.cs
- BrushValueSerializer.cs
- webclient.cs
- NavigationHelper.cs
- CompoundFileStreamReference.cs
- FullTextState.cs
- WebPartTransformer.cs
- BitmapScalingModeValidation.cs
- SiteIdentityPermission.cs
- ContextMarshalException.cs
- RoutedCommand.cs
- AnnotationHighlightLayer.cs
- DataBindingCollectionConverter.cs
- DataServiceResponse.cs
- Constants.cs
- CLSCompliantAttribute.cs
- UserControlParser.cs
- BitArray.cs
- HyperLink.cs
- Function.cs
- FixUp.cs
- AttributeCollection.cs
- FontInfo.cs
- SHA384Managed.cs
- WebPartsPersonalizationAuthorization.cs
- Avt.cs
- SocketInformation.cs
- EntityDataSourceStatementEditor.cs
- EntityDataSourceDataSelection.cs
- Block.cs
- BrushConverter.cs
- XmlChildEnumerator.cs
- FlowPosition.cs
- EllipticalNodeOperations.cs
- WindowsHyperlink.cs
- TableLayoutStyle.cs
- HttpWebResponse.cs
- MethodBuilderInstantiation.cs
- StylusPointPropertyInfo.cs
- Vector3DAnimation.cs
- SecurityException.cs
- DesignerDataRelationship.cs
- AnimatedTypeHelpers.cs
- GroupBoxDesigner.cs
- InsufficientMemoryException.cs
- StringStorage.cs
- FrameworkElementAutomationPeer.cs
- EntityConnectionStringBuilder.cs
- DataGridViewSelectedRowCollection.cs
- DiscreteKeyFrames.cs
- FieldToken.cs