Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / System / Windows / Media3D / Scene3D.cs / 1 / Scene3D.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: Scene3D implementation. // // See spec at http://avalon/medialayer/Specifications/Avalon3D%20API%20Spec.mht //--------------------------------------------------------------------------- using System; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Media.Composition; using MS.Internal; using System.ComponentModel.Design.Serialization; using System.Windows.Markup; using MS.Internal.Media3D; namespace System.Windows.Media.Media3D { internal partial class Scene3D : Animatable { internal Scene3D() { } ////// Marks the visible realizations of the Scene3D. /// internal void MarkVisibleRealizations(RealizationContext ctx) { Camera camera = Camera; if (Models != null && camera != null) { Matrix3D view = camera.GetViewMatrix(); Matrix3D proj = camera.GetProjectionMatrix(M3DUtil.GetAspectRatio(Viewport.Size)); Matrix3DStack stack3D = ctx.Transform3DStack; // // Update the 3D stack with the coordinate system change into // 2D space. stack3D.Push(proj); // Apply the projection transform (perspective, orthographic, etc.) stack3D.Push(view); // Position and orient camera. Models.MarkVisibleRealizations(ctx); stack3D.Pop(); // Projection. stack3D.Pop(); // Camera view. } } } } // 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: Scene3D implementation. // // See spec at http://avalon/medialayer/Specifications/Avalon3D%20API%20Spec.mht //--------------------------------------------------------------------------- using System; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Media.Composition; using MS.Internal; using System.ComponentModel.Design.Serialization; using System.Windows.Markup; using MS.Internal.Media3D; namespace System.Windows.Media.Media3D { internal partial class Scene3D : Animatable { internal Scene3D() { } ////// Marks the visible realizations of the Scene3D. /// internal void MarkVisibleRealizations(RealizationContext ctx) { Camera camera = Camera; if (Models != null && camera != null) { Matrix3D view = camera.GetViewMatrix(); Matrix3D proj = camera.GetProjectionMatrix(M3DUtil.GetAspectRatio(Viewport.Size)); Matrix3DStack stack3D = ctx.Transform3DStack; // // Update the 3D stack with the coordinate system change into // 2D space. stack3D.Push(proj); // Apply the projection transform (perspective, orthographic, etc.) stack3D.Push(view); // Position and orient camera. Models.MarkVisibleRealizations(ctx); stack3D.Pop(); // Projection. stack3D.Pop(); // Camera view. } } } } // 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
- RemoteWebConfigurationHostStream.cs
- SslStream.cs
- WinOEToolBoxItem.cs
- DocumentPageViewAutomationPeer.cs
- ConstructorArgumentAttribute.cs
- StringAttributeCollection.cs
- ContextMenu.cs
- CompilerTypeWithParams.cs
- WindowsNonControl.cs
- LocalizableAttribute.cs
- XsltFunctions.cs
- JsonSerializer.cs
- MouseEventArgs.cs
- AvTraceDetails.cs
- PageStatePersister.cs
- EntityDataSourceViewSchema.cs
- basevalidator.cs
- GACMembershipCondition.cs
- SafeNativeMethods.cs
- StatementContext.cs
- WsdlBuildProvider.cs
- TextBoxAutomationPeer.cs
- ContextStack.cs
- ControlPaint.cs
- WebHeaderCollection.cs
- DataServiceEntityAttribute.cs
- Part.cs
- BitmapPalette.cs
- ProxyManager.cs
- SplineKeyFrames.cs
- StringUtil.cs
- RegexMatchCollection.cs
- CounterSet.cs
- ActivityExecutorDelegateInfo.cs
- IndependentlyAnimatedPropertyMetadata.cs
- RealProxy.cs
- ExpandableObjectConverter.cs
- FormViewUpdateEventArgs.cs
- CollectionsUtil.cs
- TemplateInstanceAttribute.cs
- BoolExpressionVisitors.cs
- DBSchemaTable.cs
- Control.cs
- ColorDialog.cs
- NullableLongAverageAggregationOperator.cs
- ImageConverter.cs
- Int64Converter.cs
- TemplateControlBuildProvider.cs
- GlobalizationAssembly.cs
- StyleBamlTreeBuilder.cs
- XmlSerializerFactory.cs
- ActivityTrace.cs
- Psha1DerivedKeyGenerator.cs
- BuildProviderInstallComponent.cs
- HorizontalAlignConverter.cs
- PropertySourceInfo.cs
- Delegate.cs
- SelectQueryOperator.cs
- ZoomPercentageConverter.cs
- BindingExpressionBase.cs
- CTreeGenerator.cs
- TemplatedAdorner.cs
- CanonicalXml.cs
- StorageComplexPropertyMapping.cs
- FormatterServicesNoSerializableCheck.cs
- TrackingMemoryStream.cs
- XmlProcessingInstruction.cs
- X509CertificateCollection.cs
- TransformerInfo.cs
- Number.cs
- ModuleBuilderData.cs
- ZipIOExtraFieldPaddingElement.cs
- EventSetter.cs
- Menu.cs
- Token.cs
- DocumentViewerBase.cs
- Permission.cs
- XslTransform.cs
- SimpleExpression.cs
- ISO2022Encoding.cs
- MachineKey.cs
- TableRow.cs
- ToolStripPanelRow.cs
- ValidatorUtils.cs
- LabelAutomationPeer.cs
- ISAPIApplicationHost.cs
- SessionEndingEventArgs.cs
- Intellisense.cs
- XPathParser.cs
- entityreference_tresulttype.cs
- AttachedPropertyInfo.cs
- Empty.cs
- PackageProperties.cs
- RsaSecurityToken.cs
- NamespaceDecl.cs
- XmlElement.cs
- ApplicationHost.cs
- MultipartContentParser.cs
- ContainerAction.cs
- CustomWebEventKey.cs