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 / 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
- KeySplineConverter.cs
- TextRangeAdaptor.cs
- QuotaThrottle.cs
- IgnoreSectionHandler.cs
- XmlDataImplementation.cs
- ComPlusServiceLoader.cs
- KeyboardEventArgs.cs
- OptionUsage.cs
- ZipIOLocalFileHeader.cs
- LogRestartAreaEnumerator.cs
- HttpDictionary.cs
- XamlClipboardData.cs
- CodePropertyReferenceExpression.cs
- ListViewTableCell.cs
- DrawingContextWalker.cs
- SectionUpdates.cs
- ResourceAssociationTypeEnd.cs
- DrawingContextWalker.cs
- AnnotationDocumentPaginator.cs
- HtmlInputFile.cs
- AsyncResult.cs
- InputScopeNameConverter.cs
- Utilities.cs
- IncrementalCompileAnalyzer.cs
- DialogResultConverter.cs
- DefaultProfileManager.cs
- ActivityExecutionWorkItem.cs
- EmptyControlCollection.cs
- PtsPage.cs
- ProxySimple.cs
- AlphabeticalEnumConverter.cs
- ChannelCredentials.cs
- Visitor.cs
- SpecialFolderEnumConverter.cs
- TemplateNameScope.cs
- ToolboxControl.cs
- DataSourceHelper.cs
- WeakEventTable.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- XmlFormatReaderGenerator.cs
- cache.cs
- MemoryFailPoint.cs
- UnsafeNetInfoNativeMethods.cs
- UserControlParser.cs
- ServicePointManager.cs
- DiscoveryService.cs
- DeviceContext.cs
- WMIInterop.cs
- ApplicationManager.cs
- AddIn.cs
- XNodeNavigator.cs
- UITypeEditor.cs
- DataListCommandEventArgs.cs
- DescendantBaseQuery.cs
- MultiAsyncResult.cs
- MetafileHeader.cs
- HttpRuntime.cs
- SapiAttributeParser.cs
- HostedBindingBehavior.cs
- HMACRIPEMD160.cs
- XmlReflectionImporter.cs
- XmlDocumentSerializer.cs
- EventTrigger.cs
- MimePart.cs
- UnhandledExceptionEventArgs.cs
- validationstate.cs
- SoapInteropTypes.cs
- SQLDateTimeStorage.cs
- DurableInstanceProvider.cs
- OdbcConnectionOpen.cs
- PortCache.cs
- DmlSqlGenerator.cs
- TabOrder.cs
- GradientStop.cs
- HtmlInputButton.cs
- Events.cs
- EncodingNLS.cs
- ExtensionDataReader.cs
- DataMisalignedException.cs
- DataKeyArray.cs
- WebPartConnectionsEventArgs.cs
- DockProviderWrapper.cs
- EntityCommandCompilationException.cs
- XPathDocumentBuilder.cs
- ParagraphVisual.cs
- LocatorPartList.cs
- WebPartsPersonalization.cs
- UriWriter.cs
- UriGenerator.cs
- DataGridViewEditingControlShowingEventArgs.cs
- Accessors.cs
- CssTextWriter.cs
- XmlTextWriter.cs
- AccessText.cs
- ItemContainerPattern.cs
- HostedElements.cs
- XmlMemberMapping.cs
- SpeechUI.cs
- SqlClientWrapperSmiStream.cs
- ClientEventManager.cs