Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SEHException.cs
- BindingContext.cs
- EditorPart.cs
- AutomationProperty.cs
- CaseInsensitiveHashCodeProvider.cs
- CodeNamespaceCollection.cs
- RowParagraph.cs
- WebServiceHandlerFactory.cs
- FilterableData.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- PopOutPanel.cs
- Transform3D.cs
- DetailsViewRowCollection.cs
- TemplateNameScope.cs
- TickBar.cs
- SoapTypeAttribute.cs
- ConfigurationValidatorBase.cs
- DisplayInformation.cs
- GridViewColumnCollectionChangedEventArgs.cs
- TokenBasedSet.cs
- ListParaClient.cs
- GeometryValueSerializer.cs
- HasCopySemanticsAttribute.cs
- ReadOnlyCollectionBase.cs
- Site.cs
- CodeCastExpression.cs
- XmlChildNodes.cs
- PerformanceCounterPermissionEntryCollection.cs
- DecoderNLS.cs
- HtmlWindow.cs
- AuthenticationServiceManager.cs
- Types.cs
- ISFClipboardData.cs
- ListViewCommandEventArgs.cs
- TextTrailingWordEllipsis.cs
- XmlSchemaSimpleContentRestriction.cs
- RunWorkerCompletedEventArgs.cs
- CallContext.cs
- DataGridCaption.cs
- BitmapEffectInputData.cs
- SystemIPv6InterfaceProperties.cs
- Animatable.cs
- SafeUserTokenHandle.cs
- AutomationPropertyInfo.cs
- AutomationProperties.cs
- ZipArchive.cs
- Int32.cs
- LinkedList.cs
- Menu.cs
- Boolean.cs
- EditorBrowsableAttribute.cs
- XPathParser.cs
- ResourcesBuildProvider.cs
- SplitterPanel.cs
- ResourceDescriptionAttribute.cs
- PageRanges.cs
- IntSecurity.cs
- SafeNativeMemoryHandle.cs
- TranslateTransform3D.cs
- HighlightComponent.cs
- EnumerableRowCollectionExtensions.cs
- SharedPerformanceCounter.cs
- GradientStop.cs
- XmlAttributeCollection.cs
- LinqDataSourceHelper.cs
- DataControlImageButton.cs
- Grid.cs
- ObjectDataProvider.cs
- PageEventArgs.cs
- ValidateNames.cs
- hwndwrapper.cs
- FreezableDefaultValueFactory.cs
- CreateRefExpr.cs
- DatatypeImplementation.cs
- AsynchronousChannelMergeEnumerator.cs
- Keyboard.cs
- DataException.cs
- AsyncPostBackTrigger.cs
- XmlNavigatorStack.cs
- FrameworkTextComposition.cs
- MbpInfo.cs
- IFlowDocumentViewer.cs
- SetterBaseCollection.cs
- Invariant.cs
- FontDifferentiator.cs
- Line.cs
- log.cs
- NamespaceEmitter.cs
- DiffuseMaterial.cs
- LexicalChunk.cs
- InputMethodStateChangeEventArgs.cs
- BuilderElements.cs
- ImageCodecInfo.cs
- LocatorManager.cs
- UriScheme.cs
- VersionPair.cs
- Vector3DConverter.cs
- EventProperty.cs
- input.cs
- XmlILOptimizerVisitor.cs