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
- CommandSet.cs
- WebPartConnectionsConnectVerb.cs
- HttpModuleCollection.cs
- BindingSource.cs
- SourceFilter.cs
- _ConnectOverlappedAsyncResult.cs
- GetWinFXPath.cs
- ColumnResizeAdorner.cs
- EncodingNLS.cs
- PopupControlService.cs
- LedgerEntry.cs
- Misc.cs
- AuthenticationService.cs
- SqlXml.cs
- CompositeScriptReferenceEventArgs.cs
- CacheSection.cs
- SQLSingleStorage.cs
- WebConfigurationFileMap.cs
- ExitEventArgs.cs
- XPathScanner.cs
- MetadataSection.cs
- AssemblyUtil.cs
- RegistrySecurity.cs
- StateDesigner.cs
- SqlTypeConverter.cs
- SiteMapHierarchicalDataSourceView.cs
- StringUtil.cs
- ManifestResourceInfo.cs
- GetWorkflowTree.cs
- WorkflowInstanceAbortedRecord.cs
- ReadWriteObjectLock.cs
- BmpBitmapEncoder.cs
- Rfc2898DeriveBytes.cs
- FixedHyperLink.cs
- Events.cs
- RedirectionProxy.cs
- AnonymousIdentificationSection.cs
- TrayIconDesigner.cs
- XmlAttributeAttribute.cs
- Axis.cs
- CurrentChangingEventManager.cs
- UnsafeNativeMethods.cs
- BooleanFacetDescriptionElement.cs
- VirtualPathExtension.cs
- PipelineDeploymentState.cs
- RawKeyboardInputReport.cs
- PermissionRequestEvidence.cs
- ExternalException.cs
- StyleHelper.cs
- CrossSiteScriptingValidation.cs
- CTreeGenerator.cs
- DecimalAnimationBase.cs
- CodeVariableDeclarationStatement.cs
- ViewStateModeByIdAttribute.cs
- BulletDecorator.cs
- TextMetrics.cs
- PermissionToken.cs
- ChangeInterceptorAttribute.cs
- SqlPersistenceWorkflowInstanceDescription.cs
- SqlCacheDependencySection.cs
- TableRowCollection.cs
- ErrorsHelper.cs
- SQLSingle.cs
- DirectionalLight.cs
- RoleManagerEventArgs.cs
- HwndKeyboardInputProvider.cs
- ReflectionHelper.cs
- OdbcParameter.cs
- TokenBasedSet.cs
- SharedUtils.cs
- Permission.cs
- GeometryConverter.cs
- ConfigurationSection.cs
- HistoryEventArgs.cs
- CompositeTypefaceMetrics.cs
- DefaultTraceListener.cs
- ResXResourceWriter.cs
- WebPartMenu.cs
- Models.cs
- WorkflowWebHostingModule.cs
- Clause.cs
- Point3DKeyFrameCollection.cs
- MembershipValidatePasswordEventArgs.cs
- SamlAttributeStatement.cs
- QuotedPrintableStream.cs
- SqlCacheDependency.cs
- EpmContentDeSerializerBase.cs
- MatrixConverter.cs
- FrameAutomationPeer.cs
- RegexCode.cs
- Content.cs
- QuaternionAnimation.cs
- DataGridBeginningEditEventArgs.cs
- OdbcInfoMessageEvent.cs
- EditableTreeList.cs
- JapaneseLunisolarCalendar.cs
- activationcontext.cs
- XmlSchemaNotation.cs
- XmlnsCache.cs
- sqlmetadatafactory.cs