Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / 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 : t-gregr - Created // 01/28/2005 : jordanpa - 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. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: 3D diffuse material // // See spec at *** FILL IN LATER *** // // History: // 06/25/2003 : t-gregr - Created // 01/28/2005 : jordanpa - 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
- SQLRoleProvider.cs
- PropertyTabAttribute.cs
- Italic.cs
- TemplateManager.cs
- ContractBase.cs
- SizeAnimation.cs
- AnnotationAuthorChangedEventArgs.cs
- ImageConverter.cs
- ReceiveCompletedEventArgs.cs
- ConfigsHelper.cs
- ReflectTypeDescriptionProvider.cs
- NopReturnReader.cs
- SequentialUshortCollection.cs
- MDIControlStrip.cs
- PrintPreviewGraphics.cs
- CodeEntryPointMethod.cs
- Baml2006Reader.cs
- PageMediaSize.cs
- LinkLabel.cs
- CodeDelegateInvokeExpression.cs
- TextCompositionEventArgs.cs
- InstancePersistenceException.cs
- StreamMarshaler.cs
- FileSecurity.cs
- RefType.cs
- RotateTransform.cs
- IgnoreDeviceFilterElement.cs
- Helpers.cs
- SpecialFolderEnumConverter.cs
- LogWriteRestartAreaAsyncResult.cs
- DictionaryMarkupSerializer.cs
- HybridDictionary.cs
- ValidationErrorEventArgs.cs
- DefaultBinder.cs
- XsltSettings.cs
- InternalsVisibleToAttribute.cs
- SystemColors.cs
- NamespaceDecl.cs
- UInt16Storage.cs
- SinglePageViewer.cs
- CommentGlyph.cs
- ErrorTableItemStyle.cs
- ReflectionPermission.cs
- UniqueID.cs
- LineBreak.cs
- WindowsPrincipal.cs
- CompilerTypeWithParams.cs
- PanelContainerDesigner.cs
- Size3DConverter.cs
- HttpRuntime.cs
- TypeDelegator.cs
- FlowStep.cs
- DataRowChangeEvent.cs
- DeploymentExceptionMapper.cs
- NativeMethods.cs
- SmtpReplyReader.cs
- LoadGrammarCompletedEventArgs.cs
- TextDecorationUnitValidation.cs
- XmlDataContract.cs
- ExtenderProvidedPropertyAttribute.cs
- IdSpace.cs
- WebFormsRootDesigner.cs
- LinqDataSourceStatusEventArgs.cs
- InvalidEnumArgumentException.cs
- Facet.cs
- ColorPalette.cs
- path.cs
- SimpleHandlerBuildProvider.cs
- SimpleHandlerBuildProvider.cs
- AnnotationAdorner.cs
- TextElement.cs
- EntityDataSourceDataSelection.cs
- DataGridViewButtonCell.cs
- Int32CAMarshaler.cs
- ZipIOLocalFileBlock.cs
- ImageMetadata.cs
- RegexMatch.cs
- ObjectMemberMapping.cs
- Queue.cs
- SymmetricAlgorithm.cs
- StateBag.cs
- PerspectiveCamera.cs
- WeakHashtable.cs
- MouseGestureConverter.cs
- BamlRecordHelper.cs
- QueryMatcher.cs
- Timer.cs
- SerializationStore.cs
- ConfigurationPropertyAttribute.cs
- HotSpot.cs
- DataServiceQueryProvider.cs
- WebConfigurationHostFileChange.cs
- EventWaitHandleSecurity.cs
- KerberosTicketHashIdentifierClause.cs
- DispatcherOperation.cs
- SessionPageStateSection.cs
- SharedStatics.cs
- HttpServerVarsCollection.cs
- XPathNodeInfoAtom.cs
- ScrollChangedEventArgs.cs