Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- PrintDialog.cs
- BridgeDataRecord.cs
- ButtonChrome.cs
- DataGridViewHeaderCell.cs
- OleDbConnectionInternal.cs
- CapabilitiesSection.cs
- UnconditionalPolicy.cs
- Double.cs
- BinaryWriter.cs
- CodeDesigner.cs
- QueryOptionExpression.cs
- DataSourceView.cs
- RadioButtonAutomationPeer.cs
- Int32AnimationUsingKeyFrames.cs
- SinglePageViewer.cs
- StopStoryboard.cs
- D3DImage.cs
- XamlDesignerSerializationManager.cs
- ServiceObjectContainer.cs
- OleDbPropertySetGuid.cs
- Int16.cs
- ScrollableControl.cs
- AttributeAction.cs
- BypassElement.cs
- RuntimeArgumentHandle.cs
- OneOfTypeConst.cs
- MimeTypeAttribute.cs
- CompositeActivityMarkupSerializer.cs
- CategoryNameCollection.cs
- XmlIgnoreAttribute.cs
- TreeBuilderXamlTranslator.cs
- RenderingBiasValidation.cs
- OutputScopeManager.cs
- COAUTHIDENTITY.cs
- AssociationSet.cs
- WebPartMinimizeVerb.cs
- ConfigurationSettings.cs
- CultureTable.cs
- SQlBooleanStorage.cs
- Policy.cs
- InvalidProgramException.cs
- UpdatePanelTrigger.cs
- SrgsDocument.cs
- NodeLabelEditEvent.cs
- TemplateBindingExtensionConverter.cs
- CharUnicodeInfo.cs
- PropertyPushdownHelper.cs
- NavigationService.cs
- HtmlTableCell.cs
- OdbcConnection.cs
- SQLDouble.cs
- DataGridItemEventArgs.cs
- StaticExtensionConverter.cs
- XmlReflectionImporter.cs
- HttpApplicationStateWrapper.cs
- DSACryptoServiceProvider.cs
- OracleRowUpdatingEventArgs.cs
- WebExceptionStatus.cs
- RuntimeArgument.cs
- WorkflowInstanceExtensionProvider.cs
- Timeline.cs
- Container.cs
- PseudoWebRequest.cs
- Component.cs
- UnsafeCollabNativeMethods.cs
- OdbcRowUpdatingEvent.cs
- ExtendedPropertyDescriptor.cs
- _SpnDictionary.cs
- StrokeNodeData.cs
- AdornerDecorator.cs
- CodeSnippetTypeMember.cs
- BypassElement.cs
- ObjectSet.cs
- Stylus.cs
- ByteStreamGeometryContext.cs
- RankException.cs
- BuildProviderUtils.cs
- DataSourceXmlClassAttribute.cs
- ProcessHostFactoryHelper.cs
- TypeNameConverter.cs
- PropertiesTab.cs
- CacheDependency.cs
- MenuBase.cs
- RoutedEventHandlerInfo.cs
- XamlSerializerUtil.cs
- coordinator.cs
- DefaultAuthorizationContext.cs
- FormatException.cs
- WindowsComboBox.cs
- Soap12ProtocolReflector.cs
- InstancePersistence.cs
- DesignerPainter.cs
- ParallelTimeline.cs
- TextContainer.cs
- DbDeleteCommandTree.cs
- AnimatedTypeHelpers.cs
- _LoggingObject.cs
- StyleXamlTreeBuilder.cs
- MimeMultiPart.cs
- ExtensionWindowResizeGrip.cs