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
- SecurityTokenTypes.cs
- InputDevice.cs
- QueryOutputWriter.cs
- PeerContact.cs
- StrongNameKeyPair.cs
- RowUpdatedEventArgs.cs
- ScriptRef.cs
- XmlDeclaration.cs
- Bidi.cs
- SynchronizedInputProviderWrapper.cs
- PropertyInformation.cs
- PaintEvent.cs
- LinqDataSourceInsertEventArgs.cs
- BulletDecorator.cs
- Configuration.cs
- HttpsTransportBindingElement.cs
- SqlCommand.cs
- RtfToXamlReader.cs
- ClaimSet.cs
- TraceSource.cs
- HwndTarget.cs
- MergePropertyDescriptor.cs
- WebPartConnection.cs
- DirectoryNotFoundException.cs
- XPathAxisIterator.cs
- TextBoxRenderer.cs
- GridItemPatternIdentifiers.cs
- SerializationAttributes.cs
- StringToken.cs
- XPathNodeList.cs
- ConfigurationValidatorAttribute.cs
- CellCreator.cs
- EntitySetBase.cs
- RuleRef.cs
- Confirm.cs
- BrowserCapabilitiesCodeGenerator.cs
- CollectionConverter.cs
- ActionMessageFilter.cs
- __Error.cs
- ThousandthOfEmRealDoubles.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- ObjectQueryState.cs
- GenerateTemporaryAssemblyTask.cs
- WindowsGraphicsWrapper.cs
- SettingsContext.cs
- PropertyGridView.cs
- RequestQueryProcessor.cs
- initElementDictionary.cs
- EditorAttribute.cs
- PolicyManager.cs
- SqlCommandBuilder.cs
- CopyOnWriteList.cs
- PrivilegedConfigurationManager.cs
- Script.cs
- SecureUICommand.cs
- XappLauncher.cs
- InvalidPropValue.cs
- ConnectionConsumerAttribute.cs
- CustomGrammar.cs
- SiteMapDataSourceDesigner.cs
- DataGrid.cs
- CodeExporter.cs
- MailWebEventProvider.cs
- ToolboxItemCollection.cs
- DbXmlEnabledProviderManifest.cs
- ScrollProperties.cs
- RoutedEventConverter.cs
- SignedInfo.cs
- JoinSymbol.cs
- DebugView.cs
- XMLSyntaxException.cs
- ReaderWriterLock.cs
- ShaderEffect.cs
- AppDomainManager.cs
- AutomationElementIdentifiers.cs
- DependencyObject.cs
- BitmapVisualManager.cs
- Configuration.cs
- XmlSerializerFactory.cs
- ResourceExpressionBuilder.cs
- StateChangeEvent.cs
- ListItemParagraph.cs
- FormatConvertedBitmap.cs
- AnnotationService.cs
- SplitContainerDesigner.cs
- ReflectTypeDescriptionProvider.cs
- CaseInsensitiveComparer.cs
- QilFunction.cs
- Symbol.cs
- _HTTPDateParse.cs
- WebPartEditorCancelVerb.cs
- ReaderWriterLockWrapper.cs
- TdsParserHelperClasses.cs
- PowerStatus.cs
- EncodingFallbackAwareXmlTextWriter.cs
- ConfigurationSchemaErrors.cs
- WSHttpBindingCollectionElement.cs
- DataGridCommandEventArgs.cs
- SparseMemoryStream.cs
- altserialization.cs