Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- BigInt.cs
- PropertyContainer.cs
- Int32.cs
- Visual3DCollection.cs
- TextBox.cs
- UpdateTracker.cs
- TypeLoader.cs
- RightsManagementEncryptedStream.cs
- HtmlControlPersistable.cs
- ComboBoxRenderer.cs
- _SSPIWrapper.cs
- ComponentCommands.cs
- XmlSchemaSubstitutionGroup.cs
- XmlName.cs
- StreamUpdate.cs
- DataPointer.cs
- AssemblyUtil.cs
- AdornerHitTestResult.cs
- XmlDocumentType.cs
- CollectionsUtil.cs
- Claim.cs
- DataShape.cs
- MimeMultiPart.cs
- RegexCapture.cs
- WebScriptEnablingBehavior.cs
- BmpBitmapDecoder.cs
- SByte.cs
- CLSCompliantAttribute.cs
- ExtensionSimplifierMarkupObject.cs
- TableRow.cs
- ContentPathSegment.cs
- HttpRequestCacheValidator.cs
- RunWorkerCompletedEventArgs.cs
- OperatingSystem.cs
- FormsAuthenticationModule.cs
- FileCodeGroup.cs
- SolidColorBrush.cs
- CodeDomDesignerLoader.cs
- InvalidFilterCriteriaException.cs
- MouseBinding.cs
- CacheDependency.cs
- SystemWebCachingSectionGroup.cs
- AutomationIdentifierGuids.cs
- FileClassifier.cs
- CryptoApi.cs
- DocumentPageHost.cs
- DeferredBinaryDeserializerExtension.cs
- SecurityKeyEntropyMode.cs
- ConfigurationValues.cs
- AliasGenerator.cs
- ParseChildrenAsPropertiesAttribute.cs
- SerializationAttributes.cs
- DrawingGroup.cs
- DateTimeFormatInfoScanner.cs
- ActivityPreviewDesigner.cs
- RestClientProxyHandler.cs
- CollectionChangeEventArgs.cs
- OrderedHashRepartitionStream.cs
- SpecularMaterial.cs
- RowCache.cs
- CodeTypeDeclarationCollection.cs
- GeneralTransform3DGroup.cs
- HandlerBase.cs
- FormDesigner.cs
- SecurityPolicySection.cs
- WebPartZoneBase.cs
- Currency.cs
- ItemList.cs
- WmpBitmapEncoder.cs
- TypeConverterValueSerializer.cs
- SharedConnectionInfo.cs
- TemplateContentLoader.cs
- XmlSchemaComplexContentRestriction.cs
- DesigntimeLicenseContextSerializer.cs
- PagesSection.cs
- Stack.cs
- ListViewInsertEventArgs.cs
- TcpClientChannel.cs
- ArgumentNullException.cs
- OleDbTransaction.cs
- OracleDataReader.cs
- MatrixTransform3D.cs
- RegionData.cs
- WindowsPen.cs
- HandleTable.cs
- ProviderUtil.cs
- Stack.cs
- ClientFormsAuthenticationCredentials.cs
- DataViewSetting.cs
- HtmlElementEventArgs.cs
- ControlBuilder.cs
- BufferedGraphicsContext.cs
- CompressionTracing.cs
- Int16.cs
- LongValidatorAttribute.cs
- CustomErrorsSection.cs
- GenericIdentity.cs
- MultiTouchSystemGestureLogic.cs
- DataBoundControlAdapter.cs
- Compress.cs