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
- LassoSelectionBehavior.cs
- _AcceptOverlappedAsyncResult.cs
- TaiwanLunisolarCalendar.cs
- HostProtectionException.cs
- SchemaImporter.cs
- ConsoleCancelEventArgs.cs
- SystemIPInterfaceProperties.cs
- InkCanvasInnerCanvas.cs
- QueryTaskGroupState.cs
- NativeMethods.cs
- WebPartConnectionsCancelEventArgs.cs
- DataRelationPropertyDescriptor.cs
- DelegatingConfigHost.cs
- SHA1Managed.cs
- DataTrigger.cs
- ScopeElement.cs
- QilReference.cs
- TextEditorTables.cs
- EndpointAddressMessageFilterTable.cs
- JsonFormatReaderGenerator.cs
- AtomParser.cs
- SqlFacetAttribute.cs
- QueryableDataSourceHelper.cs
- PageBreakRecord.cs
- NextPreviousPagerField.cs
- DataContractSerializerSection.cs
- DateTimeOffsetStorage.cs
- TransformerConfigurationWizardBase.cs
- SQLDateTime.cs
- DynamicObjectAccessor.cs
- CornerRadius.cs
- SvcFileManager.cs
- OutputCacheProfile.cs
- UnsafeNativeMethods.cs
- TcpHostedTransportConfiguration.cs
- IdSpace.cs
- Int16Converter.cs
- EncoderBestFitFallback.cs
- TransformGroup.cs
- GlobalizationAssembly.cs
- AnnotationAuthorChangedEventArgs.cs
- TargetFrameworkAttribute.cs
- ChildDocumentBlock.cs
- PerformanceCounterLib.cs
- Utils.cs
- Vars.cs
- MethodCallTranslator.cs
- TextBoxBase.cs
- ResponseStream.cs
- NestedContainer.cs
- MailMessageEventArgs.cs
- MasterPageCodeDomTreeGenerator.cs
- NestedContainer.cs
- ColumnMapTranslator.cs
- Utils.cs
- NamedObjectList.cs
- MaskPropertyEditor.cs
- HeaderUtility.cs
- ValidationHelper.cs
- TimeoutException.cs
- XmlSchemaImporter.cs
- Mapping.cs
- ResourceDescriptionAttribute.cs
- TextPenaltyModule.cs
- TextControl.cs
- _Connection.cs
- StackSpiller.Bindings.cs
- ListBoxItemWrapperAutomationPeer.cs
- WorkflowMarkupSerializer.cs
- CanonicalFontFamilyReference.cs
- RecordsAffectedEventArgs.cs
- Queue.cs
- CodeTypeDeclarationCollection.cs
- VisualBrush.cs
- XmlNamespaceManager.cs
- DescendantOverDescendantQuery.cs
- RetriableClipboard.cs
- MessagePartProtectionMode.cs
- ReferenceConverter.cs
- CacheOutputQuery.cs
- FunctionNode.cs
- DbDataRecord.cs
- NotCondition.cs
- PeerMessageDispatcher.cs
- Pool.cs
- CodeDesigner.cs
- SqlRewriteScalarSubqueries.cs
- CodeDomLoader.cs
- XmlnsDictionary.cs
- LineInfo.cs
- CompositionCommandSet.cs
- DataListItemEventArgs.cs
- RightNameExpirationInfoPair.cs
- ObjectStateManager.cs
- SmtpReplyReader.cs
- BamlLocalizableResourceKey.cs
- LayoutUtils.cs
- OdbcCommand.cs
- DataGridBeginningEditEventArgs.cs
- XmlSchemaSimpleContent.cs