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
- IteratorFilter.cs
- WarningException.cs
- XmlElementList.cs
- SchemaRegistration.cs
- CqlErrorHelper.cs
- UnsignedPublishLicense.cs
- PeerResolverMode.cs
- ObjectDataSourceView.cs
- KeyGestureValueSerializer.cs
- ContainerControl.cs
- QueryOutputWriter.cs
- DllHostedComPlusServiceHost.cs
- HttpApplicationFactory.cs
- EntityContainerAssociationSet.cs
- PKCS1MaskGenerationMethod.cs
- ToolboxComponentsCreatingEventArgs.cs
- AutomationElementCollection.cs
- WizardPanel.cs
- CompileLiteralTextParser.cs
- shaperfactoryquerycacheentry.cs
- TextFormatterContext.cs
- PropertyBuilder.cs
- HtmlPanelAdapter.cs
- SecuritySessionFilter.cs
- ProxyManager.cs
- ValidatorCollection.cs
- AuthStoreRoleProvider.cs
- Point3DCollection.cs
- URLString.cs
- DataGridViewRowsAddedEventArgs.cs
- UserControlParser.cs
- AsymmetricSignatureDeformatter.cs
- DecimalAverageAggregationOperator.cs
- LineMetrics.cs
- ConsoleKeyInfo.cs
- IndentTextWriter.cs
- HttpCapabilitiesSectionHandler.cs
- WebPartConnectionsConfigureVerb.cs
- CodePageEncoding.cs
- MtomMessageEncoder.cs
- SecurityTimestamp.cs
- TagPrefixCollection.cs
- SafeCryptoHandles.cs
- GroupBox.cs
- hresults.cs
- DesignBinding.cs
- Separator.cs
- CodeAttachEventStatement.cs
- ValidationErrorCollection.cs
- XmlException.cs
- ExceptionUtil.cs
- DataControlFieldCollection.cs
- OdbcParameter.cs
- RegionData.cs
- BulletDecorator.cs
- StaticExtension.cs
- WebServicesSection.cs
- SQLBinary.cs
- HttpListener.cs
- SystemUdpStatistics.cs
- relpropertyhelper.cs
- GroupStyle.cs
- WebResourceAttribute.cs
- DataControlFieldHeaderCell.cs
- ISFTagAndGuidCache.cs
- Stopwatch.cs
- OleAutBinder.cs
- QilGenerator.cs
- DataControlButton.cs
- COM2Enum.cs
- XmlSchemaImport.cs
- WindowsGraphicsCacheManager.cs
- SmtpException.cs
- MemberPath.cs
- PermissionAttributes.cs
- HMACSHA256.cs
- PageStatePersister.cs
- TraceContextEventArgs.cs
- CheckBox.cs
- DataSourceXmlSubItemAttribute.cs
- DoubleAnimationBase.cs
- SequenceDesigner.xaml.cs
- ExpressionBuilderCollection.cs
- PlatformCulture.cs
- SQLInt16Storage.cs
- DataException.cs
- TrackingProfileDeserializationException.cs
- ChannelReliableSession.cs
- TreeView.cs
- ISAPIApplicationHost.cs
- Int32AnimationUsingKeyFrames.cs
- DesignerOptionService.cs
- SecurityUtils.cs
- FunctionOverloadResolver.cs
- XmlQueryStaticData.cs
- AnnotationAdorner.cs
- DependencySource.cs
- WpfPayload.cs
- ContractMapping.cs
- TableRowGroup.cs