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
- XamlHostingConfiguration.cs
- ConfigurationPropertyAttribute.cs
- AssociationSet.cs
- XmlRawWriter.cs
- EncoderReplacementFallback.cs
- DirectoryLocalQuery.cs
- DiscardableAttribute.cs
- XmlReflectionMember.cs
- EntityTransaction.cs
- UrlPath.cs
- PackagePartCollection.cs
- RuleConditionDialog.Designer.cs
- ColumnHeader.cs
- DataGridViewColumnHeaderCell.cs
- WebPartUtil.cs
- DoubleLinkList.cs
- AccessViolationException.cs
- ISO2022Encoding.cs
- JpegBitmapDecoder.cs
- KeyValueInternalCollection.cs
- BrushConverter.cs
- Ports.cs
- PresentationSource.cs
- WorkflowRuntimeServiceElementCollection.cs
- IOThreadTimer.cs
- DataGridViewCheckBoxColumn.cs
- RootBrowserWindowProxy.cs
- TemplateControlCodeDomTreeGenerator.cs
- WebSysDescriptionAttribute.cs
- SubtreeProcessor.cs
- SecurityPolicySection.cs
- Asn1Utilities.cs
- MenuCommand.cs
- BasicViewGenerator.cs
- DocumentXPathNavigator.cs
- ErrorTableItemStyle.cs
- SynchronizationLockException.cs
- DataGridItemAutomationPeer.cs
- ConfigXmlElement.cs
- ConfigXmlText.cs
- BufferedReadStream.cs
- RuntimeResourceSet.cs
- BlurEffect.cs
- WebReferenceCollection.cs
- Assembly.cs
- XmlSchemaImport.cs
- TrustLevel.cs
- RetrieveVirtualItemEventArgs.cs
- ProfileParameter.cs
- AutomationAttributeInfo.cs
- WmlSelectionListAdapter.cs
- ObjectSet.cs
- SizeF.cs
- IfAction.cs
- FastEncoder.cs
- IconHelper.cs
- TextRangeProviderWrapper.cs
- ProcessHostMapPath.cs
- MetadataArtifactLoaderCompositeResource.cs
- ItemCheckedEvent.cs
- PersianCalendar.cs
- AccessibleObject.cs
- SslStreamSecurityUpgradeProvider.cs
- XmlSerializerAssemblyAttribute.cs
- SpnegoTokenProvider.cs
- GenericWebPart.cs
- XmlWrappingReader.cs
- HyperLinkField.cs
- EntityDataSourceEntitySetNameItem.cs
- CoTaskMemHandle.cs
- parserscommon.cs
- TagNameToTypeMapper.cs
- Message.cs
- MetadataItemEmitter.cs
- HtmlCalendarAdapter.cs
- FontStretchConverter.cs
- PageContentAsyncResult.cs
- Variant.cs
- SubpageParagraph.cs
- SynchronizedDispatch.cs
- ByteRangeDownloader.cs
- TypedColumnHandler.cs
- SecurityUtils.cs
- Viewport3DVisual.cs
- OwnerDrawPropertyBag.cs
- SizeAnimationBase.cs
- HtmlWindow.cs
- Process.cs
- PriorityBindingExpression.cs
- UInt64Converter.cs
- AncestorChangedEventArgs.cs
- ViewStateException.cs
- TextTreeUndo.cs
- DesignerAdRotatorAdapter.cs
- Single.cs
- TemplatePartAttribute.cs
- MasterPageParser.cs
- MessageBox.cs
- DbProviderManifest.cs
- KeyGestureConverter.cs