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
- ProfileParameter.cs
- UniqueID.cs
- RegexCapture.cs
- PermissionToken.cs
- FixedPageAutomationPeer.cs
- GroupBoxRenderer.cs
- StyleSelector.cs
- NetworkCredential.cs
- ListView.cs
- ItemsControl.cs
- SmtpReplyReaderFactory.cs
- Image.cs
- FrameworkReadOnlyPropertyMetadata.cs
- WebBrowserBase.cs
- ReadOnlyHierarchicalDataSourceView.cs
- PointHitTestResult.cs
- Selector.cs
- State.cs
- MobileControlsSection.cs
- DoubleAnimation.cs
- CodeAccessPermission.cs
- Avt.cs
- HighContrastHelper.cs
- _DisconnectOverlappedAsyncResult.cs
- FtpCachePolicyElement.cs
- ReadContentAsBinaryHelper.cs
- EntityTypeEmitter.cs
- TextSyndicationContent.cs
- SHA1.cs
- ButtonColumn.cs
- CodeMethodMap.cs
- WorkflowInvoker.cs
- figurelengthconverter.cs
- MemoryPressure.cs
- ObjectHelper.cs
- XmlSchemaDatatype.cs
- HtmlInputFile.cs
- FormViewPagerRow.cs
- Form.cs
- SafeSystemMetrics.cs
- FigureParaClient.cs
- AgileSafeNativeMemoryHandle.cs
- DesignSurfaceServiceContainer.cs
- XmlSerializerAssemblyAttribute.cs
- RemotingConfigParser.cs
- __Filters.cs
- OperationAbortedException.cs
- Annotation.cs
- MarkupWriter.cs
- IisNotInstalledException.cs
- ImageIndexConverter.cs
- ControlValuePropertyAttribute.cs
- FakeModelItemImpl.cs
- StateWorkerRequest.cs
- MailAddressCollection.cs
- MexHttpsBindingCollectionElement.cs
- RecognizedAudio.cs
- ObjectPropertyMapping.cs
- DrawingCollection.cs
- XmlNamespaceDeclarationsAttribute.cs
- RectValueSerializer.cs
- GridViewColumn.cs
- RuleSettingsCollection.cs
- TrailingSpaceComparer.cs
- SqlClientFactory.cs
- Propagator.Evaluator.cs
- OutputCacheSettingsSection.cs
- InheritedPropertyDescriptor.cs
- LogEntrySerializer.cs
- Activity.cs
- LocationInfo.cs
- BaseDataList.cs
- CompilationLock.cs
- RequestCachePolicyConverter.cs
- RuntimeConfig.cs
- XmlDocumentType.cs
- PointCollectionConverter.cs
- XPathNavigator.cs
- TcpAppDomainProtocolHandler.cs
- SizeValueSerializer.cs
- TreeNodeMouseHoverEvent.cs
- HtmlTableCell.cs
- DefinitionUpdate.cs
- HtmlImage.cs
- SamlConstants.cs
- LocalizedNameDescriptionPair.cs
- AccessDataSource.cs
- Stream.cs
- SendKeys.cs
- StreamInfo.cs
- DragEvent.cs
- ScriptResourceAttribute.cs
- FullTrustAssembly.cs
- FrameworkContentElement.cs
- EditorResources.cs
- TimeManager.cs
- DateTimeConverter2.cs
- TransformConverter.cs
- ExtenderControl.cs
- RealProxy.cs