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
- RequiredAttributeAttribute.cs
- SqlConnectionPoolProviderInfo.cs
- NetworkInformationPermission.cs
- ReliableDuplexSessionChannel.cs
- BitSet.cs
- PropertyTabChangedEvent.cs
- String.cs
- FullTextLine.cs
- WebResourceAttribute.cs
- ButtonAutomationPeer.cs
- DiscardableAttribute.cs
- WebPartDisplayModeEventArgs.cs
- UIElementAutomationPeer.cs
- Perspective.cs
- GridLengthConverter.cs
- ManagedFilter.cs
- AutomationIdentifierGuids.cs
- FlowDocumentFormatter.cs
- SafeBitVector32.cs
- XmlILModule.cs
- MimeReturn.cs
- HighlightComponent.cs
- WebPartPersonalization.cs
- StorageSetMapping.cs
- EndpointAddressMessageFilter.cs
- FixedPageProcessor.cs
- Italic.cs
- HitTestParameters3D.cs
- SqlWebEventProvider.cs
- WmlImageAdapter.cs
- Graphics.cs
- RefreshPropertiesAttribute.cs
- RuleSettingsCollection.cs
- EntityDataSourceChangingEventArgs.cs
- BitmapCodecInfo.cs
- DoubleLinkListEnumerator.cs
- ServicePointManager.cs
- AsyncStreamReader.cs
- OracleParameter.cs
- CollectionChangedEventManager.cs
- SqlInternalConnectionTds.cs
- SourceLineInfo.cs
- ZipIOExtraFieldPaddingElement.cs
- OdbcDataAdapter.cs
- ReadOnlyCollection.cs
- NotImplementedException.cs
- ManagementNamedValueCollection.cs
- CacheSection.cs
- KnownColorTable.cs
- ListViewItem.cs
- HtmlHead.cs
- SetterBaseCollection.cs
- TrustLevelCollection.cs
- Storyboard.cs
- BamlTreeNode.cs
- GlyphingCache.cs
- TemplateInstanceAttribute.cs
- XmlSchemaSimpleContentExtension.cs
- IDReferencePropertyAttribute.cs
- MultiSelector.cs
- BevelBitmapEffect.cs
- TabItemWrapperAutomationPeer.cs
- HorizontalAlignConverter.cs
- XamlParser.cs
- Int64AnimationUsingKeyFrames.cs
- InternalCache.cs
- ChannelAcceptor.cs
- EncoderReplacementFallback.cs
- TraceUtils.cs
- ModelPropertyDescriptor.cs
- securitycriticaldataClass.cs
- DirectionalLight.cs
- WindowsFormsLinkLabel.cs
- TemplatingOptionsDialog.cs
- StateMachineWorkflowInstance.cs
- XmlTypeMapping.cs
- TraceSource.cs
- Int64Converter.cs
- CodeExpressionCollection.cs
- SimpleHandlerFactory.cs
- TdsParserStaticMethods.cs
- SelectionEditor.cs
- SqlUDTStorage.cs
- ColumnWidthChangedEvent.cs
- SqlDataSourceView.cs
- WebBrowsableAttribute.cs
- CloudCollection.cs
- TextMetrics.cs
- ItemsPresenter.cs
- StringConverter.cs
- TableSectionStyle.cs
- MetadataCollection.cs
- TabControlCancelEvent.cs
- XmlnsDefinitionAttribute.cs
- UnsafeNativeMethodsCLR.cs
- ReverseComparer.cs
- ConcurrentBag.cs
- WebPartCatalogCloseVerb.cs
- InkCanvasFeedbackAdorner.cs
- Unit.cs