Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SettingsPropertyValue.cs
- ObjectDataProvider.cs
- ListControlDataBindingHandler.cs
- EntityContainer.cs
- DetailsViewRow.cs
- DataSourceXmlTextReader.cs
- PositiveTimeSpanValidatorAttribute.cs
- NativeObjectSecurity.cs
- CalendarDataBindingHandler.cs
- StructuralCache.cs
- DiagnosticTrace.cs
- XmlObjectSerializerReadContextComplex.cs
- LocalizationComments.cs
- SingleSelectRootGridEntry.cs
- WebAdminConfigurationHelper.cs
- StreamWriter.cs
- parserscommon.cs
- TimeSpan.cs
- AlgoModule.cs
- InstanceKeyView.cs
- XmlnsDictionary.cs
- SourceSwitch.cs
- COM2ExtendedTypeConverter.cs
- QuaternionValueSerializer.cs
- BamlCollectionHolder.cs
- XPathQilFactory.cs
- ScrollContentPresenter.cs
- WebHeaderCollection.cs
- PipeStream.cs
- HttpListenerPrefixCollection.cs
- __ConsoleStream.cs
- ViewValidator.cs
- MeasurementDCInfo.cs
- MergeExecutor.cs
- Stylesheet.cs
- EncryptedPackage.cs
- TextEditorDragDrop.cs
- TransactionFormatter.cs
- ProviderConnectionPoint.cs
- FloaterBaseParaClient.cs
- ActivityWithResultWrapper.cs
- AuthenticationException.cs
- Point3DAnimation.cs
- BulletDecorator.cs
- ConstraintCollection.cs
- Tokenizer.cs
- AsymmetricKeyExchangeFormatter.cs
- SingleStorage.cs
- ChangeTracker.cs
- WebPermission.cs
- ExecutorLocksHeldException.cs
- ExceptionUtil.cs
- HtmlString.cs
- _KerberosClient.cs
- ComboBoxItem.cs
- Propagator.cs
- SecurityManager.cs
- EnlistmentState.cs
- ExpressionList.cs
- ScriptModule.cs
- ImageUrlEditor.cs
- BaseServiceProvider.cs
- WebUtil.cs
- WindowsListViewGroupHelper.cs
- XmlQueryRuntime.cs
- XmlDocumentFragment.cs
- DesignTimeType.cs
- UInt16Storage.cs
- _UriTypeConverter.cs
- DataGridViewAccessibleObject.cs
- XmlSchemaSimpleType.cs
- ViewGenerator.cs
- SystemBrushes.cs
- GridLengthConverter.cs
- ControlCachePolicy.cs
- ReflectEventDescriptor.cs
- DirectoryRootQuery.cs
- _Win32.cs
- _LocalDataStoreMgr.cs
- XmlNode.cs
- BulletChrome.cs
- RegexFCD.cs
- PropertyEntry.cs
- PointAnimationBase.cs
- RangeBase.cs
- OAVariantLib.cs
- Point.cs
- SHA1.cs
- SQLDoubleStorage.cs
- EventDrivenDesigner.cs
- ModelPerspective.cs
- SelectionRange.cs
- PackageStore.cs
- Transform3D.cs
- GC.cs
- FixedLineResult.cs
- TextParagraphProperties.cs
- ListViewGroupConverter.cs
- sqlpipe.cs
- ValidateNames.cs