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
- StringFunctions.cs
- EdmProviderManifest.cs
- HwndHostAutomationPeer.cs
- LinearGradientBrush.cs
- ProxyWebPartManager.cs
- DashStyles.cs
- WebZone.cs
- MenuItemStyleCollection.cs
- ObjectAnimationBase.cs
- WindowsRegion.cs
- SqlTransaction.cs
- SQLResource.cs
- XmlLinkedNode.cs
- SamlConstants.cs
- _OSSOCK.cs
- TreeNodeCollectionEditor.cs
- SuppressIldasmAttribute.cs
- DBSchemaTable.cs
- RadioButtonRenderer.cs
- LinearGradientBrush.cs
- UnionCqlBlock.cs
- PropertyTabAttribute.cs
- RuleSet.cs
- IPipelineRuntime.cs
- TripleDES.cs
- AffineTransform3D.cs
- GlyphTypeface.cs
- SafeBitVector32.cs
- FrameworkPropertyMetadata.cs
- EditorPartChrome.cs
- DataGridViewCellMouseEventArgs.cs
- RetrieveVirtualItemEventArgs.cs
- SamlAttribute.cs
- DSACryptoServiceProvider.cs
- StringValueSerializer.cs
- ErrorHandler.cs
- StringOutput.cs
- WebPartDescriptionCollection.cs
- DataGridTablesFactory.cs
- LayoutInformation.cs
- PropertyGridDesigner.cs
- RootBrowserWindowProxy.cs
- OpCellTreeNode.cs
- BitArray.cs
- DynamicAttribute.cs
- errorpatternmatcher.cs
- VariantWrapper.cs
- Literal.cs
- HMACMD5.cs
- SignedXml.cs
- TemplateApplicationHelper.cs
- GregorianCalendarHelper.cs
- Mappings.cs
- CollectionChange.cs
- TextRangeSerialization.cs
- FillBehavior.cs
- WorkflowMessageEventHandler.cs
- Int32RectConverter.cs
- EventLogTraceListener.cs
- SoapAttributes.cs
- EventLogPermissionEntryCollection.cs
- ConfigurationManagerInternalFactory.cs
- Freezable.cs
- _Rfc2616CacheValidators.cs
- ExternalException.cs
- ApplicationGesture.cs
- DataTableNewRowEvent.cs
- FixedSOMTableRow.cs
- RoleManagerSection.cs
- ServiceDurableInstanceContextProvider.cs
- XmlTextReader.cs
- DataGridAutomationPeer.cs
- RawTextInputReport.cs
- XsdBuilder.cs
- activationcontext.cs
- MenuItemBinding.cs
- ValidationHelper.cs
- ChannelBinding.cs
- Util.cs
- ExternalException.cs
- VerbConverter.cs
- MouseCaptureWithinProperty.cs
- Timer.cs
- FirstMatchCodeGroup.cs
- ProxyWebPartConnectionCollection.cs
- ReadWriteObjectLock.cs
- FontUnit.cs
- CheckableControlBaseAdapter.cs
- DbUpdateCommandTree.cs
- CommandHelpers.cs
- WizardPanelChangingEventArgs.cs
- TrackingMemoryStreamFactory.cs
- LineGeometry.cs
- HeaderElement.cs
- validation.cs
- Section.cs
- XamlBrushSerializer.cs
- WebPartHelpVerb.cs
- RuntimeHandles.cs
- StateMachine.cs