C# 클래스 Smrf.NodeXL.ExcelTemplate.ReadabilityMetricCalculator2

Calculates readability metrics for the graph.
The readability metrics calculated by this class are based on work done by Cody Dunne and Ben Shneiderman at the University of Maryland.

This graph metric calculator differs from most other calculators in that it uses the vertices' locations and shapes. The other calculators look only at how the vertices are connected to each other. To avoid making the lower-level Algorithms project dependent on higher-level drawing classes (in particular, the VertexDrawingHistory class), there is no corresponding lower-level ReadabilityMetricCalculator class in the Smrf.NodeXL.Algorithms namespace, and the readability metrics cannot be calculated outside of this ExcelTemplate project.

상속: GraphMetricCalculatorBase2
파일 보기 프로젝트 열기: 2014-sed-team3/term-project

보호된 프로퍼티들

프로퍼티 타입 설명
m_oGraphRectangleSize System.Windows.Size

공개 메소드들

메소드 설명
AssertValid ( ) : void
ReadabilityMetricCalculator2 ( System graphRectangleSize ) : System

Initializes a new instance of the class.

TryCalculateGraphMetrics ( IGraph graph, CalculateGraphMetricsContext calculateGraphMetricsContext, GraphMetricColumn &graphMetricColumns ) : System.Boolean

보호된 메소드들

메소드 설명
AddMissingPerEdgeEdgeCrossings ( IGraph oGraphClone, IGraph oGraph, GraphMetricValueWithID>.Dictionary oDictionary ) : void
CancellationPending ( BackgroundWorker oBackgroundWorker, Int32 iCalculationsCompleted, Int32 iTotalCalculations, String sProgressMessage ) : System.Boolean
CloneAndFilterGraph ( IGraph oGraph ) : IGraph
EdgesIntersect ( IEdge oEdge1, IEdge oEdge2 ) : System.Boolean
GetArea ( System.Windows.Media.Geometry oGeometry ) : Double
GetEdgeRectangle ( IEdge oEdge ) : Rect
TryCalculateEdgeInformation ( IGraph oGraphClone, BackgroundWorker oBackgroundWorker, Int32>.Dictionary &oEdgeInformation ) : System.Boolean
TryCalculateGraphRectangleCoverage ( IGraph oGraphClone, BackgroundWorker oBackgroundWorker, VertexInformation>.Dictionary oVertexInformations, Nullable &dGraphRectangleCoverage ) : System.Boolean
TryCalculateOverallEdgeCrossings ( IGraph oGraphClone, BackgroundWorker oBackgroundWorker, Int32>.Dictionary oEdgeInformation, VertexInformation>.Dictionary oVertexInformations, Nullable &dOverallEdgeCrossings ) : System.Boolean
TryCalculateOverallMetrics ( IGraph oGraphClone, ReadabilityMetricUserSettings oReadabilityMetricUserSettings, BackgroundWorker oBackgroundWorker, Int32>.Dictionary oEdgeInformation, VertexInformation>.Dictionary oVertexInformations, LinkedList oGraphMetricColumns ) : System.Boolean
TryCalculateOverallVertexOverlap ( IGraph oGraphClone, BackgroundWorker oBackgroundWorker, VertexInformation>.Dictionary oVertexInformations, Nullable &dOverallVertexOverlap ) : System.Boolean
TryCalculatePerEdgeAndPerVertexMetrics ( IGraph oGraphClone, IGraph oGraph, ReadabilityMetricUserSettings oReadabilityMetricUserSettings, BackgroundWorker oBackgroundWorker, Int32>.Dictionary oEdgeInformation, VertexInformation>.Dictionary oVertexInformations, LinkedList oGraphMetricColumns ) : System.Boolean
TryCalculatePerEdgeEdgeCrossings ( IGraph oGraphClone, IGraph oGraph, BackgroundWorker oBackgroundWorker, Int32>.Dictionary oEdgeInformation, ICollection &oPerEdgeEdgeCrossings ) : System.Boolean
TryCalculatePerVertexEdgeCrossings ( IGraph oGraphClone, BackgroundWorker oBackgroundWorker, Int32>.Dictionary oEdgeInformation, VertexInformation>.Dictionary oVertexInformations, ICollection &oPerVertexEdgeCrossings ) : System.Boolean
TryCalculatePerVertexVertexOverlap ( IGraph oGraphClone, BackgroundWorker oBackgroundWorker, VertexInformation>.Dictionary oVertexInformations, ICollection &oPerVertexVertexOverlap ) : System.Boolean
TryCalculateVertexInformations ( IGraph oGraphClone, BackgroundWorker oBackgroundWorker, VertexInformation>.Dictionary &oVertexInformations ) : System.Boolean
TryCombineEdges ( IGraph oGraphClone, BackgroundWorker oBackgroundWorker, String sProgressMessage, System.Windows.Media.GeometryGroup oUnionOfBounds ) : System.Boolean
TryCombineVertices ( IGraph oGraphClone, BackgroundWorker oBackgroundWorker, VertexInformation>.Dictionary oVertexInformations, String sProgressMessage, System.Windows.Media.GeometryGroup oUnionOfBounds, Double &dSumOfVertexAreas ) : System.Boolean

