Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media3D / PointLight.cs / 1305600 / PointLight.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: 3D positional light implementation. // // See spec at http://avalon/medialayer/Specifications/Avalon3D%20API%20Spec.mht // // History: // 06/25/2003 : t-gregr - Created // //--------------------------------------------------------------------------- using System; using System.Diagnostics; 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 { ////// Positional lights have a position in space and project their light in all directions. /// The falloff of the light is controlled by attenuation and range properties. /// public sealed partial class PointLight : PointLightBase { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors ////// Default constructor that creates a white PointLight at the origin. /// public PointLight() {} ////// Constructor. /// /// Diffuse color for the new positional light. /// Position of the new positional light. public PointLight(Color diffuseColor, Point3D position) : this() { // Set PointLightBase properties Color = diffuseColor; Position = position; } #endregion Constructors //------------------------------------------------------ // // 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 positional light implementation. // // See spec at http://avalon/medialayer/Specifications/Avalon3D%20API%20Spec.mht // // History: // 06/25/2003 : t-gregr - Created // //--------------------------------------------------------------------------- using System; using System.Diagnostics; 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 { ////// Positional lights have a position in space and project their light in all directions. /// The falloff of the light is controlled by attenuation and range properties. /// public sealed partial class PointLight : PointLightBase { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors ////// Default constructor that creates a white PointLight at the origin. /// public PointLight() {} ////// Constructor. /// /// Diffuse color for the new positional light. /// Position of the new positional light. public PointLight(Color diffuseColor, Point3D position) : this() { // Set PointLightBase properties Color = diffuseColor; Position = position; } #endregion Constructors //------------------------------------------------------ // // 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
- HeaderedItemsControl.cs
- DispatcherProcessingDisabled.cs
- SqlRemoveConstantOrderBy.cs
- ContextMenuAutomationPeer.cs
- VisualStyleRenderer.cs
- OleDbInfoMessageEvent.cs
- InkCanvasAutomationPeer.cs
- InputLangChangeRequestEvent.cs
- DesignerAdapterAttribute.cs
- CharacterBuffer.cs
- JsonServiceDocumentSerializer.cs
- NumericUpDownAcceleration.cs
- Internal.cs
- Helpers.cs
- ListSourceHelper.cs
- TableLayoutColumnStyleCollection.cs
- EventHandlerList.cs
- LOSFormatter.cs
- ObjectListShowCommandsEventArgs.cs
- HandlerBase.cs
- ToolBarButton.cs
- IssuedSecurityTokenParameters.cs
- ExclusiveTcpListener.cs
- RequestCache.cs
- RuntimeHandles.cs
- GridPattern.cs
- sortedlist.cs
- GAC.cs
- GeneralTransformGroup.cs
- XslTransformFileEditor.cs
- WindowsFormsLinkLabel.cs
- ComponentCommands.cs
- NumberFormatter.cs
- FullTrustAssembliesSection.cs
- BaseDataBoundControl.cs
- CryptoHelper.cs
- SerializationStore.cs
- DateTimeFormatInfoScanner.cs
- HttpWebRequestElement.cs
- DataGridViewCellCancelEventArgs.cs
- WindowsRebar.cs
- TableRowsCollectionEditor.cs
- SecurityMode.cs
- VirtualPath.cs
- CodeTypeOfExpression.cs
- WebFormDesignerActionService.cs
- ModelTreeEnumerator.cs
- Geometry.cs
- PolyQuadraticBezierSegment.cs
- MouseOverProperty.cs
- BitmapFrame.cs
- ColorConverter.cs
- XmlReaderDelegator.cs
- ArgumentException.cs
- DesignerLabelAdapter.cs
- AvTraceFormat.cs
- Sql8ConformanceChecker.cs
- InstanceKeyNotReadyException.cs
- FixedHighlight.cs
- ParseElementCollection.cs
- CommentAction.cs
- DataGridViewCheckBoxColumn.cs
- CancellationToken.cs
- ArrayWithOffset.cs
- CustomPopupPlacement.cs
- DictionaryMarkupSerializer.cs
- ChildTable.cs
- MD5CryptoServiceProvider.cs
- CollectionViewGroupRoot.cs
- XmlKeywords.cs
- WsatServiceAddress.cs
- GestureRecognizer.cs
- SiteMembershipCondition.cs
- SelectingProviderEventArgs.cs
- SimpleTypeResolver.cs
- TaskFileService.cs
- WebPartTransformerCollection.cs
- HttpSocketManager.cs
- DataContractSerializerOperationGenerator.cs
- WebPartExportVerb.cs
- MSAAWinEventWrap.cs
- InfoCardCryptoHelper.cs
- CommandEventArgs.cs
- FormViewRow.cs
- PlanCompilerUtil.cs
- MonthCalendar.cs
- BindingSource.cs
- Image.cs
- IOThreadTimer.cs
- DropShadowEffect.cs
- PermissionListSet.cs
- TextBoxView.cs
- IndexExpression.cs
- FigureHelper.cs
- SqlProfileProvider.cs
- ConstrainedDataObject.cs
- CheckBoxBaseAdapter.cs
- XmlDataSourceNodeDescriptor.cs
- PipeSecurity.cs
- DefaultTextStoreTextComposition.cs