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
- OdbcEnvironment.cs
- SafeNativeMethodsMilCoreApi.cs
- DataGridViewRowsRemovedEventArgs.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- ServiceDurableInstance.cs
- BinaryOperationBinder.cs
- WebControlsSection.cs
- SafeRightsManagementQueryHandle.cs
- Attributes.cs
- HttpResponse.cs
- OutputCacheSettingsSection.cs
- XdrBuilder.cs
- DataSvcMapFileSerializer.cs
- TextTreeObjectNode.cs
- DateTimeConverter2.cs
- PropertySegmentSerializationProvider.cs
- AQNBuilder.cs
- ProcessHostConfigUtils.cs
- ResourcesBuildProvider.cs
- PropertyDescriptorComparer.cs
- _Win32.cs
- TableCellCollection.cs
- Helper.cs
- mactripleDES.cs
- ScrollPatternIdentifiers.cs
- AuthorizationRule.cs
- lengthconverter.cs
- InvokeHandlers.cs
- XmlSchemaAny.cs
- PointIndependentAnimationStorage.cs
- SafePipeHandle.cs
- MultiView.cs
- InvocationExpression.cs
- DigestComparer.cs
- ToolboxComponentsCreatedEventArgs.cs
- TextRangeEditTables.cs
- TextDpi.cs
- PrintController.cs
- ADMembershipUser.cs
- SQLInt64Storage.cs
- ResourceDictionary.cs
- NonParentingControl.cs
- XD.cs
- IsolationInterop.cs
- PropertyChangeTracker.cs
- OpacityConverter.cs
- ComboBoxItem.cs
- PersonalizationStateInfo.cs
- SByte.cs
- AttributeEmitter.cs
- HandlerBase.cs
- DataFieldCollectionEditor.cs
- AcceleratedTokenAuthenticator.cs
- FocusWithinProperty.cs
- StreamSecurityUpgradeInitiatorAsyncResult.cs
- ClientData.cs
- PasswordDeriveBytes.cs
- SqlDataRecord.cs
- TextReader.cs
- PackagePart.cs
- PrimaryKeyTypeConverter.cs
- TextCompositionEventArgs.cs
- cookie.cs
- DataColumnChangeEvent.cs
- XmlAttribute.cs
- XsltContext.cs
- GeneralTransform3DGroup.cs
- _SSPISessionCache.cs
- PagedDataSource.cs
- TreeNodeBindingCollection.cs
- FilteredAttributeCollection.cs
- DatatypeImplementation.cs
- ParameterReplacerVisitor.cs
- PrimarySelectionAdorner.cs
- CustomErrorsSectionWrapper.cs
- ResumeStoryboard.cs
- pingexception.cs
- SqlStatistics.cs
- InteropTrackingRecord.cs
- StringAnimationUsingKeyFrames.cs
- XmlSchemaAttribute.cs
- path.cs
- ReceiveDesigner.xaml.cs
- TableChangeProcessor.cs
- ScrollItemPattern.cs
- ImagingCache.cs
- PageThemeBuildProvider.cs
- XmlAttributeAttribute.cs
- TypeNameConverter.cs
- UnsafeNativeMethods.cs
- arc.cs
- SmtpNetworkElement.cs
- DbProviderConfigurationHandler.cs
- ObjectAnimationUsingKeyFrames.cs
- Stack.cs
- SoapFault.cs
- NullableIntMinMaxAggregationOperator.cs
- ProxyWebPartManager.cs
- LogReserveAndAppendState.cs
- WhitespaceRuleReader.cs