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
- OpacityConverter.cs
- DecimalStorage.cs
- Request.cs
- OdbcConnectionFactory.cs
- SequenceQuery.cs
- ValidationResult.cs
- PathBox.cs
- _ConnectOverlappedAsyncResult.cs
- BindingFormattingDialog.cs
- FormsAuthenticationModule.cs
- DefaultEvaluationContext.cs
- RandomNumberGenerator.cs
- SessionPageStateSection.cs
- FixedSOMContainer.cs
- VisualBasicDesignerHelper.cs
- XamlFxTrace.cs
- RuleSetCollection.cs
- RectAnimationUsingKeyFrames.cs
- XmlDocumentSchema.cs
- KeyTime.cs
- UpdateTranslator.cs
- NamespaceList.cs
- DataSourceSerializationException.cs
- ToolStripPanelRenderEventArgs.cs
- RSAPKCS1SignatureFormatter.cs
- XPathSingletonIterator.cs
- DisplayMemberTemplateSelector.cs
- CodeArgumentReferenceExpression.cs
- RbTree.cs
- PointHitTestResult.cs
- NetworkInformationException.cs
- PeerTransportListenAddressValidator.cs
- ResourcesBuildProvider.cs
- TypeGenericEnumerableViewSchema.cs
- Set.cs
- Ops.cs
- ControlParser.cs
- HttpVersion.cs
- CodeCatchClauseCollection.cs
- XPathNodeInfoAtom.cs
- CheckedPointers.cs
- CodeDelegateCreateExpression.cs
- PortCache.cs
- ColumnHeader.cs
- ExpressionVisitor.cs
- recordstatefactory.cs
- RowToFieldTransformer.cs
- CollectionConverter.cs
- ServiceProviders.cs
- TableChangeProcessor.cs
- SqlTriggerContext.cs
- FamilyMap.cs
- Int16Animation.cs
- MultipartIdentifier.cs
- LayoutUtils.cs
- SRGSCompiler.cs
- ScrollBarAutomationPeer.cs
- HelpExampleGenerator.cs
- DataGridHeaderBorder.cs
- DataServiceBuildProvider.cs
- CodeSnippetCompileUnit.cs
- RedirectionProxy.cs
- LocationFactory.cs
- DockingAttribute.cs
- DataGridPageChangedEventArgs.cs
- WindowsListViewSubItem.cs
- ExpressionParser.cs
- StickyNoteContentControl.cs
- XNodeSchemaApplier.cs
- ResourceDefaultValueAttribute.cs
- TimeSpanConverter.cs
- AutomationTextAttribute.cs
- ConfigurationLockCollection.cs
- FontStyleConverter.cs
- NullRuntimeConfig.cs
- WindowsFormsLinkLabel.cs
- SqlConnectionHelper.cs
- ObjectListSelectEventArgs.cs
- cookiecontainer.cs
- UnicodeEncoding.cs
- RoleService.cs
- DLinqDataModelProvider.cs
- XsdCachingReader.cs
- EmptyStringExpandableObjectConverter.cs
- StringStorage.cs
- ViewStateException.cs
- LocatorManager.cs
- VisualBasicSettingsHandler.cs
- QilStrConcat.cs
- TypeConverterHelper.cs
- CorrelationQueryBehavior.cs
- DefaultSection.cs
- ActivityInstanceMap.cs
- DocumentationServerProtocol.cs
- DataChangedEventManager.cs
- XslCompiledTransform.cs
- WpfPayload.cs
- SiteMembershipCondition.cs
- BindingContext.cs
- TreeNodeClickEventArgs.cs