Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- GeometryCollection.cs
- StreamHelper.cs
- WindowCollection.cs
- FactoryGenerator.cs
- XPathNodeHelper.cs
- XmlSchemaSimpleType.cs
- DataSourceSelectArguments.cs
- SystemDropShadowChrome.cs
- Hashtable.cs
- NamedObject.cs
- StringFreezingAttribute.cs
- SamlAudienceRestrictionCondition.cs
- ZipIOExtraFieldPaddingElement.cs
- ValueHandle.cs
- StateDesigner.Helpers.cs
- ProcessExitedException.cs
- DBCommandBuilder.cs
- SQLConvert.cs
- ContextToken.cs
- Model3DGroup.cs
- AsymmetricCryptoHandle.cs
- ExpressionLexer.cs
- InvokeHandlers.cs
- SubqueryRules.cs
- ScrollBarRenderer.cs
- Visual3D.cs
- MatrixTransform3D.cs
- ProfileSection.cs
- SchemaAttDef.cs
- AnnotationComponentManager.cs
- assertwrapper.cs
- SpeechDetectedEventArgs.cs
- AutomationElementCollection.cs
- TreeView.cs
- DescriptionCreator.cs
- InsufficientMemoryException.cs
- RtfToken.cs
- assertwrapper.cs
- ScrollBarRenderer.cs
- WebResourceUtil.cs
- _LazyAsyncResult.cs
- RightsManagementPermission.cs
- MimeMapping.cs
- TagMapCollection.cs
- SetStoryboardSpeedRatio.cs
- DefaultObjectMappingItemCollection.cs
- Transform.cs
- ConnectionStringSettings.cs
- CachingHintValidation.cs
- ResourceLoader.cs
- NoneExcludedImageIndexConverter.cs
- TimeoutValidationAttribute.cs
- RepeaterItem.cs
- PeerApplication.cs
- DecoderFallbackWithFailureFlag.cs
- ComponentSerializationService.cs
- Button.cs
- Paragraph.cs
- ComboBoxAutomationPeer.cs
- ResourceDescriptionAttribute.cs
- DebugInfoExpression.cs
- EntityDataReader.cs
- TypeDescriptor.cs
- StaticResourceExtension.cs
- UTF7Encoding.cs
- UIElementPropertyUndoUnit.cs
- PropertyGridEditorPart.cs
- RuntimeWrappedException.cs
- WebPartConnectionsConnectVerb.cs
- VectorAnimationUsingKeyFrames.cs
- DbConnectionOptions.cs
- XamlSerializer.cs
- InputLangChangeRequestEvent.cs
- ACE.cs
- DLinqDataModelProvider.cs
- HMAC.cs
- FileNameEditor.cs
- FontNamesConverter.cs
- ObjRef.cs
- DateTimeUtil.cs
- HtmlEncodedRawTextWriter.cs
- PropertyRecord.cs
- CodeAttributeArgument.cs
- ExpandedProjectionNode.cs
- ParallelForEach.cs
- HttpWriter.cs
- DependencyPropertyChangedEventArgs.cs
- QueueProcessor.cs
- SocketInformation.cs
- CharEntityEncoderFallback.cs
- CodePageEncoding.cs
- TextRenderer.cs
- WaitingCursor.cs
- ObjectStateFormatter.cs
- NavigationPropertySingletonExpression.cs
- OperationAbortedException.cs
- Brushes.cs
- TextFormatterHost.cs
- ObjectQueryExecutionPlan.cs
- DictionaryManager.cs