C# Класс Algorithmix.MatchData

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
ChamferScan double[]
ChamferSimilarity double
First Side
NORMALIZATION_ENABLED bool
ORIENTATION_PENALTY bool
Offset int
Second Side

Открытые методы

Метод Описание
ClusterNodes ( MatchData matchData ) : Cluster

This Method ensures a match is possible and if so clusters two nodes

CompareShred ( Shred first, Shred second, Direction directionA, Orientation orientationA, Direction directionB, Orientation orientationB ) : MatchData

Given two shreds, calculate the offset value at which the two shreds are most similar

ForceClusterNodes ( MatchData matchData, Match match = Match.NonInverted ) : Cluster

This Method clusters two nodes forcibly with no match

MatchData ( double chamferSimilarity, int offset, double scan, Side first, Side second ) : System

Creates a MatchData Object for encapsulating all the comparison MatchData

SmartClusterNodes ( MatchData matchData ) : INode

Приватные методы

Метод Описание
IsFit ( INode root, Shred shred, Side side ) : Direction>.Tuple

IsFit checks if given a specified side, it can be fit with a shreds's edge This Also returns a match object

IsMatch ( MatchData matchData, INode firstRoot, INode secondRoot ) : ClusterData

IsMatch determines if two shreds can be placed next to each other and thus matched. It returns a match.inverted or match.noninverted if possible or match.impossible if not. You shouldn't need to call IsMatch, rather use the safe ClusterNodes() method which will do it for you

Описание методов

ClusterNodes() публичный статический Метод

This Method ensures a match is possible and if so clusters two nodes
public static ClusterNodes ( MatchData matchData ) : Cluster
matchData MatchData MatchData Object
Результат Cluster

CompareShred() публичный статический Метод

Given two shreds, calculate the offset value at which the two shreds are most similar
public static CompareShred ( Shred first, Shred second, Direction directionA, Orientation orientationA, Direction directionB, Orientation orientationB ) : MatchData
first Shred The first shred staged for comparison
second Shred The other shred staged for comparison
directionA Direction Direction of this shred to be compared
orientationA Orientation Orientation of this shred to be compared
directionB Direction Direction of the other shred to be compared
orientationB Orientation Orientiation of the other shred to be compared
Результат MatchData

ForceClusterNodes() публичный статический Метод

This Method clusters two nodes forcibly with no match
public static ForceClusterNodes ( MatchData matchData, Match match = Match.NonInverted ) : Cluster
matchData MatchData MatchData Object
match Match Indicates how the MatchData is Matched
Результат Cluster

MatchData() публичный Метод

Creates a MatchData Object for encapsulating all the comparison MatchData
public MatchData ( double chamferSimilarity, int offset, double scan, Side first, Side second ) : System
chamferSimilarity double
offset int
scan double
first Side
second Side
Результат System

SmartClusterNodes() публичный статический Метод

public static SmartClusterNodes ( MatchData matchData ) : INode
matchData MatchData
Результат INode

Описание свойств

ChamferScan публичное свойство

public double[] ChamferScan
Результат double[]

ChamferSimilarity публичное свойство

public double ChamferSimilarity
Результат double

First публичное свойство

public Side,Algorithmix First
Результат Side

NORMALIZATION_ENABLED публичное статическое свойство

public static bool NORMALIZATION_ENABLED
Результат bool

ORIENTATION_PENALTY публичное статическое свойство

public static bool ORIENTATION_PENALTY
Результат bool

Offset публичное свойство

public int Offset
Результат int

Second публичное свойство

public Side,Algorithmix Second
Результат Side