Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media3D / Point3DCollection.cs / 1305600 / 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
- AutomationPatternInfo.cs
- PerformanceCounter.cs
- HandlerFactoryCache.cs
- EventItfInfo.cs
- CroppedBitmap.cs
- NameValueCollection.cs
- ThaiBuddhistCalendar.cs
- EventLogSession.cs
- AnchoredBlock.cs
- _HelperAsyncResults.cs
- XPathItem.cs
- ServiceSecurityAuditElement.cs
- ManagementQuery.cs
- ScrollableControlDesigner.cs
- _ChunkParse.cs
- DetailsViewRowCollection.cs
- ArrayMergeHelper.cs
- GetMemberBinder.cs
- InstallHelper.cs
- GridLength.cs
- XmlSchemaComplexContentExtension.cs
- CriticalFinalizerObject.cs
- StringResourceManager.cs
- CqlLexer.cs
- FrameworkPropertyMetadata.cs
- ProfileServiceManager.cs
- SelectionEditingBehavior.cs
- CodeBlockBuilder.cs
- PenThread.cs
- ResXBuildProvider.cs
- Typography.cs
- SegmentInfo.cs
- FaultHandlingFilter.cs
- TableSectionStyle.cs
- ExpressionLexer.cs
- XPathQueryGenerator.cs
- ChannelSinkStacks.cs
- ErrorActivity.cs
- EntitySetDataBindingList.cs
- AnnotationAuthorChangedEventArgs.cs
- RequestResponse.cs
- WindowsToolbarAsMenu.cs
- PixelFormat.cs
- DataServiceHostFactory.cs
- HtmlElement.cs
- InvalidDataException.cs
- XsdDateTime.cs
- ToolboxItem.cs
- PointConverter.cs
- DynamicILGenerator.cs
- PeerValidationBehavior.cs
- XmlWriterDelegator.cs
- Dynamic.cs
- ManifestSignatureInformation.cs
- TextEditorSpelling.cs
- TailCallAnalyzer.cs
- SimpleType.cs
- ResolvedKeyFrameEntry.cs
- ContentOperations.cs
- DictionaryItemsCollection.cs
- BuildProviderAppliesToAttribute.cs
- LogStore.cs
- Socket.cs
- TimeSpanValidator.cs
- PackageRelationshipCollection.cs
- Pair.cs
- DesignerOptions.cs
- NetSectionGroup.cs
- XsltFunctions.cs
- StatusBarItem.cs
- UpdateProgress.cs
- ServiceHttpHandlerFactory.cs
- HtmlInputSubmit.cs
- SizeChangedInfo.cs
- Table.cs
- SmtpNtlmAuthenticationModule.cs
- NeedSkipTokenVisitor.cs
- Validator.cs
- ValidatorCompatibilityHelper.cs
- TraceEventCache.cs
- MultiSelector.cs
- CacheDependency.cs
- TaskCanceledException.cs
- BigIntegerStorage.cs
- HandleCollector.cs
- SessionStateContainer.cs
- WorkflowServiceInstance.cs
- RadioButtonBaseAdapter.cs
- LocalValueEnumerator.cs
- MonitoringDescriptionAttribute.cs
- NativeMethods.cs
- ClientUrlResolverWrapper.cs
- CommonRemoteMemoryBlock.cs
- MaterialGroup.cs
- MasterPageBuildProvider.cs
- IgnoreSection.cs
- sqlnorm.cs
- TextProviderWrapper.cs
- InfiniteIntConverter.cs
- TreeChangeInfo.cs