Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- MachineKeyConverter.cs
- FocusWithinProperty.cs
- SettingsPropertyNotFoundException.cs
- XmlParserContext.cs
- PathSegmentCollection.cs
- Transform.cs
- XmlDataProvider.cs
- ToolStripStatusLabel.cs
- Compiler.cs
- Pair.cs
- MessagePropertyFilter.cs
- WebPartManager.cs
- XmlUrlResolver.cs
- XsdBuildProvider.cs
- TCPClient.cs
- GestureRecognitionResult.cs
- CodeIdentifier.cs
- DataRowExtensions.cs
- PersonalizationDictionary.cs
- SelectionItemPattern.cs
- PieceDirectory.cs
- HttpDictionary.cs
- DefaultBinder.cs
- ExtendedPropertyInfo.cs
- ContainerActivationHelper.cs
- SrgsGrammarCompiler.cs
- ControlType.cs
- RuleSetBrowserDialog.cs
- NameSpaceExtractor.cs
- RelationshipDetailsCollection.cs
- SerializationIncompleteException.cs
- CompilationUnit.cs
- GetPageNumberCompletedEventArgs.cs
- CustomValidator.cs
- BinarySerializer.cs
- CompensateDesigner.cs
- StringHandle.cs
- TypeSystemHelpers.cs
- SystemColorTracker.cs
- AutomationElementIdentifiers.cs
- OdbcHandle.cs
- RestHandlerFactory.cs
- DeclaredTypeElement.cs
- ConfigurationException.cs
- MarkupCompilePass2.cs
- ServicePointManagerElement.cs
- XmlSortKey.cs
- HashAlgorithm.cs
- HttpListenerPrefixCollection.cs
- WhitespaceRuleReader.cs
- RetrieveVirtualItemEventArgs.cs
- ListenerServiceInstallComponent.cs
- CommandHelpers.cs
- FontFaceLayoutInfo.cs
- ImageButton.cs
- SqlPersonalizationProvider.cs
- GlyphElement.cs
- BamlLocalizableResource.cs
- SimpleTypeResolver.cs
- FormViewInsertedEventArgs.cs
- ComPlusSynchronizationContext.cs
- StringBlob.cs
- UndoManager.cs
- Collection.cs
- Win32Exception.cs
- CorrelationManager.cs
- GenerateTemporaryTargetAssembly.cs
- IgnoreFileBuildProvider.cs
- util.cs
- Events.cs
- BackgroundFormatInfo.cs
- QueryTask.cs
- AsymmetricKeyExchangeDeformatter.cs
- MemberAssignmentAnalysis.cs
- RenamedEventArgs.cs
- FunctionImportElement.cs
- ImageListDesigner.cs
- SecurityPolicySection.cs
- EntityDataSourceViewSchema.cs
- VirtualizedItemPattern.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- AttributeTableBuilder.cs
- TraceSwitch.cs
- IisTraceWebEventProvider.cs
- DoubleSumAggregationOperator.cs
- ToolStripPanelCell.cs
- RectangleConverter.cs
- ItemsPanelTemplate.cs
- WebPartDisplayModeCancelEventArgs.cs
- SqlExpressionNullability.cs
- DataSourceView.cs
- ValidationErrorCollection.cs
- XmlStringTable.cs
- RelationshipType.cs
- WebBrowserEvent.cs
- EntityDataSourceChangingEventArgs.cs
- ByteStreamGeometryContext.cs
- TemplatedAdorner.cs
- Int16AnimationBase.cs
- HelloOperationAsyncResult.cs