Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / System / Windows / Media3D / Point3DCollection.cs / 1 / Point3DCollection.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: 3D point collection partial class. // // See spec at http://avalon/medialayer/Specifications/Avalon3D%20API%20Spec.mht // // History: // 11/03/05 : marka - Created // //--------------------------------------------------------------------------- using System.Windows; using System.Windows.Media.Media3D; using MS.Internal.PresentationCore; using System; using System.IO; using MS.Internal.Media; namespace System.Windows.Media.Media3D { ////// Point3D - 3D point representation. /// Defaults to (0,0,0). /// public partial class Point3DCollection { ////// Deserialize this object from BAML binary format. /// [FriendAccessAllowed] // Built into Core, also used by Framework. internal static object DeserializeFrom(BinaryReader reader) { // Get the size. uint count = reader.ReadUInt32() ; Point3DCollection collection = new Point3DCollection( (int) count) ; for ( uint i = 0; i < count ; i ++ ) { Point3D point = new Point3D( XamlSerializationHelper.ReadDouble( reader ), XamlSerializationHelper.ReadDouble( reader ) , XamlSerializationHelper.ReadDouble( reader ) ) ; collection.Add( point ); } return collection ; } } } // 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 point collection partial class. // // See spec at http://avalon/medialayer/Specifications/Avalon3D%20API%20Spec.mht // // History: // 11/03/05 : marka - Created // //--------------------------------------------------------------------------- using System.Windows; using System.Windows.Media.Media3D; using MS.Internal.PresentationCore; using System; using System.IO; using MS.Internal.Media; namespace System.Windows.Media.Media3D { ////// Point3D - 3D point representation. /// Defaults to (0,0,0). /// public partial class Point3DCollection { ////// Deserialize this object from BAML binary format. /// [FriendAccessAllowed] // Built into Core, also used by Framework. internal static object DeserializeFrom(BinaryReader reader) { // Get the size. uint count = reader.ReadUInt32() ; Point3DCollection collection = new Point3DCollection( (int) count) ; for ( uint i = 0; i < count ; i ++ ) { Point3D point = new Point3D( XamlSerializationHelper.ReadDouble( reader ), XamlSerializationHelper.ReadDouble( reader ) , XamlSerializationHelper.ReadDouble( reader ) ) ; collection.Add( point ); } return collection ; } } } // 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
- ListBoxItemWrapperAutomationPeer.cs
- TargetFrameworkUtil.cs
- TreeWalkHelper.cs
- OleDbDataAdapter.cs
- BuildProviderCollection.cs
- ISO2022Encoding.cs
- ApplicationFileCodeDomTreeGenerator.cs
- DynamicValidatorEventArgs.cs
- CleanUpVirtualizedItemEventArgs.cs
- ExceptQueryOperator.cs
- TextViewElement.cs
- Compiler.cs
- Logging.cs
- TargetFrameworkAttribute.cs
- ColorInterpolationModeValidation.cs
- SoapTypeAttribute.cs
- ListViewInsertionMark.cs
- EventDrivenDesigner.cs
- AmbiguousMatchException.cs
- BamlTreeNode.cs
- Application.cs
- EntityContainer.cs
- Accessors.cs
- InvocationExpression.cs
- InvalidPrinterException.cs
- Util.cs
- xml.cs
- _NegoStream.cs
- LocationSectionRecord.cs
- CqlParser.cs
- EventLog.cs
- ControlParameter.cs
- WebDisplayNameAttribute.cs
- UniqueConstraint.cs
- EntityProxyTypeInfo.cs
- HttpRuntimeSection.cs
- BufferedResponseStream.cs
- XPathParser.cs
- AvTraceDetails.cs
- ConfigurationManager.cs
- Int16AnimationBase.cs
- CodeAccessSecurityEngine.cs
- ExtractedStateEntry.cs
- MonthChangedEventArgs.cs
- WindowsListViewSubItem.cs
- coordinator.cs
- HijriCalendar.cs
- SqlInternalConnectionSmi.cs
- SchemaImporter.cs
- ComponentChangingEvent.cs
- SingleAnimationBase.cs
- StylusPointPropertyInfoDefaults.cs
- QilLoop.cs
- DesignerTransactionCloseEvent.cs
- Dump.cs
- SqlUtil.cs
- RSAOAEPKeyExchangeFormatter.cs
- ProxyWebPartManagerDesigner.cs
- XPathScanner.cs
- Emitter.cs
- ConfigErrorGlyph.cs
- FaultDescription.cs
- DateTimeConstantAttribute.cs
- ResXResourceReader.cs
- AccessDataSourceView.cs
- DiagnosticsConfigurationHandler.cs
- Operand.cs
- TextRunProperties.cs
- _KerberosClient.cs
- PanelStyle.cs
- RequestNavigateEventArgs.cs
- HttpModuleCollection.cs
- ObjectStorage.cs
- XPathEmptyIterator.cs
- ChannelFactoryBase.cs
- TabletDevice.cs
- FormViewAutoFormat.cs
- CompressEmulationStream.cs
- EntityCommand.cs
- CopyNamespacesAction.cs
- ComplusEndpointConfigContainer.cs
- SystemColors.cs
- LinearGradientBrush.cs
- SamlSubject.cs
- ContextStack.cs
- Int32Converter.cs
- LinqDataSourceUpdateEventArgs.cs
- FontSizeConverter.cs
- XPathNodeList.cs
- CurrentTimeZone.cs
- DocumentPage.cs
- CodeMethodInvokeExpression.cs
- IsolationInterop.cs
- NominalTypeEliminator.cs
- DrawingContextWalker.cs
- BaseTemplateParser.cs
- DataGridViewMethods.cs
- _SSPISessionCache.cs
- XmlElementCollection.cs
- MatrixAnimationUsingPath.cs