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
- PageSetupDialog.cs
- PageParser.cs
- MenuItem.cs
- TextElementAutomationPeer.cs
- ListViewItemSelectionChangedEvent.cs
- HtmlContainerControl.cs
- DbExpressionBuilder.cs
- ConfigurationSchemaErrors.cs
- SessionIDManager.cs
- CoreSwitches.cs
- MemberJoinTreeNode.cs
- DescriptionAttribute.cs
- MTConfigUtil.cs
- WmlCommandAdapter.cs
- DispatcherFrame.cs
- ObjectSecurity.cs
- DesignTimeHTMLTextWriter.cs
- NotificationContext.cs
- SystemTcpConnection.cs
- DefaultObjectSerializer.cs
- ISFClipboardData.cs
- InvalidStoreProtectionKeyException.cs
- OutputCacheSettings.cs
- XamlUtilities.cs
- ConstraintStruct.cs
- InputLangChangeRequestEvent.cs
- InstanceHandle.cs
- ImagingCache.cs
- InputScopeAttribute.cs
- SystemResourceKey.cs
- Clock.cs
- storepermission.cs
- QueryResult.cs
- UserPreferenceChangingEventArgs.cs
- FileChangesMonitor.cs
- CatalogZone.cs
- PartialArray.cs
- AdRotatorDesigner.cs
- ArrayConverter.cs
- StrokeIntersection.cs
- OleAutBinder.cs
- CodeAttributeArgument.cs
- JsonClassDataContract.cs
- SelectionList.cs
- XmlQueryStaticData.cs
- smtpconnection.cs
- ThreadLocal.cs
- AlgoModule.cs
- Drawing.cs
- DBSchemaRow.cs
- PathGeometry.cs
- SqlParameter.cs
- StateDesigner.Layouts.cs
- path.cs
- LicenseManager.cs
- Timer.cs
- TemplateBuilder.cs
- Debugger.cs
- adornercollection.cs
- CalendarModeChangedEventArgs.cs
- __Filters.cs
- _NTAuthentication.cs
- RequestQueue.cs
- ConversionValidationRule.cs
- WCFBuildProvider.cs
- SignatureResourcePool.cs
- PeerPresenceInfo.cs
- InternalConfigConfigurationFactory.cs
- FloaterBaseParaClient.cs
- CheckBox.cs
- SrgsText.cs
- FixedDocument.cs
- DictionaryTraceRecord.cs
- PrtTicket_Base.cs
- ValidationPropertyAttribute.cs
- ControlBindingsCollection.cs
- InfoCardService.cs
- DragDrop.cs
- LexicalChunk.cs
- ObjectDataSourceChooseMethodsPanel.cs
- XmlStreamStore.cs
- PermissionToken.cs
- UnsafeCollabNativeMethods.cs
- SearchForVirtualItemEventArgs.cs
- XsltCompileContext.cs
- Pkcs7Recipient.cs
- ParentUndoUnit.cs
- TreeNode.cs
- PolyLineSegment.cs
- FontCollection.cs
- CatalogZoneBase.cs
- QuotedPairReader.cs
- DictionaryCustomTypeDescriptor.cs
- CodeTypeMember.cs
- InstalledFontCollection.cs
- TraceHelpers.cs
- PassportIdentity.cs
- SchemaManager.cs
- PathGeometry.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs