Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media3D / Matrix3DStack.cs / 1305600 / Matrix3DStack.cs
//---------------------------------------------------------------------------- // //// Copyright (c) Microsoft Corporation. All rights reserved. // // // Description: This is a super simple Matrix3DStack implementation. // MatrixStack (2D) is optimized to avoid boxig and copying // of structs. This was written as a stop-gap to address // a bug until we can use CodeGen here. // // History: // 1/19/2004 : [....] - Created // //--------------------------------------------------------------------------- using System; using System.Collections; using System.Collections.Generic; namespace System.Windows.Media.Media3D { // internal class Matrix3DStack { //----------------------------------------------------- // // Constructors // //----------------------------------------------------- //------------------------------------------------------ // // Public Methods // //----------------------------------------------------- public void Clear() { _stack.Clear(); } public Matrix3D Pop() { Matrix3D top = Top; _stack.RemoveAt(_stack.Count - 1); return top; } ////// Empty => [matrix] /// tail | [top] => tail | [top] | [matrix * top] /// public void Push(Matrix3D matrix) { if (_stack.Count > 0) { matrix.Append(Top); } _stack.Add(matrix); } //------------------------------------------------------ // // Public Properties // //------------------------------------------------------ public int Count { get { return _stack.Count; } } public bool IsEmpty { get { return (_stack.Count == 0); } } public Matrix3D Top { get { return _stack[_stack.Count - 1]; } } //----------------------------------------------------- // // Public Events // //------------------------------------------------------ //----------------------------------------------------- // // Private Fields // //----------------------------------------------------- #region Private Fields private readonly List_stack = new List (); #endregion Private Fields } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SettingsPropertyValueCollection.cs
- ErrorWebPart.cs
- WebPermission.cs
- DynamicValidatorEventArgs.cs
- JsonFaultDetail.cs
- BaseTemplateParser.cs
- CustomAttributeBuilder.cs
- BaseValidatorDesigner.cs
- PackageDigitalSignature.cs
- UniqueConstraint.cs
- _FtpDataStream.cs
- MarkupExtensionParser.cs
- KeyToListMap.cs
- MetaChildrenColumn.cs
- XPathAncestorIterator.cs
- DataGridViewCellStyleChangedEventArgs.cs
- MethodExpr.cs
- SqlInternalConnection.cs
- PropertyInformationCollection.cs
- ImageKeyConverter.cs
- MulticastDelegate.cs
- ObjectDataSourceStatusEventArgs.cs
- QueryExtender.cs
- Types.cs
- XmlNode.cs
- SqlBooleanizer.cs
- WindowsTab.cs
- DesignerVerbToolStripMenuItem.cs
- ISCIIEncoding.cs
- Propagator.Evaluator.cs
- BezierSegment.cs
- SiteOfOriginPart.cs
- MemberJoinTreeNode.cs
- StorageAssociationSetMapping.cs
- ConfigurationSectionGroupCollection.cs
- RawContentTypeMapper.cs
- CachedCompositeFamily.cs
- SQLDecimal.cs
- XmlSchemaValidator.cs
- Themes.cs
- LocatorPart.cs
- SystemUdpStatistics.cs
- Pen.cs
- ControlPaint.cs
- BrushConverter.cs
- UriTemplateQueryValue.cs
- ColumnMapCopier.cs
- XmlSchemaObjectTable.cs
- Formatter.cs
- ScrollProviderWrapper.cs
- InputBinder.cs
- TransactionChannelFaultConverter.cs
- ProtocolsConfigurationHandler.cs
- ChildTable.cs
- DynamicDocumentPaginator.cs
- StateMachineHelpers.cs
- XmlDocumentType.cs
- ButtonBaseAutomationPeer.cs
- WindowsGraphicsCacheManager.cs
- Line.cs
- ClassImporter.cs
- ConnectionsZone.cs
- ContainerUIElement3D.cs
- ScriptBehaviorDescriptor.cs
- CrossSiteScriptingValidation.cs
- CodeNamespaceImportCollection.cs
- SmtpFailedRecipientsException.cs
- RealProxy.cs
- WindowsIdentity.cs
- ExtensionQuery.cs
- QuaternionAnimation.cs
- StrongNameIdentityPermission.cs
- RemoveStoryboard.cs
- BasicSecurityProfileVersion.cs
- MetaModel.cs
- GetWinFXPath.cs
- SatelliteContractVersionAttribute.cs
- DeclarativeCatalogPart.cs
- TextDecorationUnitValidation.cs
- ToolStripProgressBar.cs
- DataGridRowEventArgs.cs
- FontSizeConverter.cs
- RenderCapability.cs
- FloatMinMaxAggregationOperator.cs
- ScopedKnownTypes.cs
- TablePattern.cs
- Dump.cs
- HttpConfigurationSystem.cs
- XmlElementAttributes.cs
- SecurityHeaderElementInferenceEngine.cs
- HttpCapabilitiesEvaluator.cs
- ItemContainerProviderWrapper.cs
- TextEffectResolver.cs
- BinaryMethodMessage.cs
- InputChannelAcceptor.cs
- TraceEventCache.cs
- TimerEventSubscription.cs
- ComboBoxHelper.cs
- TargetException.cs
- CursorConverter.cs