Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FileLogRecord.cs
- AuthenticationSection.cs
- OracleBoolean.cs
- _AutoWebProxyScriptHelper.cs
- StylusLogic.cs
- XmlResolver.cs
- XmlBinaryReaderSession.cs
- DBConcurrencyException.cs
- ImageFormat.cs
- RuntimeWrappedException.cs
- SettingsProperty.cs
- CommonObjectSecurity.cs
- SoapExtensionStream.cs
- DataGridGeneralPage.cs
- KeyFrames.cs
- SslStream.cs
- WorkflowServiceHostFactory.cs
- ButtonDesigner.cs
- UpdatePanelControlTrigger.cs
- RequestCachingSection.cs
- XMLSchema.cs
- ScriptManagerProxy.cs
- PeerPresenceInfo.cs
- EntityDataSourceDataSelectionPanel.cs
- ManipulationPivot.cs
- WorkflowElementDialogWindow.xaml.cs
- XmlLanguageConverter.cs
- WaitHandle.cs
- Library.cs
- ipaddressinformationcollection.cs
- CapabilitiesState.cs
- HttpRequestCacheValidator.cs
- PropertyPathConverter.cs
- StackSpiller.Generated.cs
- DataGridViewRowCollection.cs
- Context.cs
- XmlNamespaceMappingCollection.cs
- SmtpFailedRecipientException.cs
- Stacktrace.cs
- cookiecollection.cs
- Content.cs
- QueryResponse.cs
- ManualResetEvent.cs
- HttpResponse.cs
- TemplatedWizardStep.cs
- DesignerActionPanel.cs
- TypeContext.cs
- EncryptedData.cs
- DocumentScope.cs
- VariableQuery.cs
- DataGridViewUtilities.cs
- AsyncOperation.cs
- GetPageCompletedEventArgs.cs
- ObjectResult.cs
- WebSysDescriptionAttribute.cs
- DataChangedEventManager.cs
- SelectionPatternIdentifiers.cs
- WebSysDescriptionAttribute.cs
- X509Certificate2.cs
- SessionStateContainer.cs
- Vector3DCollectionValueSerializer.cs
- ObjectStateEntryDbDataRecord.cs
- FlowPosition.cs
- ApplicationHost.cs
- DesignerPerfEventProvider.cs
- IndexedDataBuffer.cs
- FileStream.cs
- SamlDelegatingWriter.cs
- DataGridBoundColumn.cs
- OrthographicCamera.cs
- CircleHotSpot.cs
- SmtpMail.cs
- EntityWrapperFactory.cs
- ClientConvert.cs
- MatrixKeyFrameCollection.cs
- InputProviderSite.cs
- Documentation.cs
- XmlElement.cs
- TcpConnectionPool.cs
- OperatingSystem.cs
- GifBitmapEncoder.cs
- FontDifferentiator.cs
- ServiceModelDictionary.cs
- _AcceptOverlappedAsyncResult.cs
- MatchAttribute.cs
- LogExtent.cs
- GB18030Encoding.cs
- ComponentResourceKeyConverter.cs
- CompilerErrorCollection.cs
- CompileLiteralTextParser.cs
- TemplateGroupCollection.cs
- BinaryFormatterWriter.cs
- KernelTypeValidation.cs
- RadioButtonList.cs
- XmlTextReader.cs
- DefaultValueConverter.cs
- ToolStripControlHost.cs
- TypeInfo.cs
- XmlUtilWriter.cs
- CssClassPropertyAttribute.cs