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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SqlComparer.cs
- MetadataWorkspace.cs
- SimpleType.cs
- DetailsViewInsertedEventArgs.cs
- BindableTemplateBuilder.cs
- ValueProviderWrapper.cs
- ToolBarOverflowPanel.cs
- ResponseBodyWriter.cs
- DataBoundControlAdapter.cs
- RowBinding.cs
- WindowsScroll.cs
- MultiBindingExpression.cs
- Stackframe.cs
- _NetworkingPerfCounters.cs
- FontFamilyValueSerializer.cs
- DataContract.cs
- TargetException.cs
- TextInfo.cs
- DataGridParentRows.cs
- NamespaceList.cs
- Part.cs
- StructuralCache.cs
- JulianCalendar.cs
- DataServiceProviderWrapper.cs
- PropertiesTab.cs
- DataSourceSelectArguments.cs
- SiteMapDataSourceView.cs
- BufferModesCollection.cs
- PopupRootAutomationPeer.cs
- EditBehavior.cs
- CodeSpit.cs
- StatusBarItemAutomationPeer.cs
- NativeMethods.cs
- SafeBitVector32.cs
- AutomationPeer.cs
- UnknownBitmapDecoder.cs
- CollectionViewGroupInternal.cs
- GcSettings.cs
- ParserHooks.cs
- SizeChangedEventArgs.cs
- TextDecoration.cs
- FontNameEditor.cs
- HttpContextServiceHost.cs
- figurelengthconverter.cs
- BuildManagerHost.cs
- DataRecordInternal.cs
- RangeExpression.cs
- ResourcePermissionBaseEntry.cs
- BinaryUtilClasses.cs
- ImageAutomationPeer.cs
- Wildcard.cs
- AppDomainEvidenceFactory.cs
- CodeDomLoader.cs
- DataContractSerializerSection.cs
- CommentEmitter.cs
- RepeaterItemCollection.cs
- SafeTimerHandle.cs
- StoryFragments.cs
- DocumentXmlWriter.cs
- ExceptionUtil.cs
- webclient.cs
- ICspAsymmetricAlgorithm.cs
- ExpandCollapsePattern.cs
- AlphaSortedEnumConverter.cs
- FontDriver.cs
- TextRangeAdaptor.cs
- ProfilePropertyNameValidator.cs
- InfiniteIntConverter.cs
- pingexception.cs
- ImageFormat.cs
- AttachInfo.cs
- HttpPostProtocolImporter.cs
- FileLevelControlBuilderAttribute.cs
- HostSecurityManager.cs
- ProgressBar.cs
- Substitution.cs
- WindowsHyperlink.cs
- StylusPoint.cs
- GeneralTransform.cs
- ManipulationVelocities.cs
- BinaryConverter.cs
- ScalarOps.cs
- InkPresenter.cs
- DbParameterHelper.cs
- ResourceDefaultValueAttribute.cs
- X509UI.cs
- Event.cs
- BatchStream.cs
- ACL.cs
- ServiceHostFactory.cs
- XmlDictionaryString.cs
- OrderedDictionaryStateHelper.cs
- HashSetEqualityComparer.cs
- PartialCachingAttribute.cs
- LambdaCompiler.Generated.cs
- TextModifierScope.cs
- XmlNodeReader.cs
- XmlTextAttribute.cs
- NegotiationTokenAuthenticatorStateCache.cs
- CodeGotoStatement.cs