Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / System / Windows / Media3D / Material.cs / 1 / Material.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: 3D material implementation. // // See spec at http://avalon/medialayer/Specifications/Avalon3D%20API%20Spec.mht // // History: // 06/25/2003 : t-gregr - Created // //--------------------------------------------------------------------------- using System; using System.Diagnostics; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Media.Composition; namespace System.Windows.Media.Media3D { ////// Material is the abstract base class for materials /// [Localizability(LocalizationCategory.None, Readability = Readability.Unreadable)] // cannot be read & localized as string public abstract partial class Material : Animatable { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors // Prevent 3rd parties from extending this abstract base class. internal Material() {} #endregion Constructors //------------------------------------------------------ // // Internal Methods // //----------------------------------------------------- #region Internal Methods // NTRAID#Longhorn-1591973-2006/03/31-[....] - Should be using inherited "Precompute" from Animatable // // These return 'true' if the Material requires realization internal abstract bool PreCompute(); internal static bool PreCompute(Brush brush) { bool requiresRealization = false; if (brush != null) { brush.Precompute(); requiresRealization = brush.RequiresRealizationUpdates; } return requiresRealization; } internal abstract void UpdateRealizations( RealizationContext ctx, ref Rect bounds); internal static void UpdateRealizations( Brush brush, RealizationContext ctx, ref Rect bounds ) { if (brush != null) { brush.UpdateRealizations(bounds, ctx); } } #endregion Internal Methods //------------------------------------------------------ // // Internal Properties // //------------------------------------------------------ #region Internal Properties // NTRAID#Longhorn-1591973-2006/03/31-[....] - Should be using inherited "RequiresRealizationUpdates" from Animatable internal abstract bool RequiresRealization { get; } #endregion Internal Properties } } // 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 material implementation. // // See spec at http://avalon/medialayer/Specifications/Avalon3D%20API%20Spec.mht // // History: // 06/25/2003 : t-gregr - Created // //--------------------------------------------------------------------------- using System; using System.Diagnostics; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Media.Composition; namespace System.Windows.Media.Media3D { ////// Material is the abstract base class for materials /// [Localizability(LocalizationCategory.None, Readability = Readability.Unreadable)] // cannot be read & localized as string public abstract partial class Material : Animatable { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors // Prevent 3rd parties from extending this abstract base class. internal Material() {} #endregion Constructors //------------------------------------------------------ // // Internal Methods // //----------------------------------------------------- #region Internal Methods // NTRAID#Longhorn-1591973-2006/03/31-[....] - Should be using inherited "Precompute" from Animatable // // These return 'true' if the Material requires realization internal abstract bool PreCompute(); internal static bool PreCompute(Brush brush) { bool requiresRealization = false; if (brush != null) { brush.Precompute(); requiresRealization = brush.RequiresRealizationUpdates; } return requiresRealization; } internal abstract void UpdateRealizations( RealizationContext ctx, ref Rect bounds); internal static void UpdateRealizations( Brush brush, RealizationContext ctx, ref Rect bounds ) { if (brush != null) { brush.UpdateRealizations(bounds, ctx); } } #endregion Internal Methods //------------------------------------------------------ // // Internal Properties // //------------------------------------------------------ #region Internal Properties // NTRAID#Longhorn-1591973-2006/03/31-[....] - Should be using inherited "RequiresRealizationUpdates" from Animatable internal abstract bool RequiresRealization { get; } #endregion Internal Properties } } // 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
- EmptyEnumerator.cs
- CompatibleComparer.cs
- NetPipeSection.cs
- ToolStripDropDownItem.cs
- FreezableDefaultValueFactory.cs
- DesignerView.cs
- UnmanagedMemoryStream.cs
- ConfigurationStrings.cs
- Int32RectValueSerializer.cs
- path.cs
- AnonymousIdentificationModule.cs
- XsdBuilder.cs
- IfAction.cs
- Panel.cs
- CaseInsensitiveComparer.cs
- PageStatePersister.cs
- GlobalizationAssembly.cs
- OperandQuery.cs
- FixedSOMPage.cs
- MonthChangedEventArgs.cs
- WebRequest.cs
- AsyncStreamReader.cs
- MimePart.cs
- TraceProvider.cs
- CombinedGeometry.cs
- GridViewCancelEditEventArgs.cs
- StateBag.cs
- ThumbAutomationPeer.cs
- QueryStatement.cs
- ArrayWithOffset.cs
- HttpListenerResponse.cs
- RtfToXamlLexer.cs
- PageRanges.cs
- cookie.cs
- FontStyles.cs
- VisualBrush.cs
- BindingExpressionUncommonField.cs
- UIElement3D.cs
- XPathSelfQuery.cs
- CommandPlan.cs
- TextElement.cs
- FacetValueContainer.cs
- ButtonChrome.cs
- indexingfiltermarshaler.cs
- InfoCardX509Validator.cs
- TransportSecurityProtocol.cs
- XPathNode.cs
- Int16Converter.cs
- IriParsingElement.cs
- HttpCachePolicy.cs
- ConcurrentBag.cs
- TdsParserStateObject.cs
- TextRange.cs
- ExpressionBuilder.cs
- WindowsAltTab.cs
- IpcChannel.cs
- DoubleSumAggregationOperator.cs
- ProtocolsConfigurationHandler.cs
- _TLSstream.cs
- PackageStore.cs
- SmtpException.cs
- TiffBitmapEncoder.cs
- WSHttpBindingBaseElement.cs
- SizeAnimationUsingKeyFrames.cs
- TableSectionStyle.cs
- __Filters.cs
- HeaderUtility.cs
- LZCodec.cs
- ApplicationHost.cs
- QueryLifecycle.cs
- CustomCategoryAttribute.cs
- ListViewContainer.cs
- SiteOfOriginContainer.cs
- XNameTypeConverter.cs
- CreateRefExpr.cs
- LayoutExceptionEventArgs.cs
- IntegrationExceptionEventArgs.cs
- ThreadSafeList.cs
- InlineUIContainer.cs
- FormsAuthenticationUserCollection.cs
- PropertyChangeTracker.cs
- CapiSafeHandles.cs
- Baml2006Reader.cs
- HttpResponseInternalWrapper.cs
- EventToken.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- Inflater.cs
- DbUpdateCommandTree.cs
- Constants.cs
- selecteditemcollection.cs
- ModelProperty.cs
- WizardSideBarListControlItem.cs
- Border.cs
- SelectionEditor.cs
- CounterCreationData.cs
- Highlights.cs
- TypeDescriptor.cs
- SQlBooleanStorage.cs
- LookupBindingPropertiesAttribute.cs
- PasswordDeriveBytes.cs