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 / DiffuseMaterial.cs / 1 / DiffuseMaterial.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: 3D diffuse material // // See spec at *** FILL IN LATER *** // // History: // 06/25/2003 : t-gregr - Created // 01/28/2005 : jordanpa - Renamed BrushMaterial to DiffuseMaterial // //--------------------------------------------------------------------------- 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 { ////// DiffuseMaterial allows a 2d brush to be used on a 3d model that has been lit /// with a diffuse lighting model /// public sealed partial class DiffuseMaterial : Material { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors ////// Constructs a DiffuseMaterial /// public DiffuseMaterial() { } ////// Constructor that sets the Brush property to "brush" /// /// The new material's brush public DiffuseMaterial(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 diffuse material // // See spec at *** FILL IN LATER *** // // History: // 06/25/2003 : t-gregr - Created // 01/28/2005 : jordanpa - Renamed BrushMaterial to DiffuseMaterial // //--------------------------------------------------------------------------- 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 { ////// DiffuseMaterial allows a 2d brush to be used on a 3d model that has been lit /// with a diffuse lighting model /// public sealed partial class DiffuseMaterial : Material { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors ////// Constructs a DiffuseMaterial /// public DiffuseMaterial() { } ////// Constructor that sets the Brush property to "brush" /// /// The new material's brush public DiffuseMaterial(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
- PagerSettings.cs
- CodeEventReferenceExpression.cs
- HttpListenerRequest.cs
- DecoderNLS.cs
- HtmlWindow.cs
- XmlCharType.cs
- SoapEnumAttribute.cs
- VisualProxy.cs
- securestring.cs
- JsonSerializer.cs
- SmiEventSink.cs
- DetailsViewDesigner.cs
- LeaseManager.cs
- FunctionDescription.cs
- DeploymentSectionCache.cs
- SafeArrayTypeMismatchException.cs
- ContainerTracking.cs
- DocumentViewerHelper.cs
- WebPartZoneCollection.cs
- SoapAttributes.cs
- GeometryDrawing.cs
- BitmapScalingModeValidation.cs
- WmiEventSink.cs
- BooleanProjectedSlot.cs
- ProtocolState.cs
- CodeCommentStatement.cs
- CatalogZone.cs
- DoubleMinMaxAggregationOperator.cs
- HttpInputStream.cs
- EncodedStreamFactory.cs
- WebPartConnectionCollection.cs
- CheckBoxPopupAdapter.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- PostBackOptions.cs
- ProviderUtil.cs
- DataGridItemEventArgs.cs
- XmlSignatureProperties.cs
- Grant.cs
- ElapsedEventArgs.cs
- Content.cs
- shaperfactoryquerycachekey.cs
- DoWhile.cs
- Point3DCollectionConverter.cs
- BitmapEffectCollection.cs
- HtmlInputPassword.cs
- UnsafeCollabNativeMethods.cs
- FlowDocumentView.cs
- TreeView.cs
- SoundPlayer.cs
- RenameRuleObjectDialog.cs
- SqlClientFactory.cs
- MessageRpc.cs
- Converter.cs
- XmlSignatureProperties.cs
- HandlerBase.cs
- ContentType.cs
- DbExpressionVisitor.cs
- TransformGroup.cs
- JpegBitmapEncoder.cs
- ConfigurationLoader.cs
- SystemWebExtensionsSectionGroup.cs
- SafeNativeMethodsMilCoreApi.cs
- TargetException.cs
- WindowsScroll.cs
- SoapExtension.cs
- VisualTreeUtils.cs
- AssociationSetEnd.cs
- ImageSourceValueSerializer.cs
- RequestStatusBarUpdateEventArgs.cs
- RoleManagerSection.cs
- ActivityDesignerAccessibleObject.cs
- MdiWindowListStrip.cs
- ParagraphVisual.cs
- exports.cs
- Error.cs
- ConfigXmlText.cs
- Int32CollectionConverter.cs
- SQLStringStorage.cs
- ServiceDescriptionReflector.cs
- RuntimeHelpers.cs
- QueryConverter.cs
- UnrecognizedAssertionsBindingElement.cs
- LineServices.cs
- HMACSHA384.cs
- TraceContext.cs
- ImageList.cs
- ToolBarOverflowPanel.cs
- InputLangChangeRequestEvent.cs
- Propagator.Evaluator.cs
- StateMachine.cs
- ExpressionWriter.cs
- SafeNativeMethodsOther.cs
- ResourceReferenceExpression.cs
- SqlUDTStorage.cs
- Vector3DCollectionValueSerializer.cs
- EdmFunctions.cs
- ScriptResourceAttribute.cs
- XmlMembersMapping.cs
- StringInfo.cs
- ReaderWriterLockWrapper.cs