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
- XmlWellformedWriterHelpers.cs
- DeviceContext2.cs
- RectangleGeometry.cs
- MatrixValueSerializer.cs
- AutoScrollExpandMessageFilter.cs
- Color.cs
- ScopelessEnumAttribute.cs
- WebBaseEventKeyComparer.cs
- FileVersion.cs
- PerformanceCounterPermission.cs
- VirtualPathProvider.cs
- WebAdminConfigurationHelper.cs
- WebEventCodes.cs
- Regex.cs
- ProfilePropertyMetadata.cs
- TemplateBaseAction.cs
- JumpItem.cs
- Timeline.cs
- ButtonField.cs
- FaultDesigner.cs
- GPStream.cs
- JournalEntry.cs
- CodeMemberMethod.cs
- Object.cs
- DataControlPagerLinkButton.cs
- ContainerParagraph.cs
- LingerOption.cs
- BoundPropertyEntry.cs
- Trigger.cs
- ObjectTypeMapping.cs
- Schema.cs
- RuntimeConfigLKG.cs
- StatusStrip.cs
- DataGridHeaderBorder.cs
- NumberFormatInfo.cs
- Int32Rect.cs
- ModifierKeysConverter.cs
- SemanticAnalyzer.cs
- SqlTypeSystemProvider.cs
- linebase.cs
- ColumnBinding.cs
- TextRangeEditTables.cs
- Tokenizer.cs
- SizeConverter.cs
- Base64Encoder.cs
- WebPartMinimizeVerb.cs
- EnumValidator.cs
- FileStream.cs
- ClearTypeHintValidation.cs
- NotCondition.cs
- Int64Converter.cs
- ComboBoxAutomationPeer.cs
- ServicesExceptionNotHandledEventArgs.cs
- ActiveDocumentEvent.cs
- PasswordDeriveBytes.cs
- ContractMethodParameterInfo.cs
- AssemblyUtil.cs
- UserInitiatedNavigationPermission.cs
- Point3DKeyFrameCollection.cs
- DriveInfo.cs
- ScriptControlDescriptor.cs
- InvalidWMPVersionException.cs
- BlockExpression.cs
- CacheEntry.cs
- LayoutExceptionEventArgs.cs
- ExpressionPrinter.cs
- SerializationIncompleteException.cs
- WorkflowEnvironment.cs
- ViewStateException.cs
- DetailsViewCommandEventArgs.cs
- Msec.cs
- CommandCollectionEditor.cs
- Int16AnimationUsingKeyFrames.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- FormsAuthenticationCredentials.cs
- DbProviderServices.cs
- GradientStop.cs
- UriTemplateClientFormatter.cs
- Message.cs
- APCustomTypeDescriptor.cs
- GridViewSortEventArgs.cs
- SortAction.cs
- SoapAttributeAttribute.cs
- EditorZoneBase.cs
- ClientSettingsProvider.cs
- CodeVariableReferenceExpression.cs
- EastAsianLunisolarCalendar.cs
- StdRegProviderWrapper.cs
- StateBag.cs
- ParserHooks.cs
- ZipQueryOperator.cs
- ServiceHttpHandlerFactory.cs
- FlowDocumentReaderAutomationPeer.cs
- SmiEventSink_DeferedProcessing.cs
- Sentence.cs
- ToolStripPanelCell.cs
- XmlDocumentViewSchema.cs
- DbConnectionPoolOptions.cs
- NamedPipeConnectionPool.cs
- IndexOutOfRangeException.cs