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
- XmlnsCache.cs
- DotExpr.cs
- SynchronizedCollection.cs
- NGCSerializer.cs
- MimeTypeAttribute.cs
- StyleXamlParser.cs
- SynchronizationContextHelper.cs
- InternalControlCollection.cs
- SystemUdpStatistics.cs
- DBCommand.cs
- GregorianCalendar.cs
- DataServiceException.cs
- DataServiceSaveChangesEventArgs.cs
- SynchronizationLockException.cs
- TargetParameterCountException.cs
- EllipseGeometry.cs
- DiagnosticSection.cs
- SqlUdtInfo.cs
- DataControlFieldCell.cs
- ZipIOExtraFieldZip64Element.cs
- DataServiceCollectionOfT.cs
- ExpressionBuilderContext.cs
- TextBox.cs
- DataGridViewRowCollection.cs
- StrokeNodeEnumerator.cs
- AlternateViewCollection.cs
- DetailsViewDeletedEventArgs.cs
- VisualBrush.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- TriggerBase.cs
- RectangleHotSpot.cs
- SpotLight.cs
- TypeResolver.cs
- SplashScreenNativeMethods.cs
- XmlSchemaNotation.cs
- ReferenceEqualityComparer.cs
- WebPartMenuStyle.cs
- WebPartConnectionCollection.cs
- ToolStripSettings.cs
- DeleteIndexBinder.cs
- WebProxyScriptElement.cs
- Substitution.cs
- Facet.cs
- NamedObject.cs
- RightsManagementEncryptedStream.cs
- LineSegment.cs
- StringCollection.cs
- XmlProcessingInstruction.cs
- TimersDescriptionAttribute.cs
- UnsafeNativeMethods.cs
- PartitionerStatic.cs
- WebBrowserBase.cs
- SafeTokenHandle.cs
- WebServiceErrorEvent.cs
- SecurityElementBase.cs
- Reference.cs
- SchemaEntity.cs
- ValidationError.cs
- SafeNativeMethods.cs
- ZoneIdentityPermission.cs
- WindowsRebar.cs
- DataChangedEventManager.cs
- XmlElementCollection.cs
- ClrPerspective.cs
- TextEditorParagraphs.cs
- BindingCollection.cs
- HostingEnvironmentWrapper.cs
- MappingMetadataHelper.cs
- _Win32.cs
- RawStylusInputReport.cs
- StreamSecurityUpgradeProvider.cs
- AnnotationResourceChangedEventArgs.cs
- EdmMember.cs
- SQLRoleProvider.cs
- XmlSchemaImport.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- XmlStreamNodeWriter.cs
- PtsContext.cs
- AggregatePushdown.cs
- StylusPoint.cs
- ZipIOLocalFileDataDescriptor.cs
- EtwTrace.cs
- StateWorkerRequest.cs
- Transform3D.cs
- HashSetDebugView.cs
- MouseCaptureWithinProperty.cs
- IntegerValidator.cs
- PageContentAsyncResult.cs
- SrgsRulesCollection.cs
- Rotation3D.cs
- Double.cs
- _Rfc2616CacheValidators.cs
- DataTemplateKey.cs
- BaseDataBoundControl.cs
- EntitySqlQueryCacheKey.cs
- CryptoKeySecurity.cs
- CLRBindingWorker.cs
- Scene3D.cs
- AdditionalEntityFunctions.cs
- RoleGroupCollection.cs