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 / 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
- Page.cs
- GraphicsPathIterator.cs
- CacheEntry.cs
- ViewStateChangedEventArgs.cs
- XsltArgumentList.cs
- AdapterUtil.cs
- WmlPanelAdapter.cs
- precedingsibling.cs
- DataRecord.cs
- XmlSchemaSubstitutionGroup.cs
- Hash.cs
- UrlMappingsSection.cs
- BaseCAMarshaler.cs
- ListViewSelectEventArgs.cs
- OpenFileDialog.cs
- FullTextState.cs
- RIPEMD160Managed.cs
- ComplexPropertyEntry.cs
- Panel.cs
- CommonObjectSecurity.cs
- SoapConverter.cs
- Registration.cs
- TextSpanModifier.cs
- Configuration.cs
- RIPEMD160.cs
- AdapterDictionary.cs
- CookieProtection.cs
- XPathCompileException.cs
- MouseBinding.cs
- KernelTypeValidation.cs
- CustomTypeDescriptor.cs
- NameObjectCollectionBase.cs
- HttpCapabilitiesSectionHandler.cs
- HelpPage.cs
- SchemaManager.cs
- GlobalEventManager.cs
- DirectionalAction.cs
- ProviderException.cs
- SchemaObjectWriter.cs
- Form.cs
- ArrayList.cs
- ApplicationSettingsBase.cs
- ProfileSettingsCollection.cs
- CommandConverter.cs
- InputProviderSite.cs
- NativeMethods.cs
- FontDifferentiator.cs
- AutomationProperties.cs
- CodeDelegateInvokeExpression.cs
- EntityFrameworkVersions.cs
- SemanticBasicElement.cs
- DifferencingCollection.cs
- QuestionEventArgs.cs
- clipboard.cs
- ForEachAction.cs
- UpdateTracker.cs
- DelegatingConfigHost.cs
- DataBindingList.cs
- complextypematerializer.cs
- WebPartRestoreVerb.cs
- columnmapkeybuilder.cs
- UniformGrid.cs
- ADConnectionHelper.cs
- EllipseGeometry.cs
- DrawingImage.cs
- BezierSegment.cs
- WebPartZoneDesigner.cs
- GetReadStreamResult.cs
- _BaseOverlappedAsyncResult.cs
- FontEditor.cs
- Serializer.cs
- HostingEnvironment.cs
- SoapCodeExporter.cs
- ArrayExtension.cs
- Button.cs
- UnaryNode.cs
- SettingsSection.cs
- AnyReturnReader.cs
- FontFamilyConverter.cs
- AnnotationService.cs
- CustomValidator.cs
- Single.cs
- DictionaryItemsCollection.cs
- SafeFileMappingHandle.cs
- InnerItemCollectionView.cs
- AuthenticatedStream.cs
- TextCompositionManager.cs
- ObjectItemCachedAssemblyLoader.cs
- hebrewshape.cs
- ArraySegment.cs
- ThrowHelper.cs
- HtmlElement.cs
- SinglePhaseEnlistment.cs
- TextElementEnumerator.cs
- OLEDB_Enum.cs
- SvcMapFileLoader.cs
- AttachedPropertyBrowsableAttribute.cs
- Model3DCollection.cs
- IssuanceLicense.cs
- IdentifierService.cs