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
- EventManager.cs
- DataGridViewHitTestInfo.cs
- Validator.cs
- ToolStripItemRenderEventArgs.cs
- FileLoadException.cs
- WebMessageEncodingElement.cs
- TargetPerspective.cs
- SingleQueryOperator.cs
- OleDbConnectionInternal.cs
- DataRecordObjectView.cs
- SerializationSectionGroup.cs
- ReadOnlyKeyedCollection.cs
- COM2PropertyDescriptor.cs
- IsolatedStorageFilePermission.cs
- StretchValidation.cs
- RawKeyboardInputReport.cs
- DetailsViewDeleteEventArgs.cs
- DiscoveryClientReferences.cs
- ServiceHttpModule.cs
- DesignerForm.cs
- StrokeNode.cs
- ParagraphResult.cs
- SQLInt64.cs
- AndCondition.cs
- RelationshipSet.cs
- TypeDependencyAttribute.cs
- XmlSchemaFacet.cs
- SimpleHandlerBuildProvider.cs
- MonthCalendar.cs
- Separator.cs
- ClientUtils.cs
- ZipIOLocalFileBlock.cs
- PenContexts.cs
- Crypto.cs
- TextRangeSerialization.cs
- TextCompositionEventArgs.cs
- DataGridClipboardHelper.cs
- StreamUpdate.cs
- UserControl.cs
- AssemblyCache.cs
- RenamedEventArgs.cs
- TrackingProfileSerializer.cs
- MaterialGroup.cs
- XDeferredAxisSource.cs
- ZipIOFileItemStream.cs
- DelegateHelpers.Generated.cs
- OneWayBindingElementImporter.cs
- NativeObjectSecurity.cs
- HttpApplicationStateWrapper.cs
- QilIterator.cs
- NamespaceEmitter.cs
- HttpCookieCollection.cs
- QuotedStringFormatReader.cs
- SqlNotificationRequest.cs
- FileReader.cs
- SqlDataSourceQuery.cs
- PkcsUtils.cs
- CompilerErrorCollection.cs
- InlineCollection.cs
- SoapHeaders.cs
- PeerApplication.cs
- SQLUtility.cs
- DependencySource.cs
- WmlLabelAdapter.cs
- OdbcPermission.cs
- IItemContainerGenerator.cs
- SourceLineInfo.cs
- PropertyValueChangedEvent.cs
- DecimalKeyFrameCollection.cs
- HiddenFieldPageStatePersister.cs
- ExceptionUtil.cs
- SymbolType.cs
- TemplatedAdorner.cs
- DetailsViewRowCollection.cs
- FixedPageStructure.cs
- NotFiniteNumberException.cs
- SecurityTokenValidationException.cs
- JapaneseLunisolarCalendar.cs
- MetadataArtifactLoaderResource.cs
- TileModeValidation.cs
- TextElementEnumerator.cs
- Menu.cs
- AutomationProperties.cs
- ReadWriteObjectLock.cs
- XmlChildNodes.cs
- ProcessStartInfo.cs
- DeadCharTextComposition.cs
- StorageMappingItemCollection.cs
- XmlSerializer.cs
- XmlWriterTraceListener.cs
- TdsParserSessionPool.cs
- TimersDescriptionAttribute.cs
- CodeDOMProvider.cs
- ChtmlTextWriter.cs
- WebHttpSecurity.cs
- ControlUtil.cs
- SwitchElementsCollection.cs
- DataTrigger.cs
- ThreadAbortException.cs
- DocumentViewerHelper.cs