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 / PointLight.cs / 1 / 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
- CultureData.cs
- ConditionalAttribute.cs
- PropertyDescriptor.cs
- DataStorage.cs
- DesignTimeTemplateParser.cs
- LocationInfo.cs
- BevelBitmapEffect.cs
- BackgroundWorker.cs
- PropertyDescriptorGridEntry.cs
- LoginView.cs
- TemplatedAdorner.cs
- util.cs
- Positioning.cs
- SuppressIldasmAttribute.cs
- XmlMemberMapping.cs
- SafeSecurityHelper.cs
- sitestring.cs
- MobileControlsSectionHandler.cs
- StatusBar.cs
- XmlSchemaType.cs
- ObjectResult.cs
- DatatypeImplementation.cs
- ClockController.cs
- DataRecordInfo.cs
- HitTestFilterBehavior.cs
- log.cs
- ConfigurationPropertyAttribute.cs
- ColorAnimationUsingKeyFrames.cs
- SerializationInfoEnumerator.cs
- KeysConverter.cs
- _RequestCacheProtocol.cs
- _ListenerAsyncResult.cs
- XamlHostingConfiguration.cs
- ButtonFieldBase.cs
- SiteMembershipCondition.cs
- DesignerDataSourceView.cs
- ConnectionManagementElementCollection.cs
- Timeline.cs
- CompiledRegexRunner.cs
- TemporaryBitmapFile.cs
- RenderDataDrawingContext.cs
- PolicyUtility.cs
- DropTarget.cs
- MinMaxParagraphWidth.cs
- ProfessionalColorTable.cs
- FormViewDeletedEventArgs.cs
- EmptyReadOnlyDictionaryInternal.cs
- wgx_exports.cs
- RemoteWebConfigurationHost.cs
- TextRangeBase.cs
- TraceFilter.cs
- BigInt.cs
- RegexFCD.cs
- ASCIIEncoding.cs
- GuidelineSet.cs
- DataGridTableCollection.cs
- LineMetrics.cs
- BindableAttribute.cs
- PolyLineSegmentFigureLogic.cs
- InvalidAsynchronousStateException.cs
- Aggregates.cs
- FormViewDeleteEventArgs.cs
- TreeView.cs
- VariantWrapper.cs
- DesignerPainter.cs
- MenuCommand.cs
- SimpleType.cs
- BevelBitmapEffect.cs
- BinaryReader.cs
- TextServicesCompartment.cs
- BoolExpression.cs
- Debug.cs
- ReferencedCollectionType.cs
- WindowVisualStateTracker.cs
- xml.cs
- BoolExpr.cs
- SchemaSetCompiler.cs
- SoapAttributeAttribute.cs
- KeyboardNavigation.cs
- WebDisplayNameAttribute.cs
- XmlAutoDetectWriter.cs
- FrugalList.cs
- DotExpr.cs
- TripleDES.cs
- ActivityMarkupSerializationProvider.cs
- GroupBox.cs
- SynchronizationLockException.cs
- EntityCommand.cs
- BookmarkManager.cs
- GroupBoxRenderer.cs
- EmptyControlCollection.cs
- DrawingCollection.cs
- ValidatorCompatibilityHelper.cs
- DataGridLinkButton.cs
- Scene3D.cs
- ErrorBehavior.cs
- ManualResetEvent.cs
- AndCondition.cs
- WebSysDefaultValueAttribute.cs
- ListParagraph.cs