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
- PageResolution.cs
- SafeCertificateContext.cs
- SatelliteContractVersionAttribute.cs
- SqlDataSourceCommandEventArgs.cs
- HandleRef.cs
- SystemIPInterfaceStatistics.cs
- _SSPISessionCache.cs
- ScriptReference.cs
- DataControlFieldCell.cs
- SystemFonts.cs
- ButtonPopupAdapter.cs
- ThreadInterruptedException.cs
- XmlMessageFormatter.cs
- SqlInternalConnection.cs
- NameSpaceExtractor.cs
- XmlDataProvider.cs
- CodeSnippetTypeMember.cs
- ProfileModule.cs
- SessionState.cs
- HScrollProperties.cs
- WebEventTraceProvider.cs
- SchemaElementDecl.cs
- RoutedPropertyChangedEventArgs.cs
- QueuePathDialog.cs
- CreatingCookieEventArgs.cs
- SafeTimerHandle.cs
- WebServiceClientProxyGenerator.cs
- HttpServerUtilityBase.cs
- StylusPointPropertyInfoDefaults.cs
- columnmapkeybuilder.cs
- XmlSchemaSimpleTypeList.cs
- TimeoutStream.cs
- SubpageParagraph.cs
- TimelineClockCollection.cs
- ObjectSet.cs
- XmlUtf8RawTextWriter.cs
- AuthorizationRuleCollection.cs
- SafeNativeMethods.cs
- _Events.cs
- WindowsListViewGroup.cs
- HtmlDocument.cs
- VariableQuery.cs
- PageAdapter.cs
- PlacementWorkspace.cs
- MultiBinding.cs
- BamlLocalizableResource.cs
- DefaultMemberAttribute.cs
- InvalidFilterCriteriaException.cs
- LinkClickEvent.cs
- Point.cs
- IgnoreFileBuildProvider.cs
- TextEditorThreadLocalStore.cs
- DebugViewWriter.cs
- SoapAttributeAttribute.cs
- SessionPageStatePersister.cs
- LinqDataSourceDeleteEventArgs.cs
- ListBoxItem.cs
- ImportContext.cs
- ContractMapping.cs
- GeneralTransformGroup.cs
- FormClosingEvent.cs
- MouseActionValueSerializer.cs
- _HTTPDateParse.cs
- WinFormsComponentEditor.cs
- AbandonedMutexException.cs
- ConfigXmlCDataSection.cs
- InvalidPrinterException.cs
- RequestQueryParser.cs
- FloatMinMaxAggregationOperator.cs
- SoapRpcServiceAttribute.cs
- GridLength.cs
- AppDomainGrammarProxy.cs
- DataGridItemCollection.cs
- FieldBuilder.cs
- MultiplexingDispatchMessageFormatter.cs
- Rotation3DAnimationBase.cs
- TextDecorationCollection.cs
- DiscoveryMessageProperty.cs
- AttributeQuery.cs
- ExcCanonicalXml.cs
- CompressEmulationStream.cs
- ConstructorBuilder.cs
- TextBoxRenderer.cs
- BackgroundFormatInfo.cs
- UITypeEditor.cs
- Opcode.cs
- ExecutionEngineException.cs
- DigestComparer.cs
- cookiecollection.cs
- HtmlDocument.cs
- InkCanvasFeedbackAdorner.cs
- SynchronousChannelMergeEnumerator.cs
- DeclarationUpdate.cs
- FilterRepeater.cs
- MeasurementDCInfo.cs
- ToolStripDropTargetManager.cs
- CountdownEvent.cs
- _LocalDataStore.cs
- DescriptionAttribute.cs
- DataGridViewCellStateChangedEventArgs.cs