Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media3D / Light.cs / 1305600 / Light.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: 3D light implementation. // // See spec at http://avalon/medialayer/Specifications/Avalon3D%20API%20Spec.mht // // History: // 06/18/2003 : t-gregr - Created // //--------------------------------------------------------------------------- using System; using System.Diagnostics; using System.Windows.Media; using MS.Internal.Media3D; namespace System.Windows.Media.Media3D { ////// Lights are Model3D's. These include Ambient, Positional, Directional and Spot lights. /// They're very much modeled on the Direct3D lighting set, but have the additional /// property of being part of a modeling hierarchy, and are thus subject to coordinate /// space transformations. /// public abstract partial class Light : Model3D { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors // Prevent 3rd parties from extending this abstract base class. internal Light() {} #endregion Constructors //------------------------------------------------------ // // Public Methods // //----------------------------------------------------- //------------------------------------------------------ // // Public Properties // //------------------------------------------------------ #region Public Properties internal override void RayHitTestCore(RayHitTestParameters rayParams) { // Lights are considered to be part of the model graph, but they // have no geometry and therefore can not be hit tested. } internal override Rect3D CalculateSubgraphBoundsInnerSpace() { // Lights are considered to be part of the model graph, but they // have no geometry and therefore no bounds. return Rect3D.Empty; } #endregion Public Properties } } // 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 light implementation. // // See spec at http://avalon/medialayer/Specifications/Avalon3D%20API%20Spec.mht // // History: // 06/18/2003 : t-gregr - Created // //--------------------------------------------------------------------------- using System; using System.Diagnostics; using System.Windows.Media; using MS.Internal.Media3D; namespace System.Windows.Media.Media3D { ////// Lights are Model3D's. These include Ambient, Positional, Directional and Spot lights. /// They're very much modeled on the Direct3D lighting set, but have the additional /// property of being part of a modeling hierarchy, and are thus subject to coordinate /// space transformations. /// public abstract partial class Light : Model3D { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors // Prevent 3rd parties from extending this abstract base class. internal Light() {} #endregion Constructors //------------------------------------------------------ // // Public Methods // //----------------------------------------------------- //------------------------------------------------------ // // Public Properties // //------------------------------------------------------ #region Public Properties internal override void RayHitTestCore(RayHitTestParameters rayParams) { // Lights are considered to be part of the model graph, but they // have no geometry and therefore can not be hit tested. } internal override Rect3D CalculateSubgraphBoundsInnerSpace() { // Lights are considered to be part of the model graph, but they // have no geometry and therefore no bounds. return Rect3D.Empty; } #endregion Public Properties } } // 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
- TextDpi.cs
- UnsafeNativeMethodsCLR.cs
- WebPartsPersonalization.cs
- ListItem.cs
- FixedStringLookup.cs
- KeyProperty.cs
- StylusShape.cs
- AddInStore.cs
- SafeFileHandle.cs
- Crc32.cs
- CommandDesigner.cs
- HttpHandlersSection.cs
- CodeTryCatchFinallyStatement.cs
- IndentTextWriter.cs
- SqlInternalConnectionSmi.cs
- WorkflowShape.cs
- FixedSOMTextRun.cs
- SqlClientFactory.cs
- BrowserCapabilitiesCodeGenerator.cs
- DataPagerCommandEventArgs.cs
- DocumentOutline.cs
- ProjectedWrapper.cs
- SchemaReference.cs
- querybuilder.cs
- XmlElementCollection.cs
- TickBar.cs
- SettingsSection.cs
- CancelEventArgs.cs
- MultiTrigger.cs
- PEFileEvidenceFactory.cs
- TypeContext.cs
- SqlDeflator.cs
- FileDialog_Vista.cs
- EventBindingService.cs
- EntityDataSourceReferenceGroup.cs
- WMIInterop.cs
- AttachedAnnotation.cs
- OleDbParameterCollection.cs
- XPathDocumentIterator.cs
- DispatcherSynchronizationContext.cs
- ControlIdConverter.cs
- baseaxisquery.cs
- NewExpression.cs
- returneventsaver.cs
- ProtocolsConfigurationHandler.cs
- AspNetPartialTrustHelpers.cs
- ReturnValue.cs
- InitializationEventAttribute.cs
- LinqDataSourceValidationException.cs
- CodeChecksumPragma.cs
- CredentialCache.cs
- storepermissionattribute.cs
- QueryParameter.cs
- Expression.cs
- UIElement3D.cs
- AppDomain.cs
- ClientEventManager.cs
- SmtpNegotiateAuthenticationModule.cs
- XmlSignificantWhitespace.cs
- SessionSymmetricMessageSecurityProtocolFactory.cs
- WMICapabilities.cs
- FindCriteriaElement.cs
- Image.cs
- ExplicitDiscriminatorMap.cs
- InfoCardHelper.cs
- PackageDigitalSignature.cs
- DragDropManager.cs
- TemplateContainer.cs
- COM2FontConverter.cs
- DBSchemaRow.cs
- WhitespaceRuleReader.cs
- CapiNative.cs
- XsltFunctions.cs
- SqlWorkflowInstanceStoreLock.cs
- FilteredAttributeCollection.cs
- InheritedPropertyChangedEventArgs.cs
- QueryPrefixOp.cs
- NestPullup.cs
- MouseWheelEventArgs.cs
- XmlSequenceWriter.cs
- ContentElement.cs
- BinaryMessageEncodingBindingElement.cs
- XmlQueryTypeFactory.cs
- EdmMember.cs
- MenuItemBinding.cs
- StyleHelper.cs
- TargetPerspective.cs
- PageSetupDialog.cs
- PrintControllerWithStatusDialog.cs
- MetricEntry.cs
- RectangleHotSpot.cs
- PlatformNotSupportedException.cs
- EdmSchemaError.cs
- RedistVersionInfo.cs
- ListViewPagedDataSource.cs
- UnknownWrapper.cs
- DataBindingHandlerAttribute.cs
- Unit.cs
- VerticalAlignConverter.cs
- BuilderElements.cs