Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- RegexGroup.cs
- WpfWebRequestHelper.cs
- WebRequestModuleElementCollection.cs
- UserControlBuildProvider.cs
- ReliabilityContractAttribute.cs
- Pen.cs
- XmlSchemaDocumentation.cs
- EncodingNLS.cs
- SqlUserDefinedTypeAttribute.cs
- SchemaNotation.cs
- ConnectionOrientedTransportChannelListener.cs
- SqlGenericUtil.cs
- TreeSet.cs
- EventDescriptor.cs
- XmlObjectSerializerWriteContextComplex.cs
- MobileCategoryAttribute.cs
- ExpressionBuilder.cs
- ComplexType.cs
- DataViewManagerListItemTypeDescriptor.cs
- WindowPatternIdentifiers.cs
- ModelItem.cs
- DocumentReference.cs
- BitmapCodecInfoInternal.cs
- SqlDelegatedTransaction.cs
- MetadataArtifactLoaderCompositeFile.cs
- Animatable.cs
- GeneralTransform2DTo3D.cs
- StaticSiteMapProvider.cs
- DbConnectionHelper.cs
- SoapEnumAttribute.cs
- validation.cs
- MultiSelectRootGridEntry.cs
- Dynamic.cs
- StorageAssociationSetMapping.cs
- SelfIssuedAuthRSAPKCS1SignatureFormatter.cs
- PlatformNotSupportedException.cs
- PseudoWebRequest.cs
- PrivacyNoticeBindingElement.cs
- SiteMapDataSource.cs
- DynamicILGenerator.cs
- ValidationError.cs
- CodeIdentifier.cs
- RuntimeUtils.cs
- DrawingVisual.cs
- Inline.cs
- TabPageDesigner.cs
- SecurityDocument.cs
- PromptStyle.cs
- SafeTimerHandle.cs
- AttributeSetAction.cs
- SettingsProperty.cs
- Variant.cs
- StateElementCollection.cs
- PolyQuadraticBezierSegment.cs
- WizardPanelChangingEventArgs.cs
- MonitorWrapper.cs
- ObjectRef.cs
- CurrentTimeZone.cs
- XLinq.cs
- NavigationPropertyEmitter.cs
- MILUtilities.cs
- UserMapPath.cs
- ImageSource.cs
- Rule.cs
- AgileSafeNativeMemoryHandle.cs
- SwitchAttribute.cs
- DocumentSequenceHighlightLayer.cs
- TextReturnReader.cs
- HttpClientChannel.cs
- UnknownBitmapDecoder.cs
- BinaryUtilClasses.cs
- RuntimeConfigLKG.cs
- EventArgs.cs
- ZipIOCentralDirectoryFileHeader.cs
- ReadOnlyTernaryTree.cs
- Point4DValueSerializer.cs
- SiteMapDataSourceView.cs
- FunctionImportElement.cs
- DbConnectionHelper.cs
- FormClosedEvent.cs
- CryptoApi.cs
- ModelItemDictionaryImpl.cs
- ZipIOExtraFieldElement.cs
- CreateRefExpr.cs
- RoutingUtilities.cs
- TextRangeAdaptor.cs
- CryptoHandle.cs
- BaseResourcesBuildProvider.cs
- TextParentUndoUnit.cs
- MenuItemStyle.cs
- BufferAllocator.cs
- _TLSstream.cs
- CornerRadius.cs
- EncodingDataItem.cs
- SecureConversationVersion.cs
- ScriptingJsonSerializationSection.cs
- ScriptingJsonSerializationSection.cs
- DataContractFormatAttribute.cs
- ItemDragEvent.cs
- KeysConverter.cs