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
- ByteStorage.cs
- SessionPageStatePersister.cs
- DBBindings.cs
- SourceItem.cs
- DeferredSelectedIndexReference.cs
- XmlProcessingInstruction.cs
- TimeZone.cs
- BindingValueChangedEventArgs.cs
- CallContext.cs
- WorkflowHostingResponseContext.cs
- OperatorExpressions.cs
- EntitySetDataBindingList.cs
- ReferenceList.cs
- XmlChildNodes.cs
- WebConfigurationManager.cs
- TableLayoutPanelCodeDomSerializer.cs
- WriteLineDesigner.xaml.cs
- XmlSortKeyAccumulator.cs
- CertificateManager.cs
- SymLanguageType.cs
- OracleString.cs
- HintTextMaxWidthConverter.cs
- PolicyManager.cs
- StringComparer.cs
- PageCache.cs
- SqlCacheDependency.cs
- ReturnEventArgs.cs
- ObjectQuery.cs
- EntryWrittenEventArgs.cs
- Console.cs
- Int16KeyFrameCollection.cs
- DateTimeConverter2.cs
- RawMouseInputReport.cs
- PropertyCollection.cs
- COM2ExtendedUITypeEditor.cs
- TextRangeSerialization.cs
- ReachDocumentPageSerializer.cs
- ValueType.cs
- ExternalException.cs
- DrawingDrawingContext.cs
- SoapHttpTransportImporter.cs
- DesignerInterfaces.cs
- DoWhileDesigner.xaml.cs
- WebPartConnectionsEventArgs.cs
- MyContact.cs
- NegotiationTokenAuthenticatorState.cs
- XmlToDatasetMap.cs
- WebPartVerbsEventArgs.cs
- BackgroundWorker.cs
- XamlStyleSerializer.cs
- DataControlFieldCollection.cs
- ReachPageContentCollectionSerializer.cs
- StringCollection.cs
- UnsafeNativeMethodsPenimc.cs
- WebBrowsableAttribute.cs
- WorkflowValidationFailedException.cs
- ParameterRetriever.cs
- UrlPropertyAttribute.cs
- GAC.cs
- DefaultDialogButtons.cs
- TransformValueSerializer.cs
- FormatterServices.cs
- ServerValidateEventArgs.cs
- DataGridViewComboBoxColumn.cs
- RichTextBoxConstants.cs
- QilReplaceVisitor.cs
- HwndTarget.cs
- SHA256.cs
- XmlSchemaObjectTable.cs
- TableRow.cs
- ServicePointManagerElement.cs
- ByValueEqualityComparer.cs
- XmlDictionaryReaderQuotas.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- MetadataCache.cs
- GeneralTransform.cs
- JsonFormatWriterGenerator.cs
- Subtree.cs
- Pair.cs
- SortableBindingList.cs
- JoinSymbol.cs
- WebConfigurationHost.cs
- ListDesigner.cs
- FontCacheUtil.cs
- SelfIssuedAuthProofToken.cs
- DbConnectionOptions.cs
- PeerEndPoint.cs
- DesignTimeTemplateParser.cs
- SQLSingle.cs
- DataTemplateSelector.cs
- SqlFlattener.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- QualificationDataAttribute.cs
- DataColumnChangeEvent.cs
- AdornerDecorator.cs
- UnmanagedMemoryStreamWrapper.cs
- OLEDB_Enum.cs
- ExitEventArgs.cs
- SHA384.cs
- DataTableExtensions.cs