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
- GlobalizationAssembly.cs
- ProtocolViolationException.cs
- AnnotationMap.cs
- StateMachineDesignerPaint.cs
- SapiInterop.cs
- PathSegment.cs
- columnmapkeybuilder.cs
- FontUnit.cs
- CompositeDuplexBindingElement.cs
- RectAnimationUsingKeyFrames.cs
- CatalogPart.cs
- Executor.cs
- XamlReaderHelper.cs
- DataObjectEventArgs.cs
- DbCommandTree.cs
- FormsAuthenticationEventArgs.cs
- HwndSource.cs
- XPathEmptyIterator.cs
- TableLayout.cs
- XmlCodeExporter.cs
- ChildrenQuery.cs
- DataSpaceManager.cs
- VScrollBar.cs
- WindowsHyperlink.cs
- templategroup.cs
- SqlDataSourceFilteringEventArgs.cs
- FileRecordSequenceCompletedAsyncResult.cs
- PropertyEmitter.cs
- VerifyHashRequest.cs
- ExtensibleClassFactory.cs
- FixedDocumentSequencePaginator.cs
- DataGridView.cs
- AspNetSynchronizationContext.cs
- EdmComplexPropertyAttribute.cs
- SchemaImporter.cs
- PropertyValueUIItem.cs
- BaseTemplateBuildProvider.cs
- UInt32Converter.cs
- EmbossBitmapEffect.cs
- ProjectionPruner.cs
- ConfigXmlDocument.cs
- StyleReferenceConverter.cs
- CopyCodeAction.cs
- EpmSyndicationContentDeSerializer.cs
- DataServiceQueryOfT.cs
- IncrementalCompileAnalyzer.cs
- SiteMapSection.cs
- UnsafePeerToPeerMethods.cs
- WindowsClaimSet.cs
- Win32Exception.cs
- TemplateColumn.cs
- MetadataWorkspace.cs
- IODescriptionAttribute.cs
- IDReferencePropertyAttribute.cs
- Wizard.cs
- EventListener.cs
- WebPartCollection.cs
- PersistenceParticipant.cs
- ProfileSettingsCollection.cs
- InputReportEventArgs.cs
- ShaperBuffers.cs
- CssTextWriter.cs
- IdentitySection.cs
- InternalConfigRoot.cs
- LinkedResource.cs
- GroupBoxAutomationPeer.cs
- TCPClient.cs
- PageThemeBuildProvider.cs
- StyleSelector.cs
- Util.cs
- ExtractorMetadata.cs
- ManagementBaseObject.cs
- Profiler.cs
- SqlCommand.cs
- ContentElementAutomationPeer.cs
- HashHelper.cs
- GeneralTransform3DGroup.cs
- SortDescription.cs
- CodeMemberEvent.cs
- EventDescriptor.cs
- SqlDataSourceQueryEditorForm.cs
- Error.cs
- OneOfScalarConst.cs
- ICollection.cs
- DataGridCheckBoxColumn.cs
- CompiledIdentityConstraint.cs
- Point.cs
- sqlstateclientmanager.cs
- TextServicesCompartment.cs
- HtmlElementEventArgs.cs
- XmlILIndex.cs
- TdsParserHelperClasses.cs
- SQLChars.cs
- JsonServiceDocumentSerializer.cs
- WebAdminConfigurationHelper.cs
- WebBrowserHelper.cs
- Thread.cs
- DiagnosticStrings.cs
- sqlstateclientmanager.cs
- EncryptedKey.cs