Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Media3D / DiffuseMaterial.cs / 1 / DiffuseMaterial.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: 3D diffuse material // // See spec at *** FILL IN LATER *** // // History: // 06/25/2003 : [....] - Created // 01/28/2005 : [....] - Renamed BrushMaterial to DiffuseMaterial // //--------------------------------------------------------------------------- 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 { ////// DiffuseMaterial allows a 2d brush to be used on a 3d model that has been lit /// with a diffuse lighting model /// public sealed partial class DiffuseMaterial : Material { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors ////// Constructs a DiffuseMaterial /// public DiffuseMaterial() { } ////// Constructor that sets the Brush property to "brush" /// /// The new material's brush public DiffuseMaterial(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
- OpCodes.cs
- HashAlgorithm.cs
- RegisteredExpandoAttribute.cs
- TransformConverter.cs
- ConnectionConsumerAttribute.cs
- ManifestResourceInfo.cs
- DataGridViewButtonColumn.cs
- Compress.cs
- WebScriptServiceHost.cs
- WeakReferenceEnumerator.cs
- DataBinding.cs
- RadioButtonPopupAdapter.cs
- SqlConnectionManager.cs
- StateInitializationDesigner.cs
- ShutDownListener.cs
- SecureStringHasher.cs
- StackOverflowException.cs
- DbConnectionPoolIdentity.cs
- X509CertificateCollection.cs
- PlaceHolder.cs
- TraversalRequest.cs
- TypeDependencyAttribute.cs
- XmlEncodedRawTextWriter.cs
- MulticastDelegate.cs
- DirectoryNotFoundException.cs
- FileAuthorizationModule.cs
- WindowsListViewItem.cs
- MenuCommands.cs
- RightsManagementErrorHandler.cs
- ToolboxComponentsCreatingEventArgs.cs
- ProviderCollection.cs
- CustomPopupPlacement.cs
- MediaEntryAttribute.cs
- SmiTypedGetterSetter.cs
- FormViewPageEventArgs.cs
- ToolboxBitmapAttribute.cs
- ElementHostPropertyMap.cs
- SrgsToken.cs
- ExpressionNormalizer.cs
- WebPartTracker.cs
- ZipArchive.cs
- CollectionMarkupSerializer.cs
- MatrixAnimationBase.cs
- BindingExpressionUncommonField.cs
- TripleDESCryptoServiceProvider.cs
- BufferModesCollection.cs
- CodeCastExpression.cs
- DependencySource.cs
- ToolBar.cs
- __Filters.cs
- KnownTypesProvider.cs
- TraceUtils.cs
- TaskForm.cs
- ColorKeyFrameCollection.cs
- HostedTcpTransportManager.cs
- Html32TextWriter.cs
- IPGlobalProperties.cs
- DataRowView.cs
- UrlRoutingModule.cs
- UIAgentAsyncParams.cs
- TemplateNameScope.cs
- ResourceBinder.cs
- ApplicationSecurityManager.cs
- StructuredType.cs
- ButtonColumn.cs
- ListViewItemEventArgs.cs
- MetadataImporterQuotas.cs
- HttpWebResponse.cs
- UIElement3D.cs
- RadioButton.cs
- EntityProviderServices.cs
- Sorting.cs
- TextOutput.cs
- RegexFCD.cs
- TransformGroup.cs
- WindowsFormsHelpers.cs
- Listbox.cs
- SmtpFailedRecipientsException.cs
- ViewBox.cs
- FormsAuthenticationCredentials.cs
- ComponentEvent.cs
- Errors.cs
- WindowsButton.cs
- COAUTHIDENTITY.cs
- CacheRequest.cs
- FunctionImportElement.cs
- SQlBooleanStorage.cs
- NativeMethodsCLR.cs
- GeneralTransform3D.cs
- EventListener.cs
- OracleParameterCollection.cs
- SafeHandle.cs
- StylusPointProperties.cs
- ModifiableIteratorCollection.cs
- ExpressionBuilder.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- GridViewDeleteEventArgs.cs
- EntityException.cs
- EditingCommands.cs
- WebExceptionStatus.cs