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
- ModuleConfigurationInfo.cs
- CodeTypeParameter.cs
- DatasetMethodGenerator.cs
- RoleService.cs
- ConnectionInterfaceCollection.cs
- StateMachineWorkflowDesigner.cs
- DataRelationPropertyDescriptor.cs
- DataGridParentRows.cs
- SubpageParaClient.cs
- ManipulationStartingEventArgs.cs
- Descriptor.cs
- RealizationDrawingContextWalker.cs
- InternalBufferOverflowException.cs
- BitmapEffectInputConnector.cs
- SqlBulkCopyColumnMappingCollection.cs
- SafeCryptContextHandle.cs
- MapPathBasedVirtualPathProvider.cs
- RSAOAEPKeyExchangeDeformatter.cs
- XmlCharCheckingReader.cs
- AvTraceDetails.cs
- ProjectionAnalyzer.cs
- SafePEFileHandle.cs
- ScaleTransform.cs
- StreamAsIStream.cs
- SettingsAttributes.cs
- SqlPersonalizationProvider.cs
- DoubleIndependentAnimationStorage.cs
- BinaryCommonClasses.cs
- Constraint.cs
- TrustManagerMoreInformation.cs
- GridViewColumnHeaderAutomationPeer.cs
- FlowStep.cs
- StatusBarItemAutomationPeer.cs
- CatalogZone.cs
- BitStack.cs
- TreeView.cs
- ProcessingInstructionAction.cs
- WS2007HttpBindingCollectionElement.cs
- FontCollection.cs
- RootAction.cs
- XmlSchemaSubstitutionGroup.cs
- OpCodes.cs
- InputLangChangeEvent.cs
- TimersDescriptionAttribute.cs
- NegotiateStream.cs
- DocumentGridContextMenu.cs
- TypefaceMetricsCache.cs
- Label.cs
- GroupStyle.cs
- ScriptRef.cs
- WebUtil.cs
- QilExpression.cs
- ToolStripPanelRow.cs
- TraceProvider.cs
- AssemblyResourceLoader.cs
- AccessViolationException.cs
- ChangeProcessor.cs
- HttpClientProtocol.cs
- Color.cs
- UInt32.cs
- TempFiles.cs
- DesignerCatalogPartChrome.cs
- CodeCatchClauseCollection.cs
- entityreference_tresulttype.cs
- MessageDecoder.cs
- InstanceDescriptor.cs
- SkinBuilder.cs
- DynamicVirtualDiscoSearcher.cs
- SecureStringHasher.cs
- QualifierSet.cs
- ConvertBinder.cs
- ThreadExceptionDialog.cs
- FixedSOMElement.cs
- ForceCopyBuildProvider.cs
- DataBindingExpressionBuilder.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- columnmapkeybuilder.cs
- ComboBox.cs
- NullReferenceException.cs
- DataGridCommandEventArgs.cs
- XmlExceptionHelper.cs
- FrameworkTemplate.cs
- TextSpan.cs
- TraceHandlerErrorFormatter.cs
- DisposableCollectionWrapper.cs
- Themes.cs
- Trace.cs
- DataGridViewColumnDesigner.cs
- ConfigurationManagerHelperFactory.cs
- UInt32.cs
- RawUIStateInputReport.cs
- WindowsListBox.cs
- MailMessageEventArgs.cs
- HttpCachePolicyBase.cs
- Pair.cs
- SeparatorAutomationPeer.cs
- BackStopAuthenticationModule.cs
- ISessionStateStore.cs
- SoapEnumAttribute.cs
- StylusButtonCollection.cs