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
- WindowClosedEventArgs.cs
- ColumnCollection.cs
- ResourceCategoryAttribute.cs
- XhtmlBasicPanelAdapter.cs
- DependencyPropertyHelper.cs
- GridItem.cs
- LastQueryOperator.cs
- Memoizer.cs
- XmlCountingReader.cs
- BulletedListEventArgs.cs
- EventListener.cs
- SchemaImporter.cs
- BasicViewGenerator.cs
- BindingValueChangedEventArgs.cs
- TreeViewDataItemAutomationPeer.cs
- DataGridAutoFormatDialog.cs
- TreeView.cs
- StorageRoot.cs
- XmlSchemaInferenceException.cs
- ObjectAnimationUsingKeyFrames.cs
- HttpCapabilitiesEvaluator.cs
- GeometryCollection.cs
- ValidationErrorEventArgs.cs
- SubMenuStyle.cs
- DeflateInput.cs
- BamlTreeUpdater.cs
- BehaviorService.cs
- EventDescriptor.cs
- XsltSettings.cs
- BindableTemplateBuilder.cs
- JoinGraph.cs
- DocumentGrid.cs
- CacheOutputQuery.cs
- XmlArrayAttribute.cs
- BehaviorEditorPart.cs
- EditingScope.cs
- DbException.cs
- VirtualizedContainerService.cs
- ApplicationBuildProvider.cs
- Exceptions.cs
- ConfigXmlComment.cs
- ModelToObjectValueConverter.cs
- SerialReceived.cs
- COM2TypeInfoProcessor.cs
- Compiler.cs
- Roles.cs
- SmiEventSink_Default.cs
- QueueProcessor.cs
- UseManagedPresentationBindingElement.cs
- DataGridColumnCollection.cs
- BuildProviderUtils.cs
- ZipPackagePart.cs
- RowParagraph.cs
- BackStopAuthenticationModule.cs
- TaiwanLunisolarCalendar.cs
- CodeStatement.cs
- TextSelectionHighlightLayer.cs
- CompilerError.cs
- ProtocolsSection.cs
- ToolStripGrip.cs
- NamedPipeConnectionPool.cs
- FormViewInsertEventArgs.cs
- InkCollectionBehavior.cs
- UIElement3DAutomationPeer.cs
- SafeRightsManagementQueryHandle.cs
- EventlogProvider.cs
- HtmlInputImage.cs
- TextWriter.cs
- DesignerTransactionCloseEvent.cs
- HtmlInputButton.cs
- ControlBuilder.cs
- ListViewHitTestInfo.cs
- LineMetrics.cs
- SoapCommonClasses.cs
- CSharpCodeProvider.cs
- SqlCommand.cs
- KeyPullup.cs
- DPAPIProtectedConfigurationProvider.cs
- TypeBuilder.cs
- WindowsToolbar.cs
- OperationResponse.cs
- MetadataUtilsSmi.cs
- IApplicationTrustManager.cs
- MarginCollapsingState.cs
- XmlIlTypeHelper.cs
- WebHttpSecurity.cs
- BinaryObjectInfo.cs
- SoapMessage.cs
- LocalizabilityAttribute.cs
- datacache.cs
- SystemInfo.cs
- StructuralCache.cs
- ConnectorSelectionGlyph.cs
- DocumentReferenceCollection.cs
- ServiceElement.cs
- TreeViewImageKeyConverter.cs
- TextTreeUndoUnit.cs
- FontUnit.cs
- PartitionResolver.cs
- StylusEditingBehavior.cs