Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / System / Windows / Media3D / SpecularMaterial.cs / 1 / SpecularMaterial.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: 3D specular 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 { ////// SpecularMaterial allows a 2d brush to be used on a 3d model that has been lit /// with a specular lighting model /// public sealed partial class SpecularMaterial : Material { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors ////// Constructs a SpecularMaterial /// public SpecularMaterial() { } ////// Constructor that sets the initial values /// /// The new material's brush /// The specular exponent. public SpecularMaterial(Brush brush, double specularPower) { Brush = brush; SpecularPower = specularPower; } #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 specular 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 { ////// SpecularMaterial allows a 2d brush to be used on a 3d model that has been lit /// with a specular lighting model /// public sealed partial class SpecularMaterial : Material { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors ////// Constructs a SpecularMaterial /// public SpecularMaterial() { } ////// Constructor that sets the initial values /// /// The new material's brush /// The specular exponent. public SpecularMaterial(Brush brush, double specularPower) { Brush = brush; SpecularPower = specularPower; } #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
- DirectoryNotFoundException.cs
- WindowInteropHelper.cs
- DbDataSourceEnumerator.cs
- TypeElement.cs
- SafeCertificateStore.cs
- FileResponseElement.cs
- PathGeometry.cs
- DLinqAssociationProvider.cs
- ApplicationFileParser.cs
- MappingModelBuildProvider.cs
- HttpCookie.cs
- DefaultTraceListener.cs
- SizeF.cs
- WebPartHeaderCloseVerb.cs
- StorageRoot.cs
- ProcessModuleCollection.cs
- ChtmlTextWriter.cs
- SqlConnectionHelper.cs
- XmlWhitespace.cs
- ITreeGenerator.cs
- MessageRpc.cs
- Error.cs
- ConstNode.cs
- OperatorExpressions.cs
- DataReaderContainer.cs
- DesignerLoader.cs
- ConfigXmlSignificantWhitespace.cs
- ThreadInterruptedException.cs
- EmissiveMaterial.cs
- ImportedNamespaceContextItem.cs
- Ipv6Element.cs
- ExtensionQuery.cs
- DiagnosticTraceRecords.cs
- GetPageCompletedEventArgs.cs
- MasterPage.cs
- webclient.cs
- WindowsGrip.cs
- ExceptionNotification.cs
- ProxyElement.cs
- ConfigurationLocationCollection.cs
- EditingMode.cs
- ToolStripSeparator.cs
- fixedPageContentExtractor.cs
- TogglePattern.cs
- Environment.cs
- TextContainer.cs
- CheckableControlBaseAdapter.cs
- RTLAwareMessageBox.cs
- Encoder.cs
- ThreadInterruptedException.cs
- UpdateTranslator.cs
- SimpleTypesSurrogate.cs
- User.cs
- Context.cs
- SimpleBitVector32.cs
- WebPartEditorApplyVerb.cs
- DotExpr.cs
- SmiContext.cs
- FileAccessException.cs
- CompareValidator.cs
- ContourSegment.cs
- ConfigXmlComment.cs
- XmlDataLoader.cs
- MetafileHeader.cs
- InstancePersistenceException.cs
- RectAnimationClockResource.cs
- AnnotationDocumentPaginator.cs
- DataGridViewImageCell.cs
- RemoteCryptoRsaServiceProvider.cs
- __Error.cs
- ProfileService.cs
- RMPermissions.cs
- PrimitiveXmlSerializers.cs
- NetStream.cs
- MatrixAnimationUsingPath.cs
- SQLString.cs
- DataGridViewRowPostPaintEventArgs.cs
- StringCollection.cs
- RSAPKCS1SignatureDeformatter.cs
- _FtpDataStream.cs
- EntitySet.cs
- PresentationAppDomainManager.cs
- FormViewPageEventArgs.cs
- TreeNodeStyleCollectionEditor.cs
- XPathNodePointer.cs
- TypeForwardedFromAttribute.cs
- SHA512Managed.cs
- SystemNetworkInterface.cs
- ContentElement.cs
- SmiContext.cs
- TemplateBaseAction.cs
- NavigationFailedEventArgs.cs
- Byte.cs
- ActionFrame.cs
- ConsoleKeyInfo.cs
- RolePrincipal.cs
- Rotation3DAnimationBase.cs
- DataSvcMapFile.cs
- MethodBuilderInstantiation.cs
- CallbackHandler.cs