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 / EmissiveMaterial.cs / 1 / EmissiveMaterial.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: 3D emissive material // // See spec at *** FILL IN LATER *** // //--------------------------------------------------------------------------- using System; using System.Diagnostics; using System.Runtime.InteropServices; using System.Windows.Markup; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Media.Composition; using MS.Internal; namespace System.Windows.Media.Media3D { ////// EmissiveMaterial allows a 2d brush to be used on a 3d model that has been lit /// as if it were emitting light equal to the color of the brush /// public sealed partial class EmissiveMaterial : Material { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors ////// Constructs a EmissiveMaterial /// public EmissiveMaterial() { } ////// Constructor that sets the Brush property to "brush" /// /// The new material's brush public EmissiveMaterial(Brush brush) { Brush = brush; } #endregion Constructors internal override bool PreCompute() { _requiresRealization = Material.PreCompute(Brush); return _requiresRealization; } internal override void UpdateRealizations( RealizationContext ctx, ref Rect bounds ) { Debug.Assert(_requiresRealization); Material.UpdateRealizations(Brush, ctx, ref bounds); } internal override bool RequiresRealization { get { return _requiresRealization; } } //------------------------------------------------------ // // Private Fields // //----------------------------------------------------- #region Private Fields private bool _requiresRealization = false; #endregion 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 emissive material // // See spec at *** FILL IN LATER *** // //--------------------------------------------------------------------------- using System; using System.Diagnostics; using System.Runtime.InteropServices; using System.Windows.Markup; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Media.Composition; using MS.Internal; namespace System.Windows.Media.Media3D { ////// EmissiveMaterial allows a 2d brush to be used on a 3d model that has been lit /// as if it were emitting light equal to the color of the brush /// public sealed partial class EmissiveMaterial : Material { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors ////// Constructs a EmissiveMaterial /// public EmissiveMaterial() { } ////// Constructor that sets the Brush property to "brush" /// /// The new material's brush public EmissiveMaterial(Brush brush) { Brush = brush; } #endregion Constructors internal override bool PreCompute() { _requiresRealization = Material.PreCompute(Brush); return _requiresRealization; } internal override void UpdateRealizations( RealizationContext ctx, ref Rect bounds ) { Debug.Assert(_requiresRealization); Material.UpdateRealizations(Brush, ctx, ref bounds); } internal override bool RequiresRealization { get { return _requiresRealization; } } //------------------------------------------------------ // // Private Fields // //----------------------------------------------------- #region Private Fields private bool _requiresRealization = false; #endregion 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
- XmlAggregates.cs
- DescendentsWalker.cs
- ProjectedSlot.cs
- SeekStoryboard.cs
- DataGridAddNewRow.cs
- ClientScriptItem.cs
- unitconverter.cs
- Models.cs
- ConstraintStruct.cs
- AllMembershipCondition.cs
- CryptoHelper.cs
- TabControl.cs
- Guid.cs
- SymbolMethod.cs
- BuildProvider.cs
- Internal.cs
- Glyph.cs
- CultureInfoConverter.cs
- XmlSchemaIdentityConstraint.cs
- Axis.cs
- RC2CryptoServiceProvider.cs
- EntityContainerEmitter.cs
- TiffBitmapDecoder.cs
- EntityDataSourceDesigner.cs
- ConstantSlot.cs
- SQLInt32.cs
- AppDomainProtocolHandler.cs
- Stream.cs
- MembershipValidatePasswordEventArgs.cs
- CryptoProvider.cs
- FlowNode.cs
- XpsStructure.cs
- PageThemeBuildProvider.cs
- sqlpipe.cs
- PropertyMappingExceptionEventArgs.cs
- Overlapped.cs
- CaseStatementSlot.cs
- VisualStateGroup.cs
- unsafenativemethodsother.cs
- ObjectToIdCache.cs
- FixedBufferAttribute.cs
- DataMisalignedException.cs
- FixedFlowMap.cs
- RangeValidator.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- Utils.cs
- WebBrowserBase.cs
- ToolStripContainer.cs
- ModelVisual3D.cs
- ObjectManager.cs
- SecurityContext.cs
- StrongNameMembershipCondition.cs
- PointCollectionConverter.cs
- ProcessProtocolHandler.cs
- RemoteHelper.cs
- EntityType.cs
- DispatcherFrame.cs
- PageParserFilter.cs
- XmlRawWriterWrapper.cs
- RegexCompiler.cs
- ItemCollection.cs
- DoubleConverter.cs
- IntSecurity.cs
- GroupDescription.cs
- Hash.cs
- RecordConverter.cs
- ListView.cs
- MarkupExtensionReturnTypeAttribute.cs
- Metadata.cs
- DefaultSection.cs
- AutomationElement.cs
- TimeoutHelper.cs
- SpecularMaterial.cs
- CommonDialog.cs
- HandlerMappingMemo.cs
- DeviceSpecificDesigner.cs
- XpsS0ValidatingLoader.cs
- CompiledIdentityConstraint.cs
- ElementHost.cs
- SymmetricSecurityProtocol.cs
- Stylesheet.cs
- ToolStripItemDesigner.cs
- PageCatalogPart.cs
- BulletChrome.cs
- StructuredTypeEmitter.cs
- WebPartCollection.cs
- OperationDescriptionCollection.cs
- ApplicationTrust.cs
- GroupBox.cs
- ADConnectionHelper.cs
- CollectionViewGroup.cs
- SyndicationSerializer.cs
- EdmType.cs
- MenuRendererClassic.cs
- TextTreeRootNode.cs
- HtmlLabelAdapter.cs
- AuthenticateEventArgs.cs
- Selection.cs
- ArgIterator.cs
- AssociationTypeEmitter.cs