Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- ProtocolsConfigurationEntry.cs
- X509Extension.cs
- DefinitionBase.cs
- RTLAwareMessageBox.cs
- FloatUtil.cs
- DesignColumn.cs
- NewExpression.cs
- formatter.cs
- CallbackWrapper.cs
- NotifyIcon.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- BmpBitmapDecoder.cs
- TraceHandlerErrorFormatter.cs
- CompositeScriptReference.cs
- IDReferencePropertyAttribute.cs
- StringFreezingAttribute.cs
- FormViewPagerRow.cs
- OpCellTreeNode.cs
- JsonReader.cs
- CategoryState.cs
- SecurityChannel.cs
- PublisherIdentityPermission.cs
- EditorZone.cs
- PrintingPermissionAttribute.cs
- MatcherBuilder.cs
- BasicCommandTreeVisitor.cs
- Delay.cs
- NameTable.cs
- MasterPage.cs
- BrowserCapabilitiesCompiler.cs
- BoolExpressionVisitors.cs
- SmtpNetworkElement.cs
- FixedPageProcessor.cs
- BitConverter.cs
- TreeNodeConverter.cs
- Rect.cs
- HttpCacheParams.cs
- AsymmetricKeyExchangeFormatter.cs
- ListDataBindEventArgs.cs
- WsatAdminException.cs
- EventHandlersStore.cs
- EntityException.cs
- DesignBindingConverter.cs
- PrintPreviewControl.cs
- Vector3DCollection.cs
- XmlNamespaceDeclarationsAttribute.cs
- WebPartDescription.cs
- XmlSerializerImportOptions.cs
- QilInvokeLateBound.cs
- PtsHost.cs
- ObjectStorage.cs
- TabItemAutomationPeer.cs
- DockPattern.cs
- LabelInfo.cs
- coordinator.cs
- SqlBulkCopy.cs
- RichTextBoxConstants.cs
- ResXResourceWriter.cs
- SafeArrayRankMismatchException.cs
- TextBox.cs
- GraphicsContext.cs
- CompositeControl.cs
- StringAnimationBase.cs
- SecurityRuntime.cs
- EventRoute.cs
- ExclusiveNamedPipeTransportManager.cs
- WebAdminConfigurationHelper.cs
- AccessibleObject.cs
- BookmarkList.cs
- HttpCacheParams.cs
- WriteStateInfoBase.cs
- EventProvider.cs
- CuspData.cs
- DocumentSchemaValidator.cs
- XmlNamespaceManager.cs
- AssemblyBuilderData.cs
- WebPartConnectionsDisconnectVerb.cs
- InputLangChangeRequestEvent.cs
- Volatile.cs
- TrackBar.cs
- SendMailErrorEventArgs.cs
- FixedSOMGroup.cs
- ComboBox.cs
- TextMetrics.cs
- DatePicker.cs
- ValidatingReaderNodeData.cs
- CharacterHit.cs
- OracleTimeSpan.cs
- WindowsListView.cs
- PowerStatus.cs
- XsdCachingReader.cs
- DebugTracing.cs
- StyleSelector.cs
- ExceptionUtil.cs
- CommonGetThemePartSize.cs
- BaseParser.cs
- ToolboxDataAttribute.cs
- DropShadowBitmapEffect.cs
- TemplateContentLoader.cs
- ShaperBuffers.cs