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
- Marshal.cs
- NotSupportedException.cs
- NotSupportedException.cs
- XDRSchema.cs
- SchemaExporter.cs
- Lock.cs
- PrimitiveDataContract.cs
- BitmapEffectDrawing.cs
- DetailsViewRow.cs
- SerializationEventsCache.cs
- XmlHelper.cs
- SQLString.cs
- DataFormats.cs
- ConfigXmlSignificantWhitespace.cs
- XmlName.cs
- UpdateRecord.cs
- UInt32Storage.cs
- CultureInfoConverter.cs
- GB18030Encoding.cs
- PrintDialog.cs
- ListViewCommandEventArgs.cs
- DbConnectionPoolGroup.cs
- OutputCacheSettings.cs
- FormatSettings.cs
- DBSqlParserTable.cs
- Empty.cs
- DirectoryNotFoundException.cs
- MessageQueueAccessControlEntry.cs
- ModelItemCollection.cs
- compensatingcollection.cs
- PerformanceCounterPermissionEntry.cs
- WebPartsPersonalizationAuthorization.cs
- CodeCommentStatement.cs
- StateManagedCollection.cs
- sqlmetadatafactory.cs
- DesignerAutoFormatStyle.cs
- HttpInputStream.cs
- ProtocolReflector.cs
- PropertyChange.cs
- InvalidChannelBindingException.cs
- Int32Collection.cs
- FragmentNavigationEventArgs.cs
- AdapterUtil.cs
- Part.cs
- DuplicateWaitObjectException.cs
- CacheMemory.cs
- WebBrowserUriTypeConverter.cs
- PageRanges.cs
- MessageHeaderAttribute.cs
- DrawingState.cs
- basecomparevalidator.cs
- PagedDataSource.cs
- InternalConfigHost.cs
- NotifyInputEventArgs.cs
- ToolStripOverflow.cs
- RectAnimationClockResource.cs
- ProxyHelper.cs
- ControlAdapter.cs
- Triplet.cs
- ObjectListCommandEventArgs.cs
- TaiwanCalendar.cs
- RegionIterator.cs
- Label.cs
- TextBox.cs
- CollectionType.cs
- TcpServerChannel.cs
- XmlStreamStore.cs
- PagePropertiesChangingEventArgs.cs
- MimeParameter.cs
- QuerySelectOp.cs
- AstNode.cs
- HttpCacheVaryByContentEncodings.cs
- ValidationEventArgs.cs
- SafeHandles.cs
- TagMapCollection.cs
- ThreadStaticAttribute.cs
- EntityDataReader.cs
- SQLChars.cs
- MatrixConverter.cs
- webeventbuffer.cs
- SqlClientWrapperSmiStreamChars.cs
- ScrollChrome.cs
- DisposableCollectionWrapper.cs
- DesignerView.cs
- SslStream.cs
- WindowShowOrOpenTracker.cs
- SiteMapPath.cs
- securitycriticaldataformultiplegetandset.cs
- Collection.cs
- SoapSchemaExporter.cs
- CqlIdentifiers.cs
- InsufficientMemoryException.cs
- ProgressPage.cs
- MobileControlDesigner.cs
- MouseGestureConverter.cs
- RegisteredScript.cs
- InsufficientExecutionStackException.cs
- SmiRequestExecutor.cs
- XamlWrapperReaders.cs
- ReflectionTypeLoadException.cs