Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- Menu.cs
- XmlBinaryReader.cs
- BaseTemplateBuildProvider.cs
- BamlLocalizableResource.cs
- DocumentPaginator.cs
- ViewCellRelation.cs
- TypeConverter.cs
- NegotiationTokenAuthenticatorState.cs
- ListItemParagraph.cs
- SoundPlayer.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- PreApplicationStartMethodAttribute.cs
- LayoutManager.cs
- ChangeDirector.cs
- DeliveryStrategy.cs
- DSASignatureFormatter.cs
- PasswordRecovery.cs
- XmlConverter.cs
- ImageBrush.cs
- SoapWriter.cs
- ClientScriptManagerWrapper.cs
- SmtpReplyReaderFactory.cs
- MimeMapping.cs
- CqlParserHelpers.cs
- SqlExpressionNullability.cs
- RegexWorker.cs
- ListBindableAttribute.cs
- RSAPKCS1SignatureFormatter.cs
- CorruptingExceptionCommon.cs
- UpWmlPageAdapter.cs
- DataChangedEventManager.cs
- RegexTree.cs
- Membership.cs
- UIElementAutomationPeer.cs
- ContextMenu.cs
- Char.cs
- MaterializeFromAtom.cs
- Camera.cs
- StringAnimationUsingKeyFrames.cs
- DataGridViewRowCollection.cs
- QilSortKey.cs
- GrammarBuilder.cs
- Facet.cs
- ProviderUtil.cs
- PrefixHandle.cs
- SubqueryTrackingVisitor.cs
- ProfilePropertySettingsCollection.cs
- PreservationFileReader.cs
- PropVariant.cs
- ServiceAuthorizationElement.cs
- TimelineGroup.cs
- ClientUtils.cs
- SmiRequestExecutor.cs
- ASCIIEncoding.cs
- Char.cs
- TreeViewItemAutomationPeer.cs
- PresentationSource.cs
- XmlSignatureManifest.cs
- EncoderNLS.cs
- CodeEventReferenceExpression.cs
- ProgressBarBrushConverter.cs
- SpecialTypeDataContract.cs
- GlyphCollection.cs
- AnalyzedTree.cs
- Connector.cs
- ConfigXmlSignificantWhitespace.cs
- FontFamilyConverter.cs
- WebServiceTypeData.cs
- HyperLink.cs
- HashCodeCombiner.cs
- OperationExecutionFault.cs
- BuildResult.cs
- VerticalAlignConverter.cs
- MSHTMLHost.cs
- Message.cs
- MenuItemStyleCollection.cs
- DataKeyCollection.cs
- FlowNode.cs
- Code.cs
- Viewport3DVisual.cs
- JsonEncodingStreamWrapper.cs
- WebPartConnection.cs
- TdsParserSessionPool.cs
- SamlSecurityTokenAuthenticator.cs
- FilteredReadOnlyMetadataCollection.cs
- InputReport.cs
- TypeNameConverter.cs
- ListBoxItem.cs
- WebPartZoneBaseDesigner.cs
- DataBindingHandlerAttribute.cs
- EllipseGeometry.cs
- DiscoveryDocumentSearchPattern.cs
- FileDetails.cs
- KeyInstance.cs
- WsiProfilesElement.cs
- Menu.cs
- MailSettingsSection.cs
- TaskbarItemInfo.cs
- EndpointConfigContainer.cs
- ResizeBehavior.cs