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
- UrlMappingsSection.cs
- MenuItemStyleCollection.cs
- TextRunTypographyProperties.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- Storyboard.cs
- AppModelKnownContentFactory.cs
- TaskExtensions.cs
- WebPartEditorApplyVerb.cs
- ConstraintEnumerator.cs
- OSEnvironmentHelper.cs
- XmlLangPropertyAttribute.cs
- XPathNodeHelper.cs
- HttpContextBase.cs
- WebHttpBehavior.cs
- RetrieveVirtualItemEventArgs.cs
- ExpressionLexer.cs
- ProtocolProfile.cs
- TiffBitmapEncoder.cs
- ObjectPersistData.cs
- Variable.cs
- DataGridViewRow.cs
- ThicknessAnimation.cs
- SchemaTableColumn.cs
- ObjectTag.cs
- Baml2006KnownTypes.cs
- Comparer.cs
- TimeSpanValidatorAttribute.cs
- NullRuntimeConfig.cs
- XmlAttributeOverrides.cs
- SubclassTypeValidatorAttribute.cs
- OdbcConnection.cs
- DropTarget.cs
- TCEAdapterGenerator.cs
- PartitionerStatic.cs
- WebCategoryAttribute.cs
- CompoundFileStreamReference.cs
- TimeIntervalCollection.cs
- DesignOnlyAttribute.cs
- OptimalTextSource.cs
- LambdaSerializationException.cs
- TableRowCollection.cs
- MsmqReceiveHelper.cs
- ConfigurationElementProperty.cs
- GetWorkflowTree.cs
- NamespaceEmitter.cs
- CodeNamespaceCollection.cs
- AttachedPropertyMethodSelector.cs
- BamlTreeUpdater.cs
- AsyncOperation.cs
- EncodingDataItem.cs
- RouteTable.cs
- DefaultBinder.cs
- Image.cs
- VsPropertyGrid.cs
- CssTextWriter.cs
- FrameAutomationPeer.cs
- BrushConverter.cs
- FileUtil.cs
- RelationshipDetailsRow.cs
- SettingsAttributeDictionary.cs
- OracleConnection.cs
- ComponentChangedEvent.cs
- SafeRegistryKey.cs
- DynamicResourceExtension.cs
- HtmlEmptyTagControlBuilder.cs
- EventLogger.cs
- XmlSchemaType.cs
- Command.cs
- WebPartMenuStyle.cs
- MemoryFailPoint.cs
- Rectangle.cs
- SingleObjectCollection.cs
- MenuAdapter.cs
- ISSmlParser.cs
- ToolStripDropDownClosedEventArgs.cs
- OdbcCommandBuilder.cs
- DataGridViewColumnCollectionDialog.cs
- RegionInfo.cs
- ListSortDescription.cs
- JournalEntry.cs
- ClipboardData.cs
- InstanceHandleConflictException.cs
- ListDictionary.cs
- WorkflowRuntimeServiceElementCollection.cs
- DataGridViewCheckBoxCell.cs
- ActionMessageFilterTable.cs
- base64Transforms.cs
- SqlXml.cs
- DefinitionBase.cs
- BitmapEffectvisualstate.cs
- SqlResolver.cs
- HttpHandlersSection.cs
- ToolStrip.cs
- BindingContext.cs
- WaitHandle.cs
- MachineSettingsSection.cs
- QilIterator.cs
- TypeSemantics.cs
- SafeArrayTypeMismatchException.cs
- IRCollection.cs