Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Media3D / Transform3DGroup.cs / 1 / Transform3DGroup.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: 3D transform collection. // // See spec at [....]/medialayer/Specifications/Avalon3D%20API%20Spec.mht // // History: // 06/11/2003 : [....] - 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
- ContextInformation.cs
- DataGridTextBox.cs
- DataPagerCommandEventArgs.cs
- mediaeventargs.cs
- ExpressionPrefixAttribute.cs
- WithStatement.cs
- EventLogWatcher.cs
- CodeMemberProperty.cs
- SponsorHelper.cs
- CompositeActivityValidator.cs
- Page.cs
- BinaryFormatterWriter.cs
- SimpleType.cs
- HtmlAnchor.cs
- UdpConstants.cs
- HTTPRemotingHandler.cs
- UIAgentMonitor.cs
- Canonicalizers.cs
- ContextMenuAutomationPeer.cs
- _OverlappedAsyncResult.cs
- HyperLinkField.cs
- arabicshape.cs
- RuleRefElement.cs
- AmbientLight.cs
- WebPartConnectionsConfigureVerb.cs
- MultiPageTextView.cs
- SignedXml.cs
- VersionedStreamOwner.cs
- SafeHandles.cs
- VariableBinder.cs
- EntityContainerRelationshipSetEnd.cs
- SchemaLookupTable.cs
- Paragraph.cs
- SHA384Managed.cs
- MetadataFile.cs
- TdsEnums.cs
- HttpResponseInternalWrapper.cs
- StreamUpdate.cs
- PartitionResolver.cs
- Facet.cs
- XmlExceptionHelper.cs
- DetailsViewRow.cs
- TypeForwardedToAttribute.cs
- StandardCommands.cs
- ReflectEventDescriptor.cs
- StrokeFIndices.cs
- Accessible.cs
- ScriptResourceInfo.cs
- ConfigXmlElement.cs
- InvalidAsynchronousStateException.cs
- SafeEventLogWriteHandle.cs
- X509Logo.cs
- ServiceRouteHandler.cs
- FontNamesConverter.cs
- HotSpotCollectionEditor.cs
- PathStreamGeometryContext.cs
- UserControl.cs
- ItemList.cs
- PointLightBase.cs
- QueryExpression.cs
- ApplySecurityAndSendAsyncResult.cs
- SeparatorAutomationPeer.cs
- DefaultMemberAttribute.cs
- _LoggingObject.cs
- DynamicRouteExpression.cs
- _DigestClient.cs
- TablePattern.cs
- DbParameterCollection.cs
- Screen.cs
- PropertyGridCommands.cs
- HtmlMeta.cs
- Collection.cs
- CollectionViewSource.cs
- HttpWebRequestElement.cs
- Brushes.cs
- DataContractJsonSerializerOperationBehavior.cs
- ClientUtils.cs
- ByteStack.cs
- Or.cs
- StringSorter.cs
- HScrollBar.cs
- PriorityQueue.cs
- SplineQuaternionKeyFrame.cs
- OwnerDrawPropertyBag.cs
- CheckPair.cs
- DataColumnMappingCollection.cs
- TdsParserSafeHandles.cs
- XpsInterleavingPolicy.cs
- CapabilitiesAssignment.cs
- BaseCodeDomTreeGenerator.cs
- RichTextBox.cs
- CompiledQueryCacheKey.cs
- UnsupportedPolicyOptionsException.cs
- DataGridCheckBoxColumn.cs
- TextUtf8RawTextWriter.cs
- XmlTypeAttribute.cs
- WindowClosedEventArgs.cs
- ConstrainedDataObject.cs
- CellConstantDomain.cs
- PingOptions.cs