Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BitmapSizeOptions.cs
- XsdValidatingReader.cs
- TextDecorationLocationValidation.cs
- ColorTransformHelper.cs
- ProfileService.cs
- WindowsScrollBarBits.cs
- DataTable.cs
- NullableIntSumAggregationOperator.cs
- WindowsListViewGroupSubsetLink.cs
- SerializableAttribute.cs
- WinHttpWebProxyFinder.cs
- SoundPlayer.cs
- TrueReadOnlyCollection.cs
- FunctionGenerator.cs
- Privilege.cs
- BuildProviderUtils.cs
- Trigger.cs
- HtmlLink.cs
- ParentQuery.cs
- Vector3DAnimationBase.cs
- Boolean.cs
- TableParaClient.cs
- XmlSchemaComplexType.cs
- Scheduler.cs
- FilterQuery.cs
- RadioButtonRenderer.cs
- RuleRef.cs
- DataColumnMappingCollection.cs
- TimeEnumHelper.cs
- BindableAttribute.cs
- AnimationException.cs
- NominalTypeEliminator.cs
- ToolStripItemTextRenderEventArgs.cs
- EncoderBestFitFallback.cs
- SettingsContext.cs
- HyperLinkStyle.cs
- QilInvokeLateBound.cs
- MetadataPropertyAttribute.cs
- LookupBindingPropertiesAttribute.cs
- DataColumn.cs
- Propagator.ExtentPlaceholderCreator.cs
- EntityReference.cs
- WeakHashtable.cs
- TextServicesPropertyRanges.cs
- SQLChars.cs
- ActiveXHelper.cs
- WindowsTokenRoleProvider.cs
- UmAlQuraCalendar.cs
- WindowsUpDown.cs
- CanonicalFormWriter.cs
- Expressions.cs
- NotFiniteNumberException.cs
- DataListItemCollection.cs
- InkCanvasFeedbackAdorner.cs
- TextCollapsingProperties.cs
- TypeConstant.cs
- WebPartDisplayMode.cs
- IISMapPath.cs
- FilteredXmlReader.cs
- ObjectDataSourceSelectingEventArgs.cs
- DataGridViewEditingControlShowingEventArgs.cs
- UserPersonalizationStateInfo.cs
- BitmapFrameDecode.cs
- CfgRule.cs
- SslStream.cs
- ActivityDesigner.cs
- StateBag.cs
- QilSortKey.cs
- RoutedEventArgs.cs
- __Filters.cs
- Stylus.cs
- SafeNativeMethods.cs
- RegexNode.cs
- CodeEventReferenceExpression.cs
- COM2Enum.cs
- UpdateExpressionVisitor.cs
- DataTableTypeConverter.cs
- InkCanvasAutomationPeer.cs
- PackagePart.cs
- SystemIcons.cs
- FormsAuthenticationUser.cs
- HyperLinkStyle.cs
- ElementUtil.cs
- HwndSourceParameters.cs
- BordersPage.cs
- DefaultMemberAttribute.cs
- StateDesignerConnector.cs
- AssemblyCollection.cs
- UnaryNode.cs
- _NetworkingPerfCounters.cs
- TableCell.cs
- CheckBoxField.cs
- HandlerBase.cs
- EmbeddedObject.cs
- EpmAttributeNameBuilder.cs
- ClientUIRequest.cs
- XmlWrappingReader.cs
- SerializationUtility.cs
- SafeUserTokenHandle.cs
- DrawingGroupDrawingContext.cs