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
- ImmComposition.cs
- ToolStripKeyboardHandlingService.cs
- BitmapEncoder.cs
- RoutedEventArgs.cs
- CodeExporter.cs
- ServerIdentity.cs
- securitycriticaldataformultiplegetandset.cs
- SelectionHighlightInfo.cs
- DataObjectEventArgs.cs
- Oid.cs
- ReaderContextStackData.cs
- NavigationPropertyEmitter.cs
- ChangeConflicts.cs
- NativeMethodsOther.cs
- SafeNativeMethods.cs
- NullableDoubleSumAggregationOperator.cs
- PersonalizableAttribute.cs
- SpellerInterop.cs
- KeyValuePairs.cs
- WebPartEditVerb.cs
- MulticastNotSupportedException.cs
- HttpWrapper.cs
- MetabaseSettingsIis7.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- Rules.cs
- TypeElement.cs
- ContractMapping.cs
- FrameAutomationPeer.cs
- ProcessModuleCollection.cs
- RuntimeIdentifierPropertyAttribute.cs
- RequestCachePolicyConverter.cs
- IdentityHolder.cs
- StaticResourceExtension.cs
- TTSEngineTypes.cs
- SectionXmlInfo.cs
- CodeNamespaceCollection.cs
- _LocalDataStoreMgr.cs
- ColorInterpolationModeValidation.cs
- GenericUI.cs
- ButtonBaseDesigner.cs
- OperatingSystemVersionCheck.cs
- ControlPaint.cs
- InternalConfigEventArgs.cs
- XmlEncoding.cs
- XPathDocument.cs
- BackStopAuthenticationModule.cs
- QueryCursorEventArgs.cs
- TypeGeneratedEventArgs.cs
- ToolStripRenderer.cs
- XPathAncestorQuery.cs
- OleDbSchemaGuid.cs
- QueueSurrogate.cs
- LightweightEntityWrapper.cs
- CodeIterationStatement.cs
- externdll.cs
- ScriptBehaviorDescriptor.cs
- TextTreeExtractElementUndoUnit.cs
- ThicknessKeyFrameCollection.cs
- FastEncoder.cs
- EntityDataSourceState.cs
- AliasGenerator.cs
- DataTableMappingCollection.cs
- ClusterSafeNativeMethods.cs
- ClientApiGenerator.cs
- PersistenceTypeAttribute.cs
- CustomCredentialPolicy.cs
- EntityProviderFactory.cs
- ExtensibleClassFactory.cs
- ContentPosition.cs
- DynamicResourceExtension.cs
- SharedConnectionListener.cs
- FlowPosition.cs
- Win32SafeHandles.cs
- EntityDesignerDataSourceView.cs
- ZipIOLocalFileHeader.cs
- ToolStripContentPanelDesigner.cs
- WeakReadOnlyCollection.cs
- AdvancedBindingEditor.cs
- OleServicesContext.cs
- TrustLevel.cs
- XmlEncodedRawTextWriter.cs
- WebPartZoneAutoFormat.cs
- ReversePositionQuery.cs
- StreamGeometryContext.cs
- XamlReaderHelper.cs
- URLString.cs
- OrthographicCamera.cs
- DrawListViewSubItemEventArgs.cs
- TabPanel.cs
- ConfigXmlReader.cs
- FunctionImportElement.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- ellipse.cs
- SerializationStore.cs
- PackageFilter.cs
- DesigntimeLicenseContext.cs
- ADMembershipProvider.cs
- UnionCodeGroup.cs
- ClientScriptManager.cs
- EdmComplexTypeAttribute.cs