메소드 상세

AddMissingPerEdgeEdgeCrossings() 보호된 메소드

protected AddMissingPerEdgeEdgeCrossings ( IGraph oGraphClone, IGraph oGraph, GraphMetricValueWithID>.Dictionary oDictionary ) : void
oGraphClone IGraph
oGraph IGraph
oDictionary GraphMetricValueWithID>.Dictionary
리턴 void

AssertValid() 공개 메소드

public AssertValid ( ) : void
리턴 void

CancellationPending() 보호된 메소드

protected CancellationPending ( BackgroundWorker oBackgroundWorker, Int32 iCalculationsCompleted, Int32 iTotalCalculations, String sProgressMessage ) : System.Boolean
oBackgroundWorker System.ComponentModel.BackgroundWorker
iCalculationsCompleted System.Int32
iTotalCalculations System.Int32
sProgressMessage String
리턴 System.Boolean

CloneAndFilterGraph() 보호된 메소드

protected CloneAndFilterGraph ( IGraph oGraph ) : IGraph
oGraph IGraph
리턴 IGraph

EdgesIntersect() 보호된 메소드

protected EdgesIntersect ( IEdge oEdge1, IEdge oEdge2 ) : System.Boolean
oEdge1 IEdge
oEdge2 IEdge
리턴 System.Boolean

GetArea() 보호된 메소드

protected GetArea ( System.Windows.Media.Geometry oGeometry ) : Double
oGeometry System.Windows.Media.Geometry
리턴 Double

GetEdgeRectangle() 보호된 메소드

protected GetEdgeRectangle ( IEdge oEdge ) : Rect
oEdge IEdge
리턴 Rect

ReadabilityMetricCalculator2() 공개 메소드

Initializes a new instance of the class.
public ReadabilityMetricCalculator2 ( System graphRectangleSize ) : System
graphRectangleSize System /// Size of the rectangle containing the graph, in WPF units. ///
리턴 System

TryCalculateEdgeInformation() 보호된 메소드

protected TryCalculateEdgeInformation ( IGraph oGraphClone, BackgroundWorker oBackgroundWorker, Int32>.Dictionary &oEdgeInformation ) : System.Boolean
oGraphClone IGraph
oBackgroundWorker System.ComponentModel.BackgroundWorker
oEdgeInformation Int32>.Dictionary
리턴 System.Boolean

TryCalculateGraphMetrics() 공개 메소드

public TryCalculateGraphMetrics ( IGraph graph, CalculateGraphMetricsContext calculateGraphMetricsContext, GraphMetricColumn &graphMetricColumns ) : System.Boolean
graph IGraph
calculateGraphMetricsContext CalculateGraphMetricsContext
graphMetricColumns GraphMetricColumn
리턴 System.Boolean

TryCalculateGraphRectangleCoverage() 보호된 메소드

protected TryCalculateGraphRectangleCoverage ( IGraph oGraphClone, BackgroundWorker oBackgroundWorker, VertexInformation>.Dictionary oVertexInformations, Nullable &dGraphRectangleCoverage ) : System.Boolean
oGraphClone IGraph
oBackgroundWorker System.ComponentModel.BackgroundWorker
oVertexInformations VertexInformation>.Dictionary
dGraphRectangleCoverage Nullable
리턴 System.Boolean

TryCalculateOverallEdgeCrossings() 보호된 메소드

protected TryCalculateOverallEdgeCrossings ( IGraph oGraphClone, BackgroundWorker oBackgroundWorker, Int32>.Dictionary oEdgeInformation, VertexInformation>.Dictionary oVertexInformations, Nullable &dOverallEdgeCrossings ) : System.Boolean
oGraphClone IGraph
oBackgroundWorker System.ComponentModel.BackgroundWorker
oEdgeInformation Int32>.Dictionary
oVertexInformations VertexInformation>.Dictionary
dOverallEdgeCrossings Nullable
리턴 System.Boolean

TryCalculateOverallMetrics() 보호된 메소드

protected TryCalculateOverallMetrics ( IGraph oGraphClone, ReadabilityMetricUserSettings oReadabilityMetricUserSettings, BackgroundWorker oBackgroundWorker, Int32>.Dictionary oEdgeInformation, VertexInformation>.Dictionary oVertexInformations, LinkedList oGraphMetricColumns ) : System.Boolean
oGraphClone IGraph
oReadabilityMetricUserSettings ReadabilityMetricUserSettings
oBackgroundWorker System.ComponentModel.BackgroundWorker
oEdgeInformation Int32>.Dictionary
oVertexInformations VertexInformation>.Dictionary
oGraphMetricColumns LinkedList
리턴 System.Boolean

