Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- CompilerInfo.cs
- TreeViewImageGenerator.cs
- OptimizedTemplateContentHelper.cs
- ElementsClipboardData.cs
- SubMenuStyleCollection.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- FixedSOMTextRun.cs
- EntityContainer.cs
- ClientFormsIdentity.cs
- WebService.cs
- RowType.cs
- TemplateControl.cs
- SystemInformation.cs
- XmlSyndicationContent.cs
- DocumentScope.cs
- StorageEntitySetMapping.cs
- Roles.cs
- recordstatefactory.cs
- MarkedHighlightComponent.cs
- XsdDataContractExporter.cs
- TreeViewItemAutomationPeer.cs
- ObjectManager.cs
- DataContext.cs
- HtmlInputHidden.cs
- TableRow.cs
- DocumentPaginator.cs
- WebDisplayNameAttribute.cs
- Geometry3D.cs
- TemplateBindingExpression.cs
- PartialArray.cs
- shaperfactory.cs
- TypedTableBaseExtensions.cs
- AvtEvent.cs
- Logging.cs
- BinaryObjectWriter.cs
- PackWebResponse.cs
- OrCondition.cs
- SourceInterpreter.cs
- PeerChannelListener.cs
- ByteStack.cs
- CollectionChangeEventArgs.cs
- DatePickerDateValidationErrorEventArgs.cs
- EntityContainer.cs
- DynamicILGenerator.cs
- RichListBox.cs
- PageThemeCodeDomTreeGenerator.cs
- ProfileProvider.cs
- EventLogEntryCollection.cs
- ApplicationHost.cs
- UpdatableWrapper.cs
- ItemsPanelTemplate.cs
- RuleSettings.cs
- ReferenceSchema.cs
- BindUriHelper.cs
- SamlConditions.cs
- RelationshipWrapper.cs
- DigitShape.cs
- AvTrace.cs
- ImageClickEventArgs.cs
- SamlAssertionKeyIdentifierClause.cs
- DataGridViewButtonColumn.cs
- Flattener.cs
- BrowserCapabilitiesFactoryBase.cs
- AnnotationDocumentPaginator.cs
- ServiceX509SecurityTokenProvider.cs
- ControlOperationInvoker.cs
- XmlDocumentFragment.cs
- PersistStreamTypeWrapper.cs
- FixedBufferAttribute.cs
- ActiveXSite.cs
- SQLChars.cs
- MediaPlayerState.cs
- ErrorsHelper.cs
- HttpModulesSection.cs
- DropDownButton.cs
- Geometry3D.cs
- DateTimePicker.cs
- ServiceNotStartedException.cs
- ToolStripHighContrastRenderer.cs
- CompensateDesigner.cs
- AmbientLight.cs
- RootBrowserWindowProxy.cs
- CompositeCollection.cs
- Tokenizer.cs
- Odbc32.cs
- MetadataArtifactLoaderCompositeFile.cs
- RSATokenProvider.cs
- ObjectStateFormatter.cs
- ClientOptions.cs
- CacheAxisQuery.cs
- SrgsSemanticInterpretationTag.cs
- SamlAssertion.cs
- RequestQueryProcessor.cs
- SystemIPv6InterfaceProperties.cs
- AnchoredBlock.cs
- EventLogQuery.cs
- Rect3DConverter.cs
- IIS7WorkerRequest.cs
- CssClassPropertyAttribute.cs
- ChangePassword.cs