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
- HttpDebugHandler.cs
- SqlCrossApplyToCrossJoin.cs
- PinnedBufferMemoryStream.cs
- XmlLoader.cs
- AttachedAnnotation.cs
- OperationAbortedException.cs
- SubpageParaClient.cs
- TypeReference.cs
- OdbcException.cs
- WebControlParameterProxy.cs
- ErrorFormatter.cs
- TransformerTypeCollection.cs
- XmlnsDictionary.cs
- XmlSchema.cs
- PathSegment.cs
- ByteKeyFrameCollection.cs
- SQLInt32Storage.cs
- WorkflowItemsPresenter.cs
- oledbmetadatacollectionnames.cs
- InputMethodStateTypeInfo.cs
- Comparer.cs
- DiffuseMaterial.cs
- DataGridTable.cs
- WebPartAuthorizationEventArgs.cs
- SystemIPv4InterfaceProperties.cs
- OleDbFactory.cs
- FixedFindEngine.cs
- StackSpiller.Bindings.cs
- CaseExpr.cs
- _RequestCacheProtocol.cs
- X509SubjectKeyIdentifierClause.cs
- PrimitiveRenderer.cs
- Preprocessor.cs
- MdImport.cs
- XmlSchemaGroupRef.cs
- UpdateTracker.cs
- RoleGroup.cs
- FrameworkElementFactory.cs
- ConfigurationManagerHelperFactory.cs
- basecomparevalidator.cs
- SelectQueryOperator.cs
- BaseProcessor.cs
- IsolatedStorageFileStream.cs
- SelfIssuedAuthRSAPKCS1SignatureFormatter.cs
- XmlHierarchyData.cs
- VersionedStreamOwner.cs
- IfJoinedCondition.cs
- NameNode.cs
- MachineKeySection.cs
- DelegatingConfigHost.cs
- PersonalizationStateQuery.cs
- SharedDp.cs
- ClientType.cs
- Int32Storage.cs
- GroupBoxAutomationPeer.cs
- DeobfuscatingStream.cs
- PersistenceProviderDirectory.cs
- _TransmitFileOverlappedAsyncResult.cs
- BuildProvider.cs
- HostingEnvironmentException.cs
- FormatSettings.cs
- DecimalStorage.cs
- XmlBinaryReaderSession.cs
- SHA512.cs
- BufferedReadStream.cs
- DiscoveryReferences.cs
- ChannelEndpointElement.cs
- DivideByZeroException.cs
- DataControlFieldCell.cs
- ExitEventArgs.cs
- AssociativeAggregationOperator.cs
- Parameter.cs
- WebRequestModuleElementCollection.cs
- DotExpr.cs
- SqlConnectionStringBuilder.cs
- CqlWriter.cs
- DataGrid.cs
- cookiecollection.cs
- WaveHeader.cs
- AmbientValueAttribute.cs
- SqlProfileProvider.cs
- SmiEventSink_Default.cs
- ValidationService.cs
- RtfToXamlLexer.cs
- SafeBitVector32.cs
- ToolBar.cs
- CompilationSection.cs
- ipaddressinformationcollection.cs
- ApplicationTrust.cs
- CustomErrorCollection.cs
- RefreshPropertiesAttribute.cs
- MobileCapabilities.cs
- ServiceHostingEnvironment.cs
- WaitForChangedResult.cs
- CodeCompileUnit.cs
- XmlMemberMapping.cs
- ClientSettingsSection.cs
- AnnotationComponentManager.cs
- HttpListenerException.cs
- COM2Properties.cs