Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Media3D / Scene3D.cs / 1 / Scene3D.cs
//----------------------------------------------------------------------------
//
//
// Copyright (C) Microsoft Corporation. All rights reserved.
//
//
//
// Description: Scene3D implementation.
//
// See spec at [....]/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
- DesignerWithHeader.cs
- UnaryExpression.cs
- RelatedEnd.cs
- RuntimeConfig.cs
- SSmlParser.cs
- DbConnectionPoolOptions.cs
- NumberSubstitution.cs
- DetailsViewInsertEventArgs.cs
- DynamicValueConverter.cs
- ToolStripRenderer.cs
- DocobjHost.cs
- AsyncResult.cs
- ServiceThrottlingBehavior.cs
- PropertyMap.cs
- BaseDataBoundControl.cs
- ServiceHttpHandlerFactory.cs
- CallbackHandler.cs
- ListSortDescription.cs
- DataGridTableStyleMappingNameEditor.cs
- MobileComponentEditorPage.cs
- AdornedElementPlaceholder.cs
- Expr.cs
- PointAnimationUsingKeyFrames.cs
- InfoCardTraceRecord.cs
- ColorAnimationBase.cs
- MaskInputRejectedEventArgs.cs
- Journaling.cs
- UserUseLicenseDictionaryLoader.cs
- HttpHandlerActionCollection.cs
- UnsafeNativeMethods.cs
- CFStream.cs
- SmtpException.cs
- FillErrorEventArgs.cs
- WindowsRegion.cs
- ValueTypeFixupInfo.cs
- HostVisual.cs
- PaintValueEventArgs.cs
- XmlTextAttribute.cs
- selecteditemcollection.cs
- DataBoundLiteralControl.cs
- CustomSignedXml.cs
- IBuiltInEvidence.cs
- HttpStreamXmlDictionaryReader.cs
- FastEncoderWindow.cs
- RelatedEnd.cs
- TraceContextRecord.cs
- AdapterDictionary.cs
- PickBranchDesigner.xaml.cs
- IChannel.cs
- CookieHandler.cs
- SQLDateTimeStorage.cs
- RightsManagementEncryptedStream.cs
- TreeChangeInfo.cs
- TextSpanModifier.cs
- SingleAnimationBase.cs
- FtpWebResponse.cs
- XmlCDATASection.cs
- EntityCommandCompilationException.cs
- CompoundFileReference.cs
- EntityTemplateUserControl.cs
- ContainerSelectorBehavior.cs
- ZipIORawDataFileBlock.cs
- CornerRadius.cs
- RadioButtonPopupAdapter.cs
- CheckBoxFlatAdapter.cs
- SrgsText.cs
- XmlAttributeCache.cs
- ValueTypeFixupInfo.cs
- HuffCodec.cs
- BitmapEffectOutputConnector.cs
- Evaluator.cs
- SecurityProtocolFactory.cs
- DecimalStorage.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- DynamicValidatorEventArgs.cs
- XmlSignificantWhitespace.cs
- ExpressionList.cs
- CustomErrorsSection.cs
- ToolStripMenuItem.cs
- LineServicesRun.cs
- XmlDownloadManager.cs
- DataException.cs
- DbProviderFactories.cs
- XpsPartBase.cs
- TrustLevelCollection.cs
- ThreadPool.cs
- AssertUtility.cs
- DataContractSerializerSection.cs
- COM2ColorConverter.cs
- WebBrowser.cs
- SafeLibraryHandle.cs
- ToolboxItem.cs
- ipaddressinformationcollection.cs
- Int32AnimationUsingKeyFrames.cs
- PointCollection.cs
- hresults.cs
- X509ClientCertificateCredentialsElement.cs
- SqlSelectClauseBuilder.cs
- HttpModuleActionCollection.cs
- OdbcRowUpdatingEvent.cs