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
- RegexCharClass.cs
- FileDetails.cs
- TableLayoutSettingsTypeConverter.cs
- XmlNodeList.cs
- IpcClientChannel.cs
- SplineQuaternionKeyFrame.cs
- LinkedList.cs
- MdImport.cs
- UrlMappingsModule.cs
- Int16Storage.cs
- PolicyChain.cs
- SuspendDesigner.cs
- CmsInterop.cs
- SqlClientPermission.cs
- PageRanges.cs
- XmlTextReaderImpl.cs
- BeginStoryboard.cs
- COM2PictureConverter.cs
- SystemColors.cs
- ExpressionVisitor.cs
- RowToFieldTransformer.cs
- BitmapFrameEncode.cs
- StructuredProperty.cs
- TextDataBindingHandler.cs
- PreviewPrintController.cs
- SafeNativeMethodsMilCoreApi.cs
- CacheMemory.cs
- SqlDataSource.cs
- COAUTHINFO.cs
- PointHitTestResult.cs
- ToolBarTray.cs
- EditorZoneBase.cs
- TiffBitmapDecoder.cs
- XmlIncludeAttribute.cs
- DesignerView.Commands.cs
- ProvidePropertyAttribute.cs
- BaseResourcesBuildProvider.cs
- XmlILModule.cs
- XmlILStorageConverter.cs
- ServiceThrottlingElement.cs
- ObjectTypeMapping.cs
- ContentElement.cs
- HtmlValidationSummaryAdapter.cs
- SoapSchemaMember.cs
- RowUpdatingEventArgs.cs
- odbcmetadatacollectionnames.cs
- CTreeGenerator.cs
- ViewCellRelation.cs
- ScriptModule.cs
- WorkItem.cs
- NavigationProgressEventArgs.cs
- OutputCacheSettingsSection.cs
- BrowsableAttribute.cs
- HealthMonitoringSection.cs
- UInt64Storage.cs
- WebServiceMethodData.cs
- SynchronizationLockException.cs
- ClientUtils.cs
- DurableOperationContext.cs
- RecordManager.cs
- PointHitTestResult.cs
- XmlReflectionMember.cs
- PerformanceCounterPermissionEntryCollection.cs
- WindowsProgressbar.cs
- ProtectedUri.cs
- BulletChrome.cs
- LongTypeConverter.cs
- EntityContainerAssociationSet.cs
- HttpRawResponse.cs
- MainMenu.cs
- SoapIncludeAttribute.cs
- ConnectorEditor.cs
- RoleService.cs
- ScaleTransform.cs
- TableCellCollection.cs
- HandledMouseEvent.cs
- NodeLabelEditEvent.cs
- SqlDataSourceCommandEventArgs.cs
- SafeProcessHandle.cs
- HtmlInputHidden.cs
- AcceptorSessionSymmetricTransportSecurityProtocol.cs
- WindowsListViewItem.cs
- CompilerGlobalScopeAttribute.cs
- HtmlEncodedRawTextWriter.cs
- Int64AnimationUsingKeyFrames.cs
- HitTestWithGeometryDrawingContextWalker.cs
- References.cs
- FixedDSBuilder.cs
- TransformerConfigurationWizardBase.cs
- PageRequestManager.cs
- ConnectionStringsSection.cs
- _DynamicWinsockMethods.cs
- SqlClientMetaDataCollectionNames.cs
- Clause.cs
- GeometryDrawing.cs
- TypeBuilder.cs
- SqlCaseSimplifier.cs
- OuterGlowBitmapEffect.cs
- RoleServiceManager.cs
- CodeDelegateCreateExpression.cs