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
- ListItemParagraph.cs
- WebServiceClientProxyGenerator.cs
- BooleanAnimationBase.cs
- StorageConditionPropertyMapping.cs
- Set.cs
- InternalsVisibleToAttribute.cs
- HttpDictionary.cs
- BinaryFormatter.cs
- SQLBinaryStorage.cs
- JoinGraph.cs
- ReachSerializerAsync.cs
- NativeMethods.cs
- DesignerActionTextItem.cs
- TransformConverter.cs
- BinaryConverter.cs
- MultipartIdentifier.cs
- CustomAttribute.cs
- WebHttpEndpointElement.cs
- SyntaxCheck.cs
- SoapExtensionTypeElement.cs
- XmlSchemaGroup.cs
- SafeRegistryHandle.cs
- BuildProvider.cs
- StreamGeometryContext.cs
- ManipulationDelta.cs
- CaseInsensitiveOrdinalStringComparer.cs
- ProcessHostServerConfig.cs
- ServiceManager.cs
- ZipIOExtraFieldPaddingElement.cs
- PasswordTextContainer.cs
- SqlIdentifier.cs
- ByteKeyFrameCollection.cs
- PeerContact.cs
- AssemblyCache.cs
- SchemaHelper.cs
- QuaternionConverter.cs
- HybridDictionary.cs
- RowBinding.cs
- SharedPersonalizationStateInfo.cs
- DataServiceProcessingPipelineEventArgs.cs
- AssertSection.cs
- MenuItemCollectionEditorDialog.cs
- DbProviderFactories.cs
- TreeNodeCollection.cs
- FileSecurity.cs
- RouteValueDictionary.cs
- DescendantOverDescendantQuery.cs
- WebPartEditVerb.cs
- ComboBoxItem.cs
- Filter.cs
- VectorKeyFrameCollection.cs
- FillErrorEventArgs.cs
- DataGridViewSelectedRowCollection.cs
- ExtensionWindow.cs
- FixedDocumentPaginator.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- ApplicationManager.cs
- DtrList.cs
- FrameworkContextData.cs
- AndCondition.cs
- CodeGotoStatement.cs
- _ServiceNameStore.cs
- COMException.cs
- DictionaryItemsCollection.cs
- PermissionAttributes.cs
- EncryptedKey.cs
- LinqDataSourceInsertEventArgs.cs
- ChangesetResponse.cs
- DataListCommandEventArgs.cs
- SecurityTokenParametersEnumerable.cs
- ConfigurationProperty.cs
- AtomMaterializer.cs
- DetailsViewRowCollection.cs
- XPathDocumentNavigator.cs
- StrokeSerializer.cs
- DrawingState.cs
- StagingAreaInputItem.cs
- RecognizedPhrase.cs
- Int64.cs
- ServiceModelEnumValidator.cs
- CopyAction.cs
- ViewLoader.cs
- AnnotationHighlightLayer.cs
- DocumentGridPage.cs
- ObjectConverter.cs
- WebPartsSection.cs
- ExpressionDumper.cs
- dbdatarecord.cs
- DrawingGroupDrawingContext.cs
- xmlsaver.cs
- SafeNativeMethods.cs
- DataControlPagerLinkButton.cs
- ProtocolElementCollection.cs
- PartialArray.cs
- IndentTextWriter.cs
- DrawingVisual.cs
- MarkerProperties.cs
- FlowDocumentScrollViewer.cs
- ButtonBase.cs
- SendMailErrorEventArgs.cs