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
- VisualCollection.cs
- WindowsEditBoxRange.cs
- MenuCommand.cs
- MonitoringDescriptionAttribute.cs
- XmlArrayItemAttribute.cs
- UnsafeNativeMethods.cs
- OdbcErrorCollection.cs
- XamlSerializer.cs
- XmlSerializerSection.cs
- hwndwrapper.cs
- xsdvalidator.cs
- Rect3DConverter.cs
- CmsUtils.cs
- DataViewManagerListItemTypeDescriptor.cs
- SByteStorage.cs
- BooleanAnimationBase.cs
- CopyOnWriteList.cs
- StreamingContext.cs
- LinkLabel.cs
- CodeTypeReferenceSerializer.cs
- ReliableReplySessionChannel.cs
- ValidationHelpers.cs
- ScriptReferenceBase.cs
- ParallelDesigner.cs
- IProvider.cs
- SqlConnectionPoolProviderInfo.cs
- HandlerMappingMemo.cs
- ContentPlaceHolder.cs
- MonitorWrapper.cs
- DynamicValueConverter.cs
- SoapElementAttribute.cs
- EmissiveMaterial.cs
- ToolStripMenuItemDesigner.cs
- SqlClientPermission.cs
- CreateInstanceBinder.cs
- DbConnectionPoolOptions.cs
- XamlReader.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- ResourcePool.cs
- AppDomainProtocolHandler.cs
- ProgressBar.cs
- ArrayElementGridEntry.cs
- AttributeUsageAttribute.cs
- CacheDict.cs
- SortDescriptionCollection.cs
- UIPermission.cs
- TreeBuilder.cs
- MembershipUser.cs
- QilTargetType.cs
- AttachmentCollection.cs
- DiscoveryDocumentSerializer.cs
- ClipboardData.cs
- BitmapEffectGeneralTransform.cs
- Decorator.cs
- PasswordRecovery.cs
- PreviewPageInfo.cs
- EventItfInfo.cs
- EncryptedHeaderXml.cs
- TagMapCollection.cs
- ScriptControl.cs
- AnnotationResourceCollection.cs
- COM2PictureConverter.cs
- PlacementWorkspace.cs
- ToolboxItemFilterAttribute.cs
- ToolboxItem.cs
- ReferenceConverter.cs
- TargetConverter.cs
- ProfessionalColorTable.cs
- SignedXml.cs
- DataGridViewCellStateChangedEventArgs.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- RelationshipEnd.cs
- SByte.cs
- RegexGroupCollection.cs
- BinaryExpression.cs
- TimeSpanValidator.cs
- SoapServerMessage.cs
- FileCodeGroup.cs
- TaskFactory.cs
- BaseComponentEditor.cs
- SettingsAttributes.cs
- SqlDataSourceFilteringEventArgs.cs
- DockEditor.cs
- SessionStateSection.cs
- Overlapped.cs
- WebPartManager.cs
- CodeFieldReferenceExpression.cs
- ToolStripPanelRenderEventArgs.cs
- BitVector32.cs
- XmlNode.cs
- MatchingStyle.cs
- RawUIStateInputReport.cs
- DelegatingConfigHost.cs
- ActivityExecutorDelegateInfo.cs
- ContentPropertyAttribute.cs
- ListMarkerSourceInfo.cs
- ColorAnimation.cs
- DecimalFormatter.cs
- BoolExpressionVisitors.cs
- EventBuilder.cs