Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- VarRefManager.cs
- CdpEqualityComparer.cs
- MediaPlayerState.cs
- XmlCharacterData.cs
- XmlDocumentSerializer.cs
- LayoutDump.cs
- peernodestatemanager.cs
- SqlMethodCallConverter.cs
- DataGridViewCellConverter.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- LinqDataSourceView.cs
- SrgsElementList.cs
- CodeDomConfigurationHandler.cs
- BlockUIContainer.cs
- InplaceBitmapMetadataWriter.cs
- XhtmlTextWriter.cs
- MetadataUtilsSmi.cs
- ConfigXmlDocument.cs
- DirectoryObjectSecurity.cs
- Vector3DValueSerializer.cs
- InvalidWMPVersionException.cs
- IriParsingElement.cs
- Msec.cs
- InfoCardAsymmetricCrypto.cs
- Baml2006KnownTypes.cs
- IntegerValidatorAttribute.cs
- ToolTipService.cs
- HelpProvider.cs
- EndpointNameMessageFilter.cs
- HandleRef.cs
- GlyphRunDrawing.cs
- ReadOnlyNameValueCollection.cs
- WorkItem.cs
- SqlTriggerContext.cs
- PropertyGrid.cs
- CodeNamespaceImportCollection.cs
- Sql8ExpressionRewriter.cs
- WebServiceAttribute.cs
- ContextQuery.cs
- DesignerCommandSet.cs
- HttpPostLocalhostServerProtocol.cs
- NullableLongMinMaxAggregationOperator.cs
- ByteStreamGeometryContext.cs
- MemberDomainMap.cs
- BitmapEffectGroup.cs
- SpnegoTokenProvider.cs
- KeyPullup.cs
- ProgressChangedEventArgs.cs
- StringArrayEditor.cs
- KeyedHashAlgorithm.cs
- OleDbDataAdapter.cs
- FileDocument.cs
- SqlBooleanMismatchVisitor.cs
- DataView.cs
- ReachDocumentPageSerializerAsync.cs
- MultiBindingExpression.cs
- DependencyObjectType.cs
- ContextStaticAttribute.cs
- COM2TypeInfoProcessor.cs
- HttpDigestClientCredential.cs
- BinaryParser.cs
- SelectingProviderEventArgs.cs
- AuthenticationService.cs
- ComboBox.cs
- cookieexception.cs
- FontCacheUtil.cs
- FixedHighlight.cs
- RangeValidator.cs
- IsolatedStorageFile.cs
- IDQuery.cs
- ComponentDispatcher.cs
- FocusChangedEventArgs.cs
- EmptyEnumerable.cs
- AdornerPresentationContext.cs
- SystemIPInterfaceStatistics.cs
- CapabilitiesSection.cs
- StatusBar.cs
- EventManager.cs
- XPathParser.cs
- TextPenaltyModule.cs
- TextElementCollectionHelper.cs
- ScrollProperties.cs
- FormViewDeleteEventArgs.cs
- Help.cs
- FormatterConverter.cs
- TransactionManager.cs
- BitmapImage.cs
- Activator.cs
- FacetValueContainer.cs
- StoreItemCollection.Loader.cs
- DirectoryNotFoundException.cs
- Int16Converter.cs
- FieldToken.cs
- regiisutil.cs
- VideoDrawing.cs
- Symbol.cs
- ValidationRule.cs
- PenThread.cs
- PopupRootAutomationPeer.cs
- WindowsScrollBarBits.cs