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
- BridgeDataReader.cs
- WebConfigurationHost.cs
- ConfigurationCollectionAttribute.cs
- NumericExpr.cs
- Set.cs
- MemberHolder.cs
- CodeSnippetStatement.cs
- XmlWriterDelegator.cs
- BaseContextMenu.cs
- HttpHandlerActionCollection.cs
- ContentFileHelper.cs
- AsyncPostBackTrigger.cs
- SingleConverter.cs
- PixelFormat.cs
- NonClientArea.cs
- Atom10FormatterFactory.cs
- TextEditorTyping.cs
- Decoder.cs
- SplineKeyFrames.cs
- HashHelpers.cs
- ParserStreamGeometryContext.cs
- LogEntryHeaderDeserializer.cs
- XPathNodeIterator.cs
- AppSettingsExpressionBuilder.cs
- HtmlObjectListAdapter.cs
- SecurityPolicySection.cs
- OLEDB_Util.cs
- wpf-etw.cs
- MaterialGroup.cs
- Int32Rect.cs
- _KerberosClient.cs
- AddInEnvironment.cs
- VoiceChangeEventArgs.cs
- ListParaClient.cs
- KeyGestureValueSerializer.cs
- ArgumentsParser.cs
- InvocationExpression.cs
- LongCountAggregationOperator.cs
- DependencyPropertyDescriptor.cs
- UniqueConstraint.cs
- WorkflowRuntimeService.cs
- HttpRawResponse.cs
- EditorPart.cs
- XmlSchemaInferenceException.cs
- BitmapEffectCollection.cs
- ReadOnlyDictionary.cs
- ParserContext.cs
- EditorPart.cs
- ListViewDeletedEventArgs.cs
- RichTextBoxAutomationPeer.cs
- IsolatedStorage.cs
- DataGridViewTextBoxColumn.cs
- TextShapeableCharacters.cs
- XhtmlBasicLabelAdapter.cs
- OdbcParameter.cs
- ValueTypeFixupInfo.cs
- ItemList.cs
- TreeNodeCollection.cs
- DbModificationCommandTree.cs
- PeerEndPoint.cs
- Model3D.cs
- ValidationSummary.cs
- XmlnsCompatibleWithAttribute.cs
- DoubleConverter.cs
- HashCodeCombiner.cs
- NamespaceEmitter.cs
- FileDialogPermission.cs
- ReferencedAssembly.cs
- ElementHostPropertyMap.cs
- QueryCursorEventArgs.cs
- InternalPermissions.cs
- TemplateDefinition.cs
- LinkLabelLinkClickedEvent.cs
- HandleCollector.cs
- Delay.cs
- StyleCollection.cs
- ClientConfigurationHost.cs
- SamlNameIdentifierClaimResource.cs
- ForAllOperator.cs
- Pipe.cs
- OdbcConnectionPoolProviderInfo.cs
- GridViewDeleteEventArgs.cs
- ProvidersHelper.cs
- SqlDataSourceCache.cs
- DbProviderConfigurationHandler.cs
- ModulesEntry.cs
- DataGridRelationshipRow.cs
- RectValueSerializer.cs
- ComplexTypeEmitter.cs
- RecognizerBase.cs
- ISFTagAndGuidCache.cs
- validation.cs
- ConsoleKeyInfo.cs
- MarkupCompilePass1.cs
- WmlCalendarAdapter.cs
- Vector3dCollection.cs
- Propagator.Evaluator.cs
- Condition.cs
- XmlSchemaGroup.cs
- TextEffectResolver.cs