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
- HtmlInputFile.cs
- XdrBuilder.cs
- PassportAuthenticationModule.cs
- XmlDataFileEditor.cs
- OdbcConnectionString.cs
- ItemDragEvent.cs
- QuaternionAnimation.cs
- QuaternionConverter.cs
- _Events.cs
- ObjectFullSpanRewriter.cs
- DocumentViewer.cs
- DataGridCell.cs
- WCFBuildProvider.cs
- SHA384.cs
- IndexingContentUnit.cs
- DocumentXmlWriter.cs
- RelationshipDetailsRow.cs
- ConstraintStruct.cs
- DatagridviewDisplayedBandsData.cs
- WindowsComboBox.cs
- FolderBrowserDialog.cs
- HtmlControlPersistable.cs
- InputScopeConverter.cs
- PartitionResolver.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- SQLGuid.cs
- BuilderPropertyEntry.cs
- Selection.cs
- ClientSideProviderDescription.cs
- ThreadStateException.cs
- RemotingException.cs
- Propagator.Evaluator.cs
- DocumentDesigner.cs
- EventDescriptorCollection.cs
- SevenBitStream.cs
- PriorityBindingExpression.cs
- StaticContext.cs
- DbDataRecord.cs
- RegexGroup.cs
- SwitchAttribute.cs
- ServiceObjectContainer.cs
- ElementHostPropertyMap.cs
- FilteredReadOnlyMetadataCollection.cs
- HuffCodec.cs
- ExplicitDiscriminatorMap.cs
- DelegatingConfigHost.cs
- ExpandSegmentCollection.cs
- InvalidCastException.cs
- HttpListenerRequest.cs
- DataGridViewRow.cs
- WindowsGraphicsWrapper.cs
- SqlParameterCollection.cs
- ActivityInterfaces.cs
- Int32RectConverter.cs
- RowVisual.cs
- ThemeableAttribute.cs
- CharacterHit.cs
- ExpressionBuilderContext.cs
- AnnotationHighlightLayer.cs
- DataGridViewCellCancelEventArgs.cs
- VectorCollectionConverter.cs
- MouseEvent.cs
- EditingMode.cs
- BuildProvider.cs
- ErrorWebPart.cs
- ObjectQueryProvider.cs
- Assert.cs
- _OSSOCK.cs
- SoapEnumAttribute.cs
- ConcatQueryOperator.cs
- TypeSystem.cs
- sqlstateclientmanager.cs
- ProviderCommandInfoUtils.cs
- MtomMessageEncodingElement.cs
- Exceptions.cs
- CorrelationValidator.cs
- DataGridViewRowConverter.cs
- TreeViewImageIndexConverter.cs
- DictionaryCustomTypeDescriptor.cs
- GridEntryCollection.cs
- ButtonBase.cs
- ObjectContext.cs
- SimpleLine.cs
- CodeMethodReturnStatement.cs
- SimpleApplicationHost.cs
- PolicyLevel.cs
- DefaultHttpHandler.cs
- QueryableDataSourceHelper.cs
- ToolTipAutomationPeer.cs
- DbCommandTree.cs
- BuildProvider.cs
- ScriptReferenceBase.cs
- TableDesigner.cs
- SizeKeyFrameCollection.cs
- XPathQueryGenerator.cs
- DefaultEventAttribute.cs
- MinimizableAttributeTypeConverter.cs
- EmbeddedObject.cs
- DataGridCellAutomationPeer.cs
- DataBindingCollectionConverter.cs