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
- RowsCopiedEventArgs.cs
- BindingGroup.cs
- ProviderUtil.cs
- DataFormat.cs
- SqlSelectClauseBuilder.cs
- ComponentEditorForm.cs
- GradientBrush.cs
- HatchBrush.cs
- TypeNameConverter.cs
- EventMappingSettings.cs
- QuerySettings.cs
- SiteMapPath.cs
- PowerStatus.cs
- EnumValAlphaComparer.cs
- _NetworkingPerfCounters.cs
- NumberSubstitution.cs
- PriorityChain.cs
- RadioButtonRenderer.cs
- DispatchChannelSink.cs
- InvalidOleVariantTypeException.cs
- IndexedString.cs
- MonthCalendar.cs
- WebPartVerb.cs
- CodeCompileUnit.cs
- CompensationHandlingFilter.cs
- WeakReference.cs
- RectangleF.cs
- ServicesUtilities.cs
- DataGridViewRowConverter.cs
- AssemblyBuilder.cs
- OdbcEnvironment.cs
- RegexGroup.cs
- AsyncPostBackTrigger.cs
- XPathItem.cs
- GeneratedView.cs
- Update.cs
- ActiveXContainer.cs
- OdbcCommandBuilder.cs
- UpdatePanelTrigger.cs
- Delegate.cs
- COM2Properties.cs
- ProviderMetadata.cs
- UnsafeNativeMethods.cs
- FontUnitConverter.cs
- Registry.cs
- ReservationNotFoundException.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- EnumConverter.cs
- EditorPartChrome.cs
- SurrogateDataContract.cs
- StrokeSerializer.cs
- Marshal.cs
- ListViewDesigner.cs
- Operator.cs
- TransformGroup.cs
- GlyphInfoList.cs
- DispatcherHookEventArgs.cs
- Utility.cs
- _WebProxyDataBuilder.cs
- UdpTransportSettings.cs
- MaterialGroup.cs
- SplineKeyFrames.cs
- DefaultTraceListener.cs
- ConstructorBuilder.cs
- SqlProfileProvider.cs
- AppDomainFactory.cs
- XmlNamedNodeMap.cs
- RichTextBoxDesigner.cs
- arabicshape.cs
- ServiceHostFactory.cs
- PageThemeCodeDomTreeGenerator.cs
- GenericEnumerator.cs
- OleDbCommand.cs
- ListViewItem.cs
- Image.cs
- FlowDocumentReader.cs
- PackageFilter.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- TextEditorTyping.cs
- LogPolicy.cs
- RelatedPropertyManager.cs
- StringFreezingAttribute.cs
- HostProtectionPermission.cs
- ReadOnlyCollectionBase.cs
- ObjectCache.cs
- LineServicesRun.cs
- Hash.cs
- InfoCardX509Validator.cs
- basecomparevalidator.cs
- XmlSchemaComplexContentExtension.cs
- EventSourceCreationData.cs
- MimeMapping.cs
- Help.cs
- BitStream.cs
- SignatureDescription.cs
- SvcMapFile.cs
- LinkArea.cs
- Code.cs
- BindingSource.cs
- ExtendedPropertyInfo.cs