TryCalculateOverallVertexOverlap() 보호된 메소드

protected TryCalculateOverallVertexOverlap ( IGraph oGraphClone, BackgroundWorker oBackgroundWorker, VertexInformation>.Dictionary oVertexInformations, Nullable &dOverallVertexOverlap ) : System.Boolean
oGraphClone IGraph
oBackgroundWorker System.ComponentModel.BackgroundWorker
oVertexInformations VertexInformation>.Dictionary
dOverallVertexOverlap Nullable
리턴 System.Boolean

TryCalculatePerEdgeAndPerVertexMetrics() 보호된 메소드

protected TryCalculatePerEdgeAndPerVertexMetrics ( IGraph oGraphClone, IGraph oGraph, ReadabilityMetricUserSettings oReadabilityMetricUserSettings, BackgroundWorker oBackgroundWorker, Int32>.Dictionary oEdgeInformation, VertexInformation>.Dictionary oVertexInformations, LinkedList oGraphMetricColumns ) : System.Boolean
oGraphClone IGraph
oGraph IGraph
oReadabilityMetricUserSettings ReadabilityMetricUserSettings
oBackgroundWorker System.ComponentModel.BackgroundWorker
oEdgeInformation Int32>.Dictionary
oVertexInformations VertexInformation>.Dictionary
oGraphMetricColumns LinkedList
리턴 System.Boolean

TryCalculatePerEdgeEdgeCrossings() 보호된 메소드

protected TryCalculatePerEdgeEdgeCrossings ( IGraph oGraphClone, IGraph oGraph, BackgroundWorker oBackgroundWorker, Int32>.Dictionary oEdgeInformation, ICollection &oPerEdgeEdgeCrossings ) : System.Boolean
oGraphClone IGraph
oGraph IGraph
oBackgroundWorker System.ComponentModel.BackgroundWorker
oEdgeInformation Int32>.Dictionary
oPerEdgeEdgeCrossings ICollection
리턴 System.Boolean

TryCalculatePerVertexEdgeCrossings() 보호된 메소드

protected TryCalculatePerVertexEdgeCrossings ( IGraph oGraphClone, BackgroundWorker oBackgroundWorker, Int32>.Dictionary oEdgeInformation, VertexInformation>.Dictionary oVertexInformations, ICollection &oPerVertexEdgeCrossings ) : System.Boolean
oGraphClone IGraph
oBackgroundWorker System.ComponentModel.BackgroundWorker
oEdgeInformation Int32>.Dictionary
oVertexInformations VertexInformation>.Dictionary
oPerVertexEdgeCrossings ICollection
리턴 System.Boolean

TryCalculatePerVertexVertexOverlap() 보호된 메소드

protected TryCalculatePerVertexVertexOverlap ( IGraph oGraphClone, BackgroundWorker oBackgroundWorker, VertexInformation>.Dictionary oVertexInformations, ICollection &oPerVertexVertexOverlap ) : System.Boolean
oGraphClone IGraph
oBackgroundWorker System.ComponentModel.BackgroundWorker
oVertexInformations VertexInformation>.Dictionary
oPerVertexVertexOverlap ICollection
리턴 System.Boolean

TryCalculateVertexInformations() 보호된 메소드

protected TryCalculateVertexInformations ( IGraph oGraphClone, BackgroundWorker oBackgroundWorker, VertexInformation>.Dictionary &oVertexInformations ) : System.Boolean
oGraphClone IGraph
oBackgroundWorker System.ComponentModel.BackgroundWorker
oVertexInformations VertexInformation>.Dictionary
리턴 System.Boolean

TryCombineEdges() 보호된 메소드

protected TryCombineEdges ( IGraph oGraphClone, BackgroundWorker oBackgroundWorker, String sProgressMessage, System.Windows.Media.GeometryGroup oUnionOfBounds ) : System.Boolean
oGraphClone IGraph
oBackgroundWorker System.ComponentModel.BackgroundWorker
sProgressMessage String
oUnionOfBounds System.Windows.Media.GeometryGroup
리턴 System.Boolean

TryCombineVertices() 보호된 메소드

protected TryCombineVertices ( IGraph oGraphClone, BackgroundWorker oBackgroundWorker, VertexInformation>.Dictionary oVertexInformations, String sProgressMessage, System.Windows.Media.GeometryGroup oUnionOfBounds, Double &dSumOfVertexAreas ) : System.Boolean
oGraphClone IGraph
oBackgroundWorker System.ComponentModel.BackgroundWorker
oVertexInformations VertexInformation>.Dictionary
sProgressMessage String
oUnionOfBounds System.Windows.Media.GeometryGroup
dSumOfVertexAreas Double
리턴 System.Boolean

프로퍼티 상세

m_oGraphRectangleSize 보호되어 있는 프로퍼티

protected Size,System.Windows m_oGraphRectangleSize
리턴 System.Windows.Size