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
- SQLConvert.cs
- BindingWorker.cs
- XmlSchemaAnyAttribute.cs
- AssemblyAttributesGoHere.cs
- DocumentPaginator.cs
- BuildProviderAppliesToAttribute.cs
- DocumentSchemaValidator.cs
- MetadataPropertyvalue.cs
- CreateUserWizardDesigner.cs
- MatrixAnimationBase.cs
- DataSourceSerializationException.cs
- shaperfactory.cs
- DocumentPage.cs
- SelectionGlyphBase.cs
- SystemUnicastIPAddressInformation.cs
- ColumnTypeConverter.cs
- ConfigurationElement.cs
- StrongNameMembershipCondition.cs
- XmlExpressionDumper.cs
- XNodeValidator.cs
- SectionXmlInfo.cs
- ScaleTransform.cs
- PixelFormatConverter.cs
- AggregateException.cs
- MasterPageParser.cs
- StringFunctions.cs
- ReferencedAssemblyResolver.cs
- HttpStreamXmlDictionaryWriter.cs
- HtmlForm.cs
- TypePropertyEditor.cs
- ProcessThreadCollection.cs
- EntityClientCacheKey.cs
- SerializationSectionGroup.cs
- TiffBitmapEncoder.cs
- ExpressionBuilder.cs
- WindowsScroll.cs
- InternalResources.cs
- EntitySetBaseCollection.cs
- TypeDependencyAttribute.cs
- BinaryKeyIdentifierClause.cs
- MouseActionConverter.cs
- IpcClientChannel.cs
- Material.cs
- TextTreeRootNode.cs
- RewritingPass.cs
- DataGridViewImageCell.cs
- CopyCodeAction.cs
- UIElementParagraph.cs
- TypedReference.cs
- FontNamesConverter.cs
- _emptywebproxy.cs
- DataGridState.cs
- HashCodeCombiner.cs
- BitmapEffectInput.cs
- DbConnectionClosed.cs
- MaskedTextBox.cs
- CellIdBoolean.cs
- FrameworkContentElement.cs
- SystemColors.cs
- ClientEventManager.cs
- MutexSecurity.cs
- ReadContentAsBinaryHelper.cs
- GenericAuthenticationEventArgs.cs
- Lease.cs
- IdentifierCollection.cs
- DashStyle.cs
- FormsAuthentication.cs
- DataSourceSelectArguments.cs
- ToolStripArrowRenderEventArgs.cs
- DrawingVisualDrawingContext.cs
- Matrix.cs
- BamlCollectionHolder.cs
- TypeInitializationException.cs
- OleDbErrorCollection.cs
- CannotUnloadAppDomainException.cs
- NamedPipeDuplicateContext.cs
- StoragePropertyMapping.cs
- ExpressionPrefixAttribute.cs
- DataSourceDescriptorCollection.cs
- PermissionSetTriple.cs
- MgmtConfigurationRecord.cs
- MemberInfoSerializationHolder.cs
- TextInfo.cs
- XmlHierarchicalEnumerable.cs
- SpeechRecognitionEngine.cs
- ViewBox.cs
- PhysicalAddress.cs
- EventProxy.cs
- MappingSource.cs
- ProcessThreadCollection.cs
- TrackingParameters.cs
- CqlParser.cs
- HtmlToClrEventProxy.cs
- DBNull.cs
- CopyOfAction.cs
- FrameworkContextData.cs
- BufferedGraphicsContext.cs
- IndexedEnumerable.cs
- Int16KeyFrameCollection.cs
- CalendarDateRangeChangingEventArgs.cs