Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- ActivityExecutionContext.cs
- Ref.cs
- SecurityContext.cs
- DataTableMappingCollection.cs
- ExceptionHelpers.cs
- KeyGestureValueSerializer.cs
- XmlQueryStaticData.cs
- WebPartConnectionsEventArgs.cs
- BoolExpressionVisitors.cs
- DataGridItemEventArgs.cs
- PropertyNames.cs
- NaturalLanguageHyphenator.cs
- ObsoleteAttribute.cs
- WindowInteractionStateTracker.cs
- TextOptionsInternal.cs
- TableDesigner.cs
- ConfigurationValues.cs
- TerminatorSinks.cs
- CallSiteBinder.cs
- DoubleStorage.cs
- RepeaterItemEventArgs.cs
- CapabilitiesSection.cs
- _KerberosClient.cs
- CopyOnWriteList.cs
- ProcessHostServerConfig.cs
- DrawingCollection.cs
- Int32Converter.cs
- XmlAttributeCache.cs
- DataServiceKeyAttribute.cs
- FrameSecurityDescriptor.cs
- NameTable.cs
- CLSCompliantAttribute.cs
- BaseValidator.cs
- ByteStreamGeometryContext.cs
- InputReport.cs
- ObjectDataSourceMethodEventArgs.cs
- PanelDesigner.cs
- VectorConverter.cs
- XmlSchemaAnyAttribute.cs
- XmlSchemaInfo.cs
- DataRowComparer.cs
- Method.cs
- TextBoxBase.cs
- SizeConverter.cs
- EndpointDiscoveryMetadataCD1.cs
- RangeValidator.cs
- ListParagraph.cs
- ObjectAnimationBase.cs
- ClientRuntimeConfig.cs
- TextTreeInsertUndoUnit.cs
- TextTrailingCharacterEllipsis.cs
- FontNamesConverter.cs
- ResourceManager.cs
- ComplusTypeValidator.cs
- DataAccessor.cs
- TextContainerChangedEventArgs.cs
- QilGeneratorEnv.cs
- Currency.cs
- ButtonFlatAdapter.cs
- ProjectionRewriter.cs
- Trace.cs
- OleDbParameter.cs
- ArithmeticException.cs
- ToolStripTextBox.cs
- XamlReaderHelper.cs
- DummyDataSource.cs
- SoapSchemaImporter.cs
- InvalidPrinterException.cs
- WindowsToolbarItemAsMenuItem.cs
- AdornerLayer.cs
- SpecialFolderEnumConverter.cs
- TogglePatternIdentifiers.cs
- ExistsInCollection.cs
- InputMethodStateTypeInfo.cs
- DodSequenceMerge.cs
- NativeMethods.cs
- BaseCollection.cs
- VersionPair.cs
- Debug.cs
- DataBindingHandlerAttribute.cs
- SiteMap.cs
- DataBoundControlHelper.cs
- SubMenuStyleCollection.cs
- ImageListUtils.cs
- Literal.cs
- TranslateTransform.cs
- SrgsElement.cs
- RoleGroup.cs
- DecoderExceptionFallback.cs
- XmlSchemaAnnotation.cs
- MexTcpBindingElement.cs
- XmlEventCache.cs
- Polygon.cs
- Parameter.cs
- QuotaExceededException.cs
- SystemThemeKey.cs
- PropertyInformation.cs
- UrlMappingsModule.cs
- Label.cs
- NumberSubstitution.cs