Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Core / CSharp / MS / Internal / Ink / InkSerializedFormat / TransformDescriptor.cs / 1 / TransformDescriptor.cs
//------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------
// Primary root namespace for TabletPC/Ink/Handwriting/Recognition in .NET
namespace MS.Internal.Ink.InkSerializedFormat
{
internal class TransformDescriptor
{
private double[] _transform = new double[6];
private uint _size = 0;
private KnownTagCache.KnownTagIndex _tag = KnownTagCache.KnownTagIndex.Unknown;
public KnownTagCache.KnownTagIndex Tag
{
get
{
return _tag;
}
set
{
_tag = value;
}
}
public uint Size
{
get
{
return _size;
}
set
{
_size = value;
}
}
public double[] Transform
{
get
{
return _transform;
}
}
public bool Compare(TransformDescriptor that)
{
if( that.Tag == Tag )
{
if( that.Size == _size )
{
for( int i = 0; i < _size; i++ )
{
if( !DoubleUtil.AreClose(that.Transform[i], _transform[i] ))
return false;
}
return true;
}
else
return false;
}
return false;
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------
// Primary root namespace for TabletPC/Ink/Handwriting/Recognition in .NET
namespace MS.Internal.Ink.InkSerializedFormat
{
internal class TransformDescriptor
{
private double[] _transform = new double[6];
private uint _size = 0;
private KnownTagCache.KnownTagIndex _tag = KnownTagCache.KnownTagIndex.Unknown;
public KnownTagCache.KnownTagIndex Tag
{
get
{
return _tag;
}
set
{
_tag = value;
}
}
public uint Size
{
get
{
return _size;
}
set
{
_size = value;
}
}
public double[] Transform
{
get
{
return _transform;
}
}
public bool Compare(TransformDescriptor that)
{
if( that.Tag == Tag )
{
if( that.Size == _size )
{
for( int i = 0; i < _size; i++ )
{
if( !DoubleUtil.AreClose(that.Transform[i], _transform[i] ))
return false;
}
return true;
}
else
return false;
}
return false;
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MonthCalendar.cs
- BasicCellRelation.cs
- SourceItem.cs
- OracleDateTime.cs
- DebugHandleTracker.cs
- WindowsScrollBarBits.cs
- HtmlInputPassword.cs
- GregorianCalendarHelper.cs
- WorkflowValidationFailedException.cs
- ControlIdConverter.cs
- MouseOverProperty.cs
- XPathBuilder.cs
- PrefixQName.cs
- Function.cs
- ComponentEditorForm.cs
- MatcherBuilder.cs
- ModelVisual3D.cs
- RunClient.cs
- Comparer.cs
- NetMsmqBindingCollectionElement.cs
- SpanIndex.cs
- CatalogPartChrome.cs
- DriveNotFoundException.cs
- QilStrConcat.cs
- XmlUnspecifiedAttribute.cs
- SortQuery.cs
- recordstatescratchpad.cs
- ListViewAutomationPeer.cs
- HyperLinkColumn.cs
- WebServiceHostFactory.cs
- FlowPosition.cs
- MimeTextImporter.cs
- CodeNamespaceImportCollection.cs
- XPathNavigatorReader.cs
- FormViewDeleteEventArgs.cs
- CodeExporter.cs
- LocatorGroup.cs
- Typography.cs
- EventProvider.cs
- FilterQuery.cs
- UIElementPropertyUndoUnit.cs
- ObjectDataSourceSelectingEventArgs.cs
- TaskFormBase.cs
- ProjectionPruner.cs
- EventBuilder.cs
- CompilerScopeManager.cs
- SystemWebExtensionsSectionGroup.cs
- NameValuePermission.cs
- RunInstallerAttribute.cs
- NullableIntMinMaxAggregationOperator.cs
- RoutedUICommand.cs
- ExtendedPropertyDescriptor.cs
- SplitContainerDesigner.cs
- grammarelement.cs
- EntityDataSourceChangedEventArgs.cs
- SelectorAutomationPeer.cs
- Wizard.cs
- PointUtil.cs
- CommandField.cs
- AttributeQuery.cs
- ObjectNavigationPropertyMapping.cs
- DesigntimeLicenseContext.cs
- NotifyInputEventArgs.cs
- GenericXmlSecurityTokenAuthenticator.cs
- DecoderExceptionFallback.cs
- ActiveXSite.cs
- AnnouncementInnerClient11.cs
- Point3DAnimationBase.cs
- _TLSstream.cs
- PersonalizablePropertyEntry.cs
- SelectorAutomationPeer.cs
- Point4DValueSerializer.cs
- ValidationHelper.cs
- StylusLogic.cs
- tibetanshape.cs
- WebPartMinimizeVerb.cs
- StylusPointProperties.cs
- ThrowHelper.cs
- SnapLine.cs
- BlobPersonalizationState.cs
- DragDrop.cs
- ReadOnlyNameValueCollection.cs
- AccessibleObject.cs
- StringConverter.cs
- CollaborationHelperFunctions.cs
- ListViewDeleteEventArgs.cs
- MethodCallTranslator.cs
- DataPagerField.cs
- Clause.cs
- ConstrainedDataObject.cs
- ResourceManager.cs
- DataGridItemCollection.cs
- _LocalDataStore.cs
- PropertyEmitter.cs
- XmlSchemaSimpleType.cs
- Size3DValueSerializer.cs
- JsonSerializer.cs
- ConfigurationConverterBase.cs
- PrincipalPermission.cs
- AutomationAttributeInfo.cs