Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media3D / Transform3DGroup.cs / 1305600 / 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 : [....] - 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 : [....] - 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
- XmlSchemaIdentityConstraint.cs
- SetIterators.cs
- QueryPageSettingsEventArgs.cs
- XsltCompileContext.cs
- SamlAudienceRestrictionCondition.cs
- StaticExtensionConverter.cs
- SessionPageStateSection.cs
- MultilineStringConverter.cs
- TextElement.cs
- DocumentViewerBase.cs
- FrameworkContextData.cs
- COSERVERINFO.cs
- SerialStream.cs
- ChtmlImageAdapter.cs
- TextDecorationUnitValidation.cs
- SecurityTokenSerializer.cs
- SqlCacheDependencyDatabase.cs
- TransferRequestHandler.cs
- PreloadedPackages.cs
- _NativeSSPI.cs
- SafeLibraryHandle.cs
- RefType.cs
- TextServicesContext.cs
- ButtonRenderer.cs
- ExpandSegmentCollection.cs
- RenderDataDrawingContext.cs
- DBAsyncResult.cs
- ExitEventArgs.cs
- OciLobLocator.cs
- ProviderException.cs
- CriticalHandle.cs
- XappLauncher.cs
- StringFreezingAttribute.cs
- LabelAutomationPeer.cs
- DeploymentSectionCache.cs
- MemberRestriction.cs
- SafeThemeHandle.cs
- UriScheme.cs
- DesignerView.Commands.cs
- DelegatedStream.cs
- CodeObjectCreateExpression.cs
- ProcessInfo.cs
- PersonalizablePropertyEntry.cs
- XmlCodeExporter.cs
- UICuesEvent.cs
- LinearKeyFrames.cs
- PageAsyncTaskManager.cs
- TreeBuilderXamlTranslator.cs
- ToolStripArrowRenderEventArgs.cs
- EventLogger.cs
- ListViewTableCell.cs
- TextTreeNode.cs
- VariableDesigner.xaml.cs
- SqlCommandSet.cs
- RequestNavigateEventArgs.cs
- EnvironmentPermission.cs
- BrowserTree.cs
- RegionIterator.cs
- HwndSource.cs
- ClientTargetCollection.cs
- SqlFileStream.cs
- DES.cs
- _SSPIWrapper.cs
- BamlLocalizabilityResolver.cs
- Mappings.cs
- SessionState.cs
- XmlSchemaExporter.cs
- Operators.cs
- CodeLabeledStatement.cs
- CommandBinding.cs
- EditableTreeList.cs
- TypeSemantics.cs
- Message.cs
- SHA1Managed.cs
- CatalogZone.cs
- ObjectDataSourceFilteringEventArgs.cs
- wmiutil.cs
- BindingExpressionBase.cs
- RootBuilder.cs
- PageTheme.cs
- AutomationElementIdentifiers.cs
- TableLayoutPanel.cs
- PropertyChangedEventArgs.cs
- QilParameter.cs
- IncrementalReadDecoders.cs
- SystemKeyConverter.cs
- TCPListener.cs
- PlatformCulture.cs
- SoapSchemaMember.cs
- TextDocumentView.cs
- ZipPackage.cs
- DownloadProgressEventArgs.cs
- UnhandledExceptionEventArgs.cs
- ParamArrayAttribute.cs
- LoadGrammarCompletedEventArgs.cs
- ValidationErrorEventArgs.cs
- HttpCacheParams.cs
- WebPartDisplayMode.cs
- HttpStreamMessage.cs
- SHA256Managed.cs