Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / System / Windows / Media3D / Transform3DGroup.cs / 1 / Transform3DGroup.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: 3D transform collection. // // See spec at http://avalon/medialayer/Specifications/Avalon3D%20API%20Spec.mht // // History: // 06/11/2003 : t-gregr - Created // 01/19/2004 : jordanpa - Changed to Transform3DGroup // //--------------------------------------------------------------------------- using System; using System.Windows; using System.Windows.Media; using System.Windows.Media.Composition; using System.ComponentModel; using System.ComponentModel.Design.Serialization; using System.Reflection; using System.Collections; using System.Collections.Generic; using MS.Internal; using System.Windows.Media.Animation; using System.Globalization; using System.Text; using System.Runtime.InteropServices; using System.Windows.Markup; using System.Diagnostics; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; namespace System.Windows.Media.Media3D { ////// 3D transform group. /// [ContentProperty("Children")] public sealed partial class Transform3DGroup : Transform3D { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors ////// Default constructor. /// public Transform3DGroup() {} #endregion Constructors //------------------------------------------------------ // // Public Methods // //----------------------------------------------------- #region Public Methods ////// Return the current transformation value. /// public override Matrix3D Value { get { ReadPreamble(); Matrix3D transform = new Matrix3D(); Append(ref transform); return transform; } } ////// Whether the transform is affine. /// public override bool IsAffine { get { ReadPreamble(); Transform3DCollection children = Children; if (children != null) { for (int i = 0, count = children.Count; i < count; ++i) { Transform3D transform = children.Internal_GetItem(i); if (!transform.IsAffine) { return false; } } } return true; } } #endregion Public Methods //------------------------------------------------------ // // Internal Methods // //------------------------------------------------------ internal override void Append(ref Matrix3D matrix) { Transform3DCollection children = Children; if (children != null) { for (int i = 0, count = children.Count; i < count; i++) { children.Internal_GetItem(i).Append(ref matrix); } } } //----------------------------------------------------- // // Private Fields // //------------------------------------------------------ } } // 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 transform collection. // // See spec at http://avalon/medialayer/Specifications/Avalon3D%20API%20Spec.mht // // History: // 06/11/2003 : t-gregr - Created // 01/19/2004 : jordanpa - Changed to Transform3DGroup // //--------------------------------------------------------------------------- using System; using System.Windows; using System.Windows.Media; using System.Windows.Media.Composition; using System.ComponentModel; using System.ComponentModel.Design.Serialization; using System.Reflection; using System.Collections; using System.Collections.Generic; using MS.Internal; using System.Windows.Media.Animation; using System.Globalization; using System.Text; using System.Runtime.InteropServices; using System.Windows.Markup; using System.Diagnostics; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; namespace System.Windows.Media.Media3D { ////// 3D transform group. /// [ContentProperty("Children")] public sealed partial class Transform3DGroup : Transform3D { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- #region Constructors ////// Default constructor. /// public Transform3DGroup() {} #endregion Constructors //------------------------------------------------------ // // Public Methods // //----------------------------------------------------- #region Public Methods ////// Return the current transformation value. /// public override Matrix3D Value { get { ReadPreamble(); Matrix3D transform = new Matrix3D(); Append(ref transform); return transform; } } ////// Whether the transform is affine. /// public override bool IsAffine { get { ReadPreamble(); Transform3DCollection children = Children; if (children != null) { for (int i = 0, count = children.Count; i < count; ++i) { Transform3D transform = children.Internal_GetItem(i); if (!transform.IsAffine) { return false; } } } return true; } } #endregion Public Methods //------------------------------------------------------ // // Internal Methods // //------------------------------------------------------ internal override void Append(ref Matrix3D matrix) { Transform3DCollection children = Children; if (children != null) { for (int i = 0, count = children.Count; i < count; i++) { children.Internal_GetItem(i).Append(ref matrix); } } } //----------------------------------------------------- // // Private Fields // //------------------------------------------------------ } } // 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
- NativeRightsManagementAPIsStructures.cs
- LicenseProviderAttribute.cs
- FileSystemEventArgs.cs
- UnsafeNativeMethods.cs
- EntityFunctions.cs
- ButtonChrome.cs
- DrawingImage.cs
- MultiPropertyDescriptorGridEntry.cs
- XmlReflectionImporter.cs
- ConfigXmlAttribute.cs
- DataContractSerializer.cs
- CustomWebEventKey.cs
- UpdateCommand.cs
- RightsManagementEncryptionTransform.cs
- TemplateAction.cs
- Util.cs
- XPathNavigatorReader.cs
- PointAnimationUsingPath.cs
- TextCollapsingProperties.cs
- HuffCodec.cs
- AxisAngleRotation3D.cs
- AnnotationHighlightLayer.cs
- UnitySerializationHolder.cs
- RootBuilder.cs
- exports.cs
- ZipIOExtraFieldZip64Element.cs
- SafeMILHandle.cs
- DataSourceControl.cs
- MessageDecoder.cs
- MatrixConverter.cs
- BitmapEffectCollection.cs
- ImageBrush.cs
- TranslateTransform3D.cs
- IIS7UserPrincipal.cs
- MenuStrip.cs
- OleDbStruct.cs
- ListViewContainer.cs
- LinkUtilities.cs
- SchemaImporter.cs
- GeometryDrawing.cs
- CompiledWorkflowDefinitionContext.cs
- PriorityBinding.cs
- Repeater.cs
- PopupRoot.cs
- DataGridCaption.cs
- ExpressionBindings.cs
- TreeViewBindingsEditor.cs
- TemplatePagerField.cs
- MouseGesture.cs
- MimeFormReflector.cs
- CommandArguments.cs
- ThousandthOfEmRealPoints.cs
- MenuCommandsChangedEventArgs.cs
- TextSelectionProcessor.cs
- DataGridCellClipboardEventArgs.cs
- precedingsibling.cs
- MetadataItemEmitter.cs
- ActiveXMessageFormatter.cs
- _AutoWebProxyScriptWrapper.cs
- ScriptMethodAttribute.cs
- NegationPusher.cs
- DispatchOperation.cs
- SymmetricAlgorithm.cs
- LineMetrics.cs
- SqlResolver.cs
- EventManager.cs
- NavigationProgressEventArgs.cs
- BufferModesCollection.cs
- PropertyOrder.cs
- SocketAddress.cs
- MetaForeignKeyColumn.cs
- GenericParameterDataContract.cs
- COM2Enum.cs
- ObjectConverter.cs
- RuntimeHandles.cs
- EntityTransaction.cs
- FrameworkContentElementAutomationPeer.cs
- CustomErrorCollection.cs
- X509ClientCertificateAuthenticationElement.cs
- RenderDataDrawingContext.cs
- HitTestWithGeometryDrawingContextWalker.cs
- MailBnfHelper.cs
- FontTypeConverter.cs
- LogicalExpr.cs
- EmptyControlCollection.cs
- CodeIndexerExpression.cs
- RefType.cs
- UIHelper.cs
- PeerNameRecord.cs
- CodeSubDirectoriesCollection.cs
- EntityCommandCompilationException.cs
- MethodBody.cs
- Underline.cs
- DropShadowBitmapEffect.cs
- ImageMapEventArgs.cs
- BindingWorker.cs
- NumericExpr.cs
- UMPAttributes.cs
- HttpServerVarsCollection.cs
- FilterableAttribute.cs