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
- UserControlAutomationPeer.cs
- EventProviderWriter.cs
- RightsDocument.cs
- FlowNode.cs
- FixedSOMTableCell.cs
- FlowDocumentPageViewerAutomationPeer.cs
- ContentFileHelper.cs
- Base64WriteStateInfo.cs
- HitTestFilterBehavior.cs
- ProviderConnectionPoint.cs
- UrlMappingsModule.cs
- DrawListViewItemEventArgs.cs
- ConstantProjectedSlot.cs
- EventMappingSettingsCollection.cs
- RegionIterator.cs
- InstallerTypeAttribute.cs
- WebServiceData.cs
- AmbientLight.cs
- GridViewAutomationPeer.cs
- PropertySourceInfo.cs
- CodeGeneratorOptions.cs
- StringAttributeCollection.cs
- _HeaderInfo.cs
- ValueConversionAttribute.cs
- ListViewItem.cs
- SequentialActivityDesigner.cs
- StrongNameSignatureInformation.cs
- ExceptionAggregator.cs
- ReflectionServiceProvider.cs
- XmlJsonReader.cs
- BrowserInteropHelper.cs
- XmlTextEncoder.cs
- ForwardPositionQuery.cs
- WindowsTab.cs
- EmptyEnumerable.cs
- HttpResponseInternalWrapper.cs
- Selection.cs
- CalendarTable.cs
- MetadataPropertyAttribute.cs
- PropertyTabChangedEvent.cs
- SharedRuntimeState.cs
- ListControl.cs
- XmlSerializationGeneratedCode.cs
- CurrentChangingEventArgs.cs
- Compiler.cs
- FixedTextBuilder.cs
- DbProviderFactories.cs
- CommentGlyph.cs
- XMLSyntaxException.cs
- EditCommandColumn.cs
- DBSchemaRow.cs
- UpdateTranslator.cs
- CombinedTcpChannel.cs
- Column.cs
- TraceEventCache.cs
- PixelFormatConverter.cs
- ProviderIncompatibleException.cs
- FramingFormat.cs
- WindowsSecurityTokenAuthenticator.cs
- FactoryGenerator.cs
- DataColumnChangeEvent.cs
- DataException.cs
- ProgressBar.cs
- DockPattern.cs
- UnsafeNativeMethods.cs
- DbLambda.cs
- ADMembershipProvider.cs
- OleDbParameter.cs
- ListViewGroupItemCollection.cs
- IntSecurity.cs
- MessageQueuePermissionEntry.cs
- DataTableReader.cs
- GridSplitterAutomationPeer.cs
- mediaclock.cs
- ItemList.cs
- RequestUriProcessor.cs
- TableLayoutCellPaintEventArgs.cs
- ListDictionary.cs
- StorageRoot.cs
- Wizard.cs
- Stroke.cs
- Activation.cs
- SimpleModelProvider.cs
- PerformanceCounterManager.cs
- StringPropertyBuilder.cs
- StrokeNode.cs
- RenderCapability.cs
- AppModelKnownContentFactory.cs
- QuaternionRotation3D.cs
- ProfessionalColorTable.cs
- TextContainerHelper.cs
- Brushes.cs
- SafeThemeHandle.cs
- CodeGenerator.cs
- StylusLogic.cs
- SerializationAttributes.cs
- OleDbInfoMessageEvent.cs
- QueuePathEditor.cs
- PostBackTrigger.cs
- StaticContext.cs