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
- XmlChildEnumerator.cs
- Misc.cs
- DeferredElementTreeState.cs
- EdmItemCollection.cs
- BmpBitmapDecoder.cs
- PageBuildProvider.cs
- SqlFlattener.cs
- DataGridViewTopLeftHeaderCell.cs
- ObjectDataSourceStatusEventArgs.cs
- VisualStyleRenderer.cs
- ConfigurationSectionGroup.cs
- Double.cs
- SwitchAttribute.cs
- AlternationConverter.cs
- iisPickupDirectory.cs
- KeyNameIdentifierClause.cs
- XmlHelper.cs
- _HeaderInfo.cs
- Events.cs
- MenuAutoFormat.cs
- MultipartContentParser.cs
- RangeValidator.cs
- SelectionEditingBehavior.cs
- ListenerElementsCollection.cs
- AvTraceDetails.cs
- ActiveXContainer.cs
- QueryStringParameter.cs
- ExpressionEditor.cs
- BindingMAnagerBase.cs
- XmlQuerySequence.cs
- HtmlFormParameterReader.cs
- TextSegment.cs
- XXXInfos.cs
- AttributeCollection.cs
- ListViewItemEventArgs.cs
- SetStateEventArgs.cs
- XslAstAnalyzer.cs
- OuterGlowBitmapEffect.cs
- ConfigurationSection.cs
- DNS.cs
- EmissiveMaterial.cs
- PackageRelationship.cs
- InvariantComparer.cs
- FactoryId.cs
- SqlReferenceCollection.cs
- XmlSchemaType.cs
- DataGridRowEventArgs.cs
- TargetException.cs
- AlphaSortedEnumConverter.cs
- TaiwanLunisolarCalendar.cs
- ExpressionConverter.cs
- StreamWithDictionary.cs
- ImageButton.cs
- TextElement.cs
- EventEntry.cs
- ProfileModule.cs
- WebControl.cs
- Solver.cs
- FullTextLine.cs
- ChannelSinkStacks.cs
- SafeLocalMemHandle.cs
- WsatServiceAddress.cs
- DocumentGrid.cs
- PeerTransportSecurityElement.cs
- DateTimeOffset.cs
- CodeRemoveEventStatement.cs
- PropertyItem.cs
- WindowsBrush.cs
- CursorEditor.cs
- DefaultValueConverter.cs
- ClientRoleProvider.cs
- EndpointAddressProcessor.cs
- DBDataPermissionAttribute.cs
- ICspAsymmetricAlgorithm.cs
- HGlobalSafeHandle.cs
- HttpCookiesSection.cs
- CodeExpressionStatement.cs
- CompiledQuery.cs
- Cursor.cs
- SecurityCriticalDataForSet.cs
- TextRunProperties.cs
- SubqueryTrackingVisitor.cs
- QuotedStringWriteStateInfo.cs
- HttpAsyncResult.cs
- FontUnitConverter.cs
- QuaternionAnimationBase.cs
- RoutingExtensionElement.cs
- MruCache.cs
- WizardStepBase.cs
- DefinitionUpdate.cs
- WorkflowTerminatedException.cs
- LogicalCallContext.cs
- InvokePatternIdentifiers.cs
- IChannel.cs
- MissingSatelliteAssemblyException.cs
- WinFormsUtils.cs
- GridEntryCollection.cs
- Pair.cs
- __Filters.cs
- StyleModeStack.cs