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
- PeerApplicationLaunchInfo.cs
- TextFragmentEngine.cs
- XmlLanguageConverter.cs
- ExpressionHelper.cs
- DocumentReference.cs
- RestrictedTransactionalPackage.cs
- DocumentGridPage.cs
- BaseAddressPrefixFilterElementCollection.cs
- RepeaterCommandEventArgs.cs
- XmlSchemaAttributeGroupRef.cs
- SubclassTypeValidatorAttribute.cs
- TypeForwardedToAttribute.cs
- ResourceFallbackManager.cs
- PopupRootAutomationPeer.cs
- BinaryParser.cs
- EventLogPermissionHolder.cs
- UserControlDocumentDesigner.cs
- UpdateRecord.cs
- ErrorWebPart.cs
- NumericExpr.cs
- ParentControlDesigner.cs
- NetworkInformationException.cs
- ExpressionSelection.cs
- EventLogPermissionEntryCollection.cs
- DelegatingHeader.cs
- DebugInfoGenerator.cs
- Byte.cs
- RenderContext.cs
- InvokeWebServiceDesigner.cs
- ExtendedPropertyDescriptor.cs
- PropertyCondition.cs
- RegexTree.cs
- PriorityItem.cs
- EntityTypeBase.cs
- HitTestDrawingContextWalker.cs
- Compiler.cs
- GrammarBuilderPhrase.cs
- ContextMarshalException.cs
- DataMisalignedException.cs
- ReachSerializer.cs
- HtmlTableRow.cs
- TextTreeDeleteContentUndoUnit.cs
- ClientApiGenerator.cs
- XMLUtil.cs
- PhonemeConverter.cs
- BuildResultCache.cs
- TextRunTypographyProperties.cs
- LZCodec.cs
- ComplexType.cs
- ToolBarTray.cs
- UidManager.cs
- XPathNodePointer.cs
- COM2PropertyDescriptor.cs
- ExceptionTrace.cs
- Margins.cs
- entityreference_tresulttype.cs
- ExtendedProtectionPolicy.cs
- RenameRuleObjectDialog.cs
- ObjectListCommandEventArgs.cs
- TextComposition.cs
- DrawingGroup.cs
- SingleSelectRootGridEntry.cs
- DropTarget.cs
- EntityTypeEmitter.cs
- XdrBuilder.cs
- BufferAllocator.cs
- SiteMapPathDesigner.cs
- TCPClient.cs
- ConsoleCancelEventArgs.cs
- FixedSOMContainer.cs
- MetadataPropertyvalue.cs
- ByteConverter.cs
- ValidationRuleCollection.cs
- PathGeometry.cs
- AppDomain.cs
- SourceCollection.cs
- WmpBitmapDecoder.cs
- HtmlElementCollection.cs
- Shape.cs
- PolyLineSegment.cs
- ComponentCommands.cs
- FontCollection.cs
- GridEntry.cs
- XmlSchemaParticle.cs
- MethodExpr.cs
- DefinitionBase.cs
- Pair.cs
- DataGridViewCellParsingEventArgs.cs
- ExpressionServices.cs
- RemotingConfigParser.cs
- TextBoxBase.cs
- DispatcherObject.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- InheritanceRules.cs
- SendMailErrorEventArgs.cs
- ProxyGenerator.cs
- SourceElementsCollection.cs
- DataGridPagingPage.cs
- HandleScope.cs
- GeneralTransformGroup.cs