Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- OleDbEnumerator.cs
- ZipIOLocalFileHeader.cs
- Module.cs
- DayRenderEvent.cs
- HandlerWithFactory.cs
- SqlGenerator.cs
- DataGridViewCellConverter.cs
- VirtualizingPanel.cs
- ProcessHostMapPath.cs
- OracleException.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- PolygonHotSpot.cs
- ValidationEventArgs.cs
- DataSourceExpression.cs
- TextEffect.cs
- GuidelineSet.cs
- Privilege.cs
- nulltextnavigator.cs
- MetadataUtilsSmi.cs
- DataServiceStreamResponse.cs
- KeyInstance.cs
- StateDesigner.Helpers.cs
- xmlfixedPageInfo.cs
- InstanceLockLostException.cs
- TemplateControl.cs
- ValidatorAttribute.cs
- IItemProperties.cs
- DocumentReference.cs
- EntityContainerRelationshipSetEnd.cs
- ContainerUtilities.cs
- JapaneseCalendar.cs
- HeaderUtility.cs
- PropagatorResult.cs
- DataControlFieldCollection.cs
- MatrixTransform.cs
- EditorZoneBase.cs
- FlowLayoutPanelDesigner.cs
- Latin1Encoding.cs
- WmlMobileTextWriter.cs
- MachineKeyConverter.cs
- ItemsChangedEventArgs.cs
- TraceLevelHelper.cs
- TextEffectResolver.cs
- DetailsViewDeletedEventArgs.cs
- Semaphore.cs
- FactoryGenerator.cs
- TimeoutConverter.cs
- QuotedStringWriteStateInfo.cs
- DataGridViewCellLinkedList.cs
- ServiceInfo.cs
- ButtonFieldBase.cs
- InterleavedZipPartStream.cs
- WebPartManager.cs
- MetadataArtifactLoader.cs
- ReaderWriterLockWrapper.cs
- Privilege.cs
- XmlSchemaAnnotated.cs
- ColorAnimationBase.cs
- Int32Collection.cs
- GACIdentityPermission.cs
- Point3D.cs
- ClrPerspective.cs
- TypedTableBase.cs
- RequestQueryProcessor.cs
- MsmqPoisonMessageException.cs
- NavigationProgressEventArgs.cs
- DrawingContextWalker.cs
- ServiceModelEnhancedConfigurationElementCollection.cs
- OleServicesContext.cs
- Scene3D.cs
- Comparer.cs
- CellTreeNodeVisitors.cs
- Int32CollectionValueSerializer.cs
- StorageAssociationTypeMapping.cs
- XPathCompileException.cs
- DataGridAutoFormatDialog.cs
- TimeSpan.cs
- Visual.cs
- ProcessingInstructionAction.cs
- KeyboardNavigation.cs
- isolationinterop.cs
- ActivitySurrogateSelector.cs
- CalculatedColumn.cs
- TypeDescriptor.cs
- KeyConstraint.cs
- UIElementHelper.cs
- Vector.cs
- DecoderBestFitFallback.cs
- DataControlCommands.cs
- SwitchLevelAttribute.cs
- ServiceModelExtensionElement.cs
- ToolStripArrowRenderEventArgs.cs
- SubqueryRules.cs
- ScrollProviderWrapper.cs
- EventHandlerList.cs
- AudienceUriMode.cs
- DTCTransactionManager.cs
- EntityException.cs
- CounterCreationDataCollection.cs
- ResizingMessageFilter.cs