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 / EmissiveMaterial.cs / 1 / EmissiveMaterial.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: 3D emissive material // // See spec at *** FILL IN LATER *** // //--------------------------------------------------------------------------- using System; using System.Diagnostics; using System.Runtime.InteropServices; using System.Windows.Markup; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Media.Composition; using MS.Internal; namespace System.Windows.Media.Media3D { ////// EmissiveMaterial allows a 2d brush to be used on a 3d model that has been lit /// as if it were emitting light equal to the color of the brush /// public sealed partial class EmissiveMaterial : Material { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors ////// Constructs a EmissiveMaterial /// public EmissiveMaterial() { } ////// Constructor that sets the Brush property to "brush" /// /// The new material's brush public EmissiveMaterial(Brush brush) { Brush = brush; } #endregion Constructors internal override bool PreCompute() { _requiresRealization = Material.PreCompute(Brush); return _requiresRealization; } internal override void UpdateRealizations( RealizationContext ctx, ref Rect bounds ) { Debug.Assert(_requiresRealization); Material.UpdateRealizations(Brush, ctx, ref bounds); } internal override bool RequiresRealization { get { return _requiresRealization; } } //------------------------------------------------------ // // Private Fields // //----------------------------------------------------- #region Private Fields private bool _requiresRealization = false; #endregion Private Fields } } // 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 emissive material // // See spec at *** FILL IN LATER *** // //--------------------------------------------------------------------------- using System; using System.Diagnostics; using System.Runtime.InteropServices; using System.Windows.Markup; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Media.Composition; using MS.Internal; namespace System.Windows.Media.Media3D { ////// EmissiveMaterial allows a 2d brush to be used on a 3d model that has been lit /// as if it were emitting light equal to the color of the brush /// public sealed partial class EmissiveMaterial : Material { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors ////// Constructs a EmissiveMaterial /// public EmissiveMaterial() { } ////// Constructor that sets the Brush property to "brush" /// /// The new material's brush public EmissiveMaterial(Brush brush) { Brush = brush; } #endregion Constructors internal override bool PreCompute() { _requiresRealization = Material.PreCompute(Brush); return _requiresRealization; } internal override void UpdateRealizations( RealizationContext ctx, ref Rect bounds ) { Debug.Assert(_requiresRealization); Material.UpdateRealizations(Brush, ctx, ref bounds); } internal override bool RequiresRealization { get { return _requiresRealization; } } //------------------------------------------------------ // // Private Fields // //----------------------------------------------------- #region Private Fields private bool _requiresRealization = false; #endregion Private Fields } } // 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
- TranslateTransform3D.cs
- SystemInformation.cs
- ServiceReference.cs
- SymLanguageVendor.cs
- x509store.cs
- InkPresenterAutomationPeer.cs
- CommentEmitter.cs
- Range.cs
- SwitchElementsCollection.cs
- InputBuffer.cs
- SpnEndpointIdentity.cs
- SqlTriggerAttribute.cs
- NumberFunctions.cs
- PropertyTabChangedEvent.cs
- TextBreakpoint.cs
- AttributeExtensions.cs
- CLSCompliantAttribute.cs
- BooleanAnimationBase.cs
- FontFamilyValueSerializer.cs
- Assembly.cs
- UnitySerializationHolder.cs
- HttpFormatExtensions.cs
- PropertyGeneratedEventArgs.cs
- MetadataItemCollectionFactory.cs
- FreeIndexList.cs
- RectangleGeometry.cs
- BitmapImage.cs
- base64Transforms.cs
- DataBoundLiteralControl.cs
- PeerToPeerException.cs
- WorkItem.cs
- ListInitExpression.cs
- SelfIssuedTokenFactoryCredential.cs
- SpecialFolderEnumConverter.cs
- FigureHelper.cs
- BaseAppDomainProtocolHandler.cs
- BitmapEffectDrawingContextState.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- BrowserCapabilitiesCompiler.cs
- ToolboxItem.cs
- BookmarkScopeManager.cs
- ResolveMatchesCD1.cs
- CodeTypeParameter.cs
- RelativeSource.cs
- TextPointer.cs
- Events.cs
- SqlExpander.cs
- IItemProperties.cs
- ReceiveContext.cs
- UrlMappingsSection.cs
- ListViewDeleteEventArgs.cs
- ProgressBarBrushConverter.cs
- ApplicationDirectory.cs
- OdbcReferenceCollection.cs
- DecoderReplacementFallback.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- AsymmetricKeyExchangeDeformatter.cs
- WindowsGraphicsCacheManager.cs
- WebPartDisplayMode.cs
- Pointer.cs
- DiagnosticsConfiguration.cs
- Synchronization.cs
- AuthenticateEventArgs.cs
- DataServiceQueryProvider.cs
- NullableIntMinMaxAggregationOperator.cs
- CallbackValidator.cs
- AsyncOperationManager.cs
- SystemInfo.cs
- SplitterDesigner.cs
- DbModificationCommandTree.cs
- Root.cs
- ResourcesChangeInfo.cs
- DynamicMethod.cs
- UpdateManifestForBrowserApplication.cs
- EventLogger.cs
- ProtocolElement.cs
- CachedFontFamily.cs
- EntityDescriptor.cs
- GenericUriParser.cs
- Win32MouseDevice.cs
- MimeTypeMapper.cs
- OrderedDictionary.cs
- ScriptRegistrationManager.cs
- SqlCacheDependencyDatabaseCollection.cs
- CompareValidator.cs
- InternalConfigRoot.cs
- HwndProxyElementProvider.cs
- ProcessThreadCollection.cs
- JavascriptCallbackBehaviorAttribute.cs
- Binding.cs
- ContentType.cs
- LazyInitializer.cs
- BulletChrome.cs
- OleDbConnectionInternal.cs
- nulltextcontainer.cs
- CacheModeValueSerializer.cs
- IsolatedStorageFilePermission.cs
- ContractMapping.cs
- IdnElement.cs
- OSFeature.cs