Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- DrawingBrush.cs
- DataBindingList.cs
- BrowserCapabilitiesFactory35.cs
- LinqDataSourceUpdateEventArgs.cs
- SqlInternalConnection.cs
- SqlAliaser.cs
- ClrPerspective.cs
- Triplet.cs
- File.cs
- CallbackBehaviorAttribute.cs
- DesignerDataTableBase.cs
- TypeLibConverter.cs
- JsonReaderWriterFactory.cs
- WmfPlaceableFileHeader.cs
- TextSelectionProcessor.cs
- HwndTarget.cs
- WindowsGraphicsWrapper.cs
- X509CertificateCollection.cs
- SQLBinary.cs
- FormViewRow.cs
- Signature.cs
- ObjectStorage.cs
- DeflateEmulationStream.cs
- TagNameToTypeMapper.cs
- GeneralTransform3D.cs
- BamlTreeMap.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- HtmlTable.cs
- SqlMultiplexer.cs
- CTreeGenerator.cs
- Vector3DAnimationBase.cs
- PropertyDescriptorComparer.cs
- ResizeGrip.cs
- OrderedDictionary.cs
- VectorValueSerializer.cs
- Polyline.cs
- UseLicense.cs
- DBSchemaTable.cs
- DefaultHttpHandler.cs
- StickyNoteHelper.cs
- BitmapPalette.cs
- OleDbFactory.cs
- PropertyOverridesDialog.cs
- X509Certificate2.cs
- xdrvalidator.cs
- TextChange.cs
- TileBrush.cs
- InfoCardSymmetricCrypto.cs
- BezierSegment.cs
- SystemThemeKey.cs
- DirectionalLight.cs
- UnauthorizedAccessException.cs
- TemplatePropertyEntry.cs
- XmlBufferedByteStreamReader.cs
- HwndProxyElementProvider.cs
- CodeCompiler.cs
- DurableInstanceProvider.cs
- CacheForPrimitiveTypes.cs
- __ConsoleStream.cs
- HttpCachePolicy.cs
- XmlDocument.cs
- RemotingConfiguration.cs
- Emitter.cs
- MenuItemStyleCollection.cs
- TranslateTransform3D.cs
- SoapElementAttribute.cs
- CharacterBufferReference.cs
- ItemCollection.cs
- DataBindingCollectionConverter.cs
- XmlDocumentSurrogate.cs
- Ops.cs
- XamlNamespaceHelper.cs
- XPathDocumentNavigator.cs
- RenamedEventArgs.cs
- BrowserTree.cs
- BamlResourceContent.cs
- CompilerGeneratedAttribute.cs
- SqlConnectionStringBuilder.cs
- Collection.cs
- DesignerImageAdapter.cs
- PointUtil.cs
- SHA384.cs
- DataGridViewSelectedCellCollection.cs
- FormsAuthenticationConfiguration.cs
- activationcontext.cs
- Resources.Designer.cs
- NegotiationTokenAuthenticatorState.cs
- EnumType.cs
- PagedDataSource.cs
- FileSecurity.cs
- MouseGestureConverter.cs
- ClientSettingsProvider.cs
- VariableAction.cs
- GiveFeedbackEvent.cs
- DefaultObjectMappingItemCollection.cs
- HeaderCollection.cs
- CollectionChangeEventArgs.cs
- DbXmlEnabledProviderManifest.cs
- LinqMaximalSubtreeNominator.cs
- WebPartMenuStyle.cs