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
- RadioButton.cs
- WebPartMenuStyle.cs
- CompilerGeneratedAttribute.cs
- RSAPKCS1SignatureDeformatter.cs
- DataSourceSelectArguments.cs
- TabControl.cs
- SqlEnums.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- XmlMembersMapping.cs
- DataRelation.cs
- ServiceRouteHandler.cs
- RegistryExceptionHelper.cs
- XmlNodeList.cs
- RealizationContext.cs
- CommandDevice.cs
- ToolboxItem.cs
- CorruptingExceptionCommon.cs
- WebPartMenu.cs
- MenuItemBinding.cs
- DiscoveryDocumentLinksPattern.cs
- JsonReaderDelegator.cs
- TdsParameterSetter.cs
- NumberFormatInfo.cs
- Image.cs
- SafeThreadHandle.cs
- SignatureDescription.cs
- AuthenticationServiceManager.cs
- HandleExceptionArgs.cs
- IProducerConsumerCollection.cs
- InputChannelBinder.cs
- MemberRelationshipService.cs
- ClientType.cs
- Baml2006ReaderSettings.cs
- FileDialog_Vista.cs
- WindowsSlider.cs
- ProcessHostFactoryHelper.cs
- HtmlWindow.cs
- CodeSnippetStatement.cs
- BufferCache.cs
- TextDecorationUnitValidation.cs
- InheritablePropertyChangeInfo.cs
- WebPart.cs
- UIElement.cs
- MetadataProperty.cs
- DataSourceProvider.cs
- CodeGenHelper.cs
- invalidudtexception.cs
- KoreanLunisolarCalendar.cs
- complextypematerializer.cs
- SQlBooleanStorage.cs
- BitmapVisualManager.cs
- ClientFormsAuthenticationMembershipProvider.cs
- FloaterParaClient.cs
- COM2FontConverter.cs
- LinearQuaternionKeyFrame.cs
- EventHandlersStore.cs
- HttpConfigurationSystem.cs
- DrawingCollection.cs
- MatrixIndependentAnimationStorage.cs
- Hashtable.cs
- StrokeSerializer.cs
- CancelEventArgs.cs
- ActiveDocumentEvent.cs
- ObjectStateFormatter.cs
- WrapPanel.cs
- DataTableTypeConverter.cs
- ErrorHandler.cs
- WebPartVerbCollection.cs
- basevalidator.cs
- TextElement.cs
- ClientSettingsProvider.cs
- GenericWebPart.cs
- TileBrush.cs
- SoapSchemaImporter.cs
- WebPartPersonalization.cs
- DataGridViewCellStyleBuilderDialog.cs
- NotSupportedException.cs
- PermissionListSet.cs
- EntityContainerEntitySet.cs
- GuidelineSet.cs
- InteropEnvironment.cs
- GreaterThan.cs
- FileNotFoundException.cs
- PackageRelationshipSelector.cs
- CryptoApi.cs
- ForAllOperator.cs
- TrailingSpaceComparer.cs
- OleDbConnectionFactory.cs
- DataGridViewTopLeftHeaderCell.cs
- DataViewListener.cs
- PngBitmapEncoder.cs
- SourceElementsCollection.cs
- ReachDocumentReferenceCollectionSerializerAsync.cs
- Attachment.cs
- BookmarkTable.cs
- StatusBarDesigner.cs
- DocumentSequence.cs
- ProviderSettingsCollection.cs
- SizeAnimationBase.cs
- MessageQueueConverter.